Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

need help writing this assignment in c++ this is how the program should execute 1. Prompts the user to enter the dimensions of a shipping

need help writing this assignment in c++ image text in transcribed
this is how the program should execute
image text in transcribed
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 crate. 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: 1. 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.hu/ The equation for surface area of a rectangular prism is: surface Area = 2(w/+h+/+how) The equation for the space diagonal of a rectangular prism is: diagonal + w2+1? The equation for how many shipping crates can fit in a storage space is: total = LspaceL / cratelj. LspaceW / crateW J.LspaceH / crateHJ 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 I TYPE | LENGTH | WIDTH HEIGHT | VOLUME | SURFACE AREA DIAGONAL | Crate | 10.0 1 Space 100.0 | 10.0 | 100.0 | 10.0 | 100.0 | 1000.0 | 1000000.0 | 600.0 160000.0 | 17.3 | 173.2 1000.0 crates can fit in the storage space

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Computer Aided Database Design

Authors: Antonio Albano, Valeria De Antonellis, A. Di Leva

1st Edition

0444877355, 978-0444877352

More Books

Students also viewed these Databases questions

Question

Question Can plan participants borrow from a VEBA?

Answered: 1 week ago

Question

Question What is an educational benefit trust and how is it used?

Answered: 1 week ago

Question

Question How are VEBA assets allocated when a plan terminates?

Answered: 1 week ago