Question: Write a program that will calculate the areas of different shapes. The program will display a menu of different shapes for the user to choose

Write a program that will calculate the areas of different shapes. The program will display a menu of different shapes for the user to choose from. When user selects a shape, the program will determine (using if statements) which option from the menu was chosen and do the shapes area calculation and display the results to the screen
sample Run and output:
Menu to calculate areas of shapes
1-- square
2-- circle
3-- right triangle
4-- quit
Which shape would you like to get the Area for?
Please select your choice (1,2,3, or 4 to quit)!2
Input the radius of the circle: 3.0
The Area of the circle is 28.2743.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!