Lab 3

This assignment test understanding of the basic control structures. Follow these steps to complete the assignment:

1. Copy the quiz file:

%cp /home/radon1/rth/public/quiz177 .

(don't forget the dot at the end of the cp command line - it means "the current directory" - i.e. your home directory)

2. Unpack it to make several files:

%tar xf quiz177

3. Verify that you have seven files:

%ls

will show these files:

quiz.cc

quiz1.cc

quiz2.cc

quiz3.cc

quiz4.cc

quiz5.cc

Makefile

4. compile and run each one in turn:

%make quiz1

then:

%quiz1

5. Answer the question asked by the program by examining the code for the corresponding program in the editor. quiz1 is contained in quiz1.cc etc.

6. Type your answers to the five quizzes into a file, print it and hand the printout to me by Wednesday 12th. in class.

7. Mail your answer file to the grader, (login salahmed).

8. Don't forget to do all the five quizzes.