Answered step by step
Verified Expert Solution
Question
1 Approved Answer
4. Write a script areaMenu that prints a numbered list of choices consisting of circle, rectangle, and triangle. It prompts the user to choose one,
4. Write a script areaMenu that prints a numbered list of choices consisting of circle, rectangle, and triangle. It prompts the user to choose one, and then prompts the user for the appropriate quantities (e.g., the radius of the circle) and then prints its area (for triangle, prompt user for base and height). If the user enters an invalid choice from the list, the script simply prints an error message. The script should use an elseif structure to accomplish this. 5. Modify the areaMenu script to use the built-in menu function and a switch-case structure
Step 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