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

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

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 Databases Questions!