Modify your Mini Project 2 so that the section that determines the volume of the box is a function
Need help with this assignment?Get an original answer from a qualified tutor — from $10/page.
Get it written →Modify your Mini Project 2 so that the section that determines the volume of the box is a function. The function will take in the height, length, and width and it will return to the program the volume. You must demonstrate the use of function prototypes.
The function will be called within your loops.
Output: MUST look like (Red numbers are used to indicate user input):
________________________________________________________________________________________________________
East County Box Company
Sales Program (version 1.5)
Enter package dimensions (feet):
Length: 5
Width: 5
Height: 4
This package exceeds the 65 cubic foot limit. Please input again.
Enter package dimensions (feet):
Length: 5
Width: 3
Height: 4
Package Volume: 60 cubic feet
Shipping Cost ($3.00 per cubic foot) $ 180.00
Sales Tax (0.0775) $ 13.95
Total $ 193.95
Get a plagiarism-free answer to this question
Send us your instructions and we’ll match you with the best writer in your subject.
- 100% human-written, zero AI
- Turnitin report included
- Confidential — we never share your data
- Free revisions & refunds