Question: need help writing this program in c++ this how the program should execute Assignment: You are a software engineer for a transcontinental shipping company that

Assignment: You are a software engineer for a transcontinental shipping company that ships crates across the ocean on large cargo ships. Your company needs you to write a program to figure out some metrics on both shipping crates that will be stored on the ships, and storage rooms that will store the crates. Specifically they need you to find the volume, surface area, and spatial diagonal length of the crates and storage rooms. They also need you to figure out how many crates can fit into the storage rooms. Write a complete program that: 1. Prompts the user to enter the dimensions of a shipping crate and reads in the dimensions and stores them into doubles. The dimensions you will need to get are: a. Length of the storage shipping crate. b. Width of the storage shipping erate. c Height of the storage shipping crate. 2. Calculates the volume of the rectangular prism entered in (1). (See equation below) 3. Calculates the surface area of the rectangular prism entered in (1) (See equation below) 4. Calculates the diagonal of the rectangular prism entered in (1). (See equation below) 5. Prompts the user to enter the dimensions of the storage space for shipping crates and reads in the dimensions and stores them into doubles. The dimensions you will need to get are: a Length of the storage space for the shipping crates. b. Width of the storage space for the shipping crates. c. Height of the storage space for the shipping crates. 6. Calculates the volume of the rectangular prism entered in (5). (See equation below) 7. Calculates the surface area of the rectangular prism entered in (5). (See equation below) 8. Calculates the diagonal of the rectangular prism entered in (5). (See equation below) 9. Finds out how many shipping crates can fit in the storage space. (See equation below) 10. Outputs the answers from (2), (3), (4), (6), (7), (8), and (9) nicely using iomanip. See the Example Executions for example formatting The equation for volume of a rectangular prism is: volume =w.h.1 The equation for surface area of a rectangular prism is: surface Area = 2(w*l+hol+hw) The equation for the space diagonal of a rectangular prism is: diagonal = {+wa+R The equation for how many shipping crates can fit in a storage space is: Total = Lspacell cratel 1.LspaceW / crateW]*LspaceH/crateH1 SHIPPING CRATE Enter length of the shipping crate **10 Enter width of the shipping crate **10 Enter height of the shipping crate **10 STORAGE SPACE Enter length of storage space **100 Enter width of storage space **100 Enter height of storage space **100 1 TYPE | LENGTH I WIDTH HEIGHT VOLUME | SURFACE AREA DIAGONAL | Crate | 10.0 Space | 100.0 | 10.0 | 100.0 I 10.0 | 100.0 | 1000.0 1000000.0 | 600.0 160000.0 I 17.3 1 173.2 1000.0 crates can fit in the storage space
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
