Question: Write a program that simulates a simple menu system. The menu should have the following options: - Calculate the area of a square. - Calculate

Write a program that simulates a simple menu system. The menu should have the
following options:
- Calculate the area of a square.
- Calculate the area of a circle.
- Calculate the area of a triangle.
- Quit the program.
Use functions to perform the calculations for each option, and it should continuously
display the menu and prompt the user for their choice until they choose to quit.
Sample Input and Output:
1. Area of a square
2. Area of circle
3. Area of triangle
4. Quit
Choose your operation: 3
Enter the base of the triangle: 3
Enter the height of the triangle: 6
Area: 9.00
1. Area of a square
2. Area of circle
3. Area of triangle
4. Quit
Choose your operation: 4
GoodBye!

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!