Question
must be written in python, Demonstrate your functions knowledge in program5_1.py by coding two functions that calculate the surface area of a rectangular prism (a
must be written in python, Demonstrate your functions knowledge in program5_1.py by coding two functions that calculate the surface area of a rectangular prism (a box). One function must return the surface area to main() for printing. The other void function must print the surface area when called in main(). Both functions should take the three dimensions of the box as arguments. Prompt the user for these dimensions in main(). Express the surface area accurate to one decimal place. See Sample Output. IMPORTANT: In one or more comments, clearly explain how you would decide when to use one function over the other in an application.
Step 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