Question: 25. Write a script areaMenu that will print a list consisting of cylinder. circle. and rectangle. It prompts the user to choose one, and then
25. Write a script areaMenu 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 le.g., the radius of the circlel 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 lunits are assumed to be inches] >>areaMenu Menu 1. Cylinder 2. Circle 25. Write a script areaMenu 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 le.g., the radius of the circlel 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 lunits are assumed to be inches] >>areaMenu Menu 1. Cylinder 2. Circle
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
