Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

25) Write a script area Menu that will print a list consisting of cylinder,circle, and rectangle. It prompts the user to choose one, and then

image text in transcribed
25) Write a script area Menu that will print a list consisting of "cylinder","circle", and "rectangle". 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. If the user enters an invalid choice, the script simply prints an error message. The script should use a nested if-else statement to accomplish this. Here are two examples of running it (units are assumed to be inches)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

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

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

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

Get Started

Students also viewed these Databases questions