Question: 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
Get step-by-step solutions from verified subject matter experts
