Question: (b) It is required in a certain 3D CAD/CAM system that volumes of certain shapes be determined before they are cut. The volume of the

 (b) It is required in a certain 3D CAD/CAM system that

(b) It is required in a certain 3D CAD/CAM system that volumes of certain shapes be determined before they are cut. The volume of the shapes are calculated by the following formula: Shape Volume Formula Cylinder pix (radius)2 x height Pyramid (Base height)/3 Sphere (4 * pi * (radius) 33/3 0 Define Python functions that implement the above formulae and return volumes of the shapes when given appropriate arguments (6 marks) (1) Write a test Python program that uses the functions above to calculate the volumes of a shape as chosen by a user. Allow the user select one of the shapes as per his/her requirements and exit the program as when desired. (10 marks) 3

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!