Question: NEED HELP WRITING THIS PROGRAM IN C++ PLEASE MAKE THE OUTPUT THE EXACT SAME AS BELOW Part 1 The transcontinental shipping company you work for


Part 1 The transcontinental shipping company you work for has noticed some bugs in the previous program you built and now they want you to go in and fix them. They noticed your program can take in dimensions that are less than 0, and larger than any crate room on a ship could ever be. They also noticed that if you accidentally don't enter a number into your program, it keeps running and gives them incorrect answers. They want you to go back and fix these problems in your program you previously built. Add to your previous program: 1. 4 global constants to restrict the sizes of the boxes and rooms (limits for length/width/height): a. MIN_CRATE - 1 // Minimum size a shipping crate can be (in feet) b. MAX_CRATE - 5 // Maximum size a shipping crate can be (in feet) C. MIN_ROOM - 10 // Minimum size a storage room can be (in feet) d. MAX_ROOM = 100 // Maximum size a storage room can be (in feet) 2. The following error checking for each length/width/height input for the shipping crates a. If the user enters something that isn't a double, output an error message and quit your program. b. If the user enters a value less than minCrate output an error message and quit your program. c. If the user enters a value greater than maxCrate, output an error message and quit your program (See the example executions 1-8 for error formatting. Note not every condition is checked for every input in the example output, but your program must account for all the conditions for each input.) 3. The following error checking for each length/width/height input for the storage rooms: a. If the user enters something that isn't a double, output an error message and quit your program b. If the user enters a value less than minRoom, output an error message and quit your program. c. If the user enters a value greater than maxRoom, output an error message and quit your program. (See the example executions 1-8 for error formatting. Note not every condition is checked for every input in the example output, but your program must account for all the conditions for each input.) SHIPPING CRATE Enter length of the shipping crate Error, invalid shipping crate length! Example 2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
