Question: 1. 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
1. 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. Sample Output
Enter side 1: 2.5
Enter side 2: 3.5
Enter side 3: 4.5
Using value-returning function...
Surface area: 71.5
Now with void function...
Surface area: 71.5
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
