CS1440 - Lab 3
Looping
Name:                                    Date:
Section:                                  User ID:

 Activity Points Exercise Grade Prelab 10 Reading Assignment and an Turn in at start of lab. Lab goals - Objective for today's lab -- - Lab Activity 3-1 Preparations - Getting ready for the lab -- - Lab Activity 3-2 - while loop A Simple Example - Compute the average of 6 numbers. A Simple Example for while loop Introducing the while loop,  computing the average of 6 numbers using a while loop.  Isn't life much easier with loops? 10     10 Complete Exercise ex31 Complete Exercise ex32 Lab Activity 3-3 Looping with Variable Number of Loops Computing the average of many numbers. Looping is great? -- - Lab Activity 3-4 Nested Loops Do more with loops ... loop with another loop ... Is this the best feature of looping? Remarks 10 Complete Exercise ex33 Complete Exercise ex34 Lab Activity 3-5 A More Complicated Example for while loop A program that prints odd and even numbers occurring within an interval on two different columns. 10 10 Complete Exercise ex35 Complete Exercise ex36 Post Lab 40 Complete by next lab.
 Student's Remarks: Professor's Remarks:

** REMEMBER: Looping maybe controlled by a counter or by an event.  What do we need to have a good working loop (any loop)?
initialization out of the loop,
a correct boolean expression (condition), and
a change in the condition in the body of the loop.