
Lesson 11-6: Debugging
270 | Chapter 11
Name __________________________________________ Date _______________________
Section _________________________________________
Exercise 1: Program ReadData reads data into a two-dimensional array. The data is input as
described in Lesson 11-4, Exercise 1. The data file is shown below:
3 4
1 2 3 4
5 6 7 8
9 8 7 6
Unfortunately, program ReadData contains an error. Can you find and fix it? Describe the error.
Exercise 2: Unless you found two errors at once in Exercise 1, there is still an error lurking in
program ReadData. Correct the error and rerun the program. Describe the error.
78828_CH11_DaleLab 5/22/09 1:50 PM ...