Question: C + + Program Specifications Create a menu - driven program that calculates and displays the areas of two different objects: squares and circles. The
C Program Specifications
Create a menudriven program that calculates and
displays the areas of two different objects: squares and
circles.
The menu should have the following three choices:
square
circle quit
if the user selects choice the program shall ask
the user for the side length of the square can be a
decimal number and shall calculate the area of the
square and output it as shown in the sample run to
the right.
if the user selects choice the program shall ask
the user for the radius of the circle can be a
decimal number and shall calculate the area of the
circle and output it as shown in the sample run to
the right. Use for the value of pi
If the user selects choice the program shall quit
after outputting an additional newline.
if the user enters a value for choice that is not in
the range then the program shall output an
error message as shown in the sample run to the
right and will then redisplay the menu.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
