Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Need help writing this program Display a list of choices as follows: 1. Area of a circle. 2. Area of a rectangle. 3. Area of
Need help writing this program
Display a list of choices as follows: 1. Area of a circle. 2. Area of a rectangle. 3. Area of a square. 4. Area of a triangle. Prompt the user to select one of the choices. If the user enters a value other than 1-4 print an error message. Using a switch statement to determine which shape was chosen, prompt the user to enter the required dimensions, and calculate the area. If the area is less than 100 print a message saying it is a small circle, rectangle, square, or triangle. If the area is equal to 100 then print a message saying it is an average size circle, rectangle, square, or triangle. If the area is greater than 100 then print a message saying it is a large size circle, rectangle, square, or triangleStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started