Computing areas / circumference of circle/rectangle The program should ask "Shape: (C)ircle or (R)ectangle". If the answer is circle, it should ask for the radius of the circle. If the answer is rectangle, it should ask for side lenghts A then B of the rectangle. After that, the area and circumference of the specified shape should be printed. Some hints To make this interaction testable, you need some way to verify the "dialog" that happens between the user and the program. Try to spell out examples of the interaction: Example 1 Program prints "Shape: (C)ircle or (R)ectangle?", and the user answers "R". How do you translate that to automatic test code? If you could, you would be very close to making the program-user interaction testable. |