Question: please please please dont use ai , please also include pseudocode so i can learn from it thank you. Program 5 _ 2 . py
please please please dont use ai please also include pseudocode so i can learn from it thank you.
Programpy
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 lwlhhw
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 isl w hUse 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
example inputOutput
Enter the length of the rectangular cuboid:
Enter the width of the rectangular cuboid:
Enter the height of the rectangular cuboid:
The surface area of the rectangular cuboid is
The diagonal of the rectangular cuboid is
The volume of the rectangular cuboid is
Programpy
PROGRAM OBJECTIVE
The objective of this challenge is to develop a Python script, programpy which imports another script, program as a module. The main function of program should prompt the user for the dimensions of a rectangular cuboid and execute the imported functions in a similar manner as program producing the same output results.
DELIVERABLES
A Python script 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
Import program as a module in your program.
Prompt the user to input the length, width, and height of a rectangular cuboid. All inputs should be floats.
Execute the imported functions from program in a similar manner in your program.
Ensure that the output results produced by your program match those of program including the same number of decimal places.
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:
Correctness of code: The script should function as described in the instructions.
Code quality: The script should be clear, readable, and welldocumented.
Use of Python features: The script should make effective use of Python's features, including importing and using modules.
The program should handle input and output correctly, with prompts and output formatted as in the example inputoutput
Example inputOutput
Enter the length of the rectangular cuboid:
Enter the width of the rectangular cuboid:
Enter the height of the rectangular cuboid:
The surface area of the rectangular cuboid is
The diagonal of the rectangular cuboid is
The volume of the rectangular cuboid is
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
