CS1440 - Lab 3
Looping

Name:                                             User ID:                                                  Date:
Lab Section:                                  Lecture Section:
 

Activity

Points

To Submit:

Grade

Prelab

10

  • written answers 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:  Computing the average of 6 numbers.
  • Simple Example using a while loop

Isn't life much easier with loops?

    10
    10

  • Written answers to ex31
  • ex32 in your directory.

 

Lab Activity 3-3: Variable number of loops:
Computing the average of many numbers.

 --

-

 

Lab Activity 3-4: Nested Loops

  • Loops inside of loops
  • Two styles of loops
  • Remarks

30

  • ex33 in your directory.
  • ex34 in your directory.

 

Lab Activity 3-5: A more complicated example
Printing odd and even numbers occurring within an interval in two different columns.

15

  • ex35 in your directory.

 

Post Lab

25

  • Program listing and file in your directory.

 

 

Student's Remarks:
 
 
 

 

Professor's Remarks: