
Lesson 6-1: Check Prelab Exercises
Looping | 135
Name __________________________________________ Date _______________________
Section _________________________________________
Exercise 1: Run program Count to check your answers. Were they correct? If not, why not?
Exercise 2: The loop in program Count is a count-controlled loop because the loop body is
executed a specified number of times.
Exercise 3: Run program Event to check your answers. Were they correct? If not, why not?
Exercise 4: The loop in program Event is an event-controlled loop because input of a negative
data value (the event) stops it.
78828_CH06_DaleLab 5/22/09 1:50 PM Page 135