
Lesson 4-1: Check Prelab Exercises
Program Input and the Software Design Process | 81
Name __________________________________________ Date _______________________
Section _________________________________________
Exercise 1: Run program IODemo and check your answer. Did one of the answers surprise you?
Can you explain it?
Exercises 2 and 3: Program Frame expects two lines of input. You can tell because there are two
accesses to cin with an output statement in between. Now, run program Frame to check the rest
of your answers to Exercises 2 and 3 and answer the following questions.
What happened when you keyed both numbers on the same line?
Were your hand ...