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 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
Get step-by-step solutions from verified subject matter experts
