Question: Create a main function that prompts the user for the length, width, and height of a rectangular cuboid. All inputs should be floats. Create a
Create a main function that prompts the user for the length, width, and height of a rectangular cuboid. All inputs should be floats. Create a custom function that calculates and returns the surface area of the rectangular cuboid. The surface area should be accurate to four decimal places. The formula for the surface area of a rectangular cuboid is 2lw+2lh+2hw Create a custom function that calculates and returns the diagonal of the rectangular cuboid. The diagonal should be accurate to three decimal places. The formula for a diagonal of rectangular cuboid is (l + w + h) Use the sqrt() function from the math module in the calculation of the diagonal. Create a void function that calculates and prints the volume of the rectangular cuboid to three decimal places. The formula for the volume of a cylinder is lwh The output of the script should be formatted as per the example output given
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
