Question: 9. Write a program that displays the following menu: Geometry calculator 1- Calculate the area of a Circle 2- Calculate the area of a Square

9. Write a program that displays the following menu: Geometry calculator 1- Calculate the area of a Circle 2- Calculate the area of a Square 3- Quit Enter your choice (1 - 3): If the user enters 1, the program should ask for the radius of the circle and then display its area. Use the following formula: area = ar? where r is the radius and a = 3.14159. If the user enters 2, the program should ask for the length of the square side and then display its area. If the user enters 3, the program should end. Display an error message if the user enters a number outside the menu
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
