
Lesson 18-4: Debugging
Recursion | 461
Name __________________________________________ Date _______________________
Section _________________________________________
Exercise 1: To practice writing recursive processes, you decide to write a recursive function to
sum the values in a file. Program SumTest is the result, but it isn’t working. Debug it.
Exercise 2: List the errors found and explain what you did to correct them. (Hint: There are two.)
78828_CH18_DaleLab 5/22/09 7:55 AM Page 461