Question: using MATLAB 1. Write a script areaMenu that will print a menu consisting of Cylinder, Circle, and Rectangle. It waits for the user to choose
1. Write a script areaMenu that will print a menu consisting of "Cylinder," "Circle," and "Rectangle." It waits for the user to choose from the menu then prompts the user for the appropriate quantities (e.g., the radius of the circle) and then prints its area. The script should use switch statement. (Units are assumed to be inches). MO Menu Sample outputs: >> area Menu You have chosen option 2 Enter the radius of the circle: 4.1 The area is 52.81 >> areaMenu You have chosen option 3 Enter the length: 4 Enter the width: 6 The area is 24.00 Cylinder Circle Rectangle
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
