Answered step by step
Verified Expert Solution
Link Copied!

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,

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

8. Describe how cultural spaces are formed.

Answered: 1 week ago