
Postlab Activities
Exercise 1: The dining room looks so nice with the new carpet that you decide to
repaint the room. Write a functional design for a program that takes as input the
dimensions of the room, the price of a gallon of paint, and the number of square feet
that a gallon of paint covers. The output is what it will cost to paint the dining room.
Echo your input and the answer on the screen, all labeled appropriately.
Exercise 2: Translate your design into a C++ program and run it.
Exercise 3: Write a functional design for a program to calculate how many calories
your lunch contained. The input is on three lines: a character, M(eat), V(eggie), ...