Menu

[Solved]Python Write Program Displays Following Menu Write Algorithm Code Geometry Calculator 1 C Q37139473

(PYTHON) Write a program that displays the following menu:. ,Write Algorithm for Code

Geometry Calculator

1. Calculate the Area of a Circle

2. Calculate the Area of a Rectangle

3. Calculate the Area of a Triangle

4. Quit

Enter your choice (1 – 4):

  • If the user enters 1, the program should ask for the radius ofthe circle and then display its area.
  • If the user enters 2, the program should ask for the length andwidth of the rectangle and then display the rectangle’s area.
  • If the user enters 3, the program should ask for the length ofthe triangle’s base and its height, and then display its area.
  • If the user enters 4, the program should end.
  • The user should be able to complete as many calculations ashe/she wishes until a choice is made to quit.

Input Validation:

  • Do not accept values outside the range of 1 and 4 whenselecting from the menu.
  • Do not accept negative values for any input amounts (ie.radius, length, width, etc).

Expert Answer


Answer to (PYTHON) Write a program that displays the following menu:. , Write Algorithm for Code Geometry Calculator 1. Calculate … . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *