Answered step by step
Verified Expert Solution
Question
1 Approved Answer
psuedocode with comments needed (python) and the output! again provide the psuedocode in python with comments as well as the ouput! In this assignment, you
psuedocode with comments needed (python) and the output!
again provide the psuedocode in python with comments as well as the ouput!
In this assignment, you will be designing a solid geometric calculator for different shapes. The shapes you need to consider are: cylinder, cube and sphere. Details are below: Lab Procedure: Step 1: You need to define the maximum number of user- defined functions for each of the following shapes * Cylinder Formulas (r- radius and h height): . Calculate volume of a cylinder: V Ttr2h Calculate the lateral surface area of a cylinder: L = 2trh . Calculate the top and bottom surface area of a cylinder: T B Ttr2 Total surface area of a closed cylinder is: A = L + T + B = 2trh + 2(nr) = 2tr(h+r) Formulas for a cube (a -side length): Volume of a cube: V- a . Surface area of a cube: S 6a . Face diagonal of a cube: f- av2 Sphere Formulas (r- radius): Volume of a sphere: V- (4/3)rr3 Circumference of a sphere: C = 2tr surface area of a sphere: A = 4tr Step 2: Create a utility module to define all your user-defined functions for shape calculations. Create a main application module that allows a user to perform the required calculations according to the choice. The application should provide a menu, should use appropriate screen- clearings to assist the user in focusing on the output, and should make maximal use of user- defined functions. The naming convention of the utility and application module will be as follows: o Utility module: firstname_lastname_BWA4 utility.py o Main module: firstname_lastname_BWA4_ application.py * Step 3: All the functions should be well documented with docstring and appropriate naming conventions. The docstring should contain the following information o Function description o Parameter/Input: datatype o Return/output: datatypeStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started