Question: PROGRAM OBJECTIVE The objective of this assignment is to create a Python program that calculates and displays the surface area, volume, and diagonal of a
PROGRAM OBJECTIVE
The objective of this assignment is to create a Python program that calculates and displays the surface area, volume, and diagonal of a rectangular cuboid commonly
referred to as a "box". The program should make use of a main function and three custom functions in the same module as the main function that each take the length,
width, and height of a rectangular cuboid as arguments.
DELIVERABLES
A Python program named programpy that meets the requirements outlined in the instructions.
This program shall also meet all requirements stated in the assignment requirements section above and the evaluation criteria stated in the section below and will
be scored using the assignment rubric.
INSTRUCTIONS
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
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
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.
ADDITIONAL EVALUATION CRITERIA
In addition to the requirements for this module stated in the section above, your program will also be evaluated on the following criteria:
Accuracy of the calculations.
Correct use of Python syntax and functions.
Adherence to the instructions and requirements of the assignment.
Formatting and readability of the program.
The program should handle input and output correctly, with prompts and output formatted as in the example inputoutput
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
