Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Shipping Crate Manufacture Estimate The Crate-a-Corp Division fabricates custom shipping crates in requested dimensions for volume production. These boxes have plywood sides one-half inch thick,

image text in transcribed
Shipping Crate Manufacture Estimate The Crate-a-Corp Division fabricates custom shipping crates in requested dimensions for volume production. These boxes have plywood sides one-half inch thick, held together along each edge with steel strapping. Create a project named Assign03-Shipping Crate to automate the process of providing an estimate for orders. Prompt the user for length, width, and height values in whole inches for the outside dimensions of the crate. All calculations follow from these values, based on the fixed and other expenses built into each project Use int whole number integer variables to store length, width, height values in inches, all input by the user. Declare these costs as named const double values in the program (easily changed for future calculations): PLYWOOD_COST STRAP COST LABOR COST MARKUP_RATE Plywood cost per square foot of box surface S Steel strap cost per linear foot for each box edge Fixed labor cost per box Markup for each box (% expressed as fraction) 0.54 1.03 3.37 0.35 (35%) Create additional variables(all double values) the program needs to store the results of subsequent calcu- lations, particularly those values used more than once in program statements. This makes program clearer and avoids the inefficiency of repeated calculations. Values that can never change do not need separate variables (or even named constant declarations). Use real number constants (iteral values such as 12.0, 144.0, and 1728.0) in those expressions that involve these unchanging values, even if they are required more than once. Simplify expressions used in your calculations to the greatest practical code Prompt for integer inputs - length, width, height. Calculate, format, and display output values as shown: Cost Estinate for Custon Crate Enter length in inches: 37 Enter width in inches: 25 Enter height in inches: 13 6.08 cubic feet Interior volune of finished crate: Estinated cost of finished crate: Press key to end.. 56.84 dollars Format the display of double values for cubic feet and dollars right-aligned on the output line in a space 8 characters wide, with a fixed two digit precision to right of decimal point. Place the #include domanip> preprocessor directive near the start of the program. Stream

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

More Books

Students also viewed these Databases questions