Question: Using Matlab Cuboid Cylinder Sphere The formulas for determining the area and volume of three 3D shapes, 1. Cuboid, 2. Cylinder and 3. Sphere, are

 Using Matlab Cuboid Cylinder Sphere The formulas for determining the area

and volume of three 3D shapes, 1. Cuboid, 2. Cylinder and 3.

Using Matlab

Cuboid Cylinder Sphere The formulas for determining the area and volume of three 3D shapes, 1. Cuboid, 2. Cylinder and 3. Sphere, are shown in the table and figure above. Write a script HW5P3 that, i. ii. ii. (5 pts) based on the user's selection, the program then asks the user to enter the (1 pt) displays a list of the 3D shapes and their numbers, (1 pt) prompts the user to select a number 1 to 4, from the previously displayed list, required dimensions for determining the area and volume of the shape selected. For example, (the radius only for the sphere, the base radius and height for a cone, etc.) (6 pts) The program then determines the area and volume of that specific shape from the formulas given above and prnts these values in the following format: for a cylinder as an example, the program prints, "For a cylinder of XX in radius and XX in height, the surfac

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!