oh, sorry about that. heres the given information, the dimensions i provided are based on the Testing part so i could compare those answers with my coding.
Objectives:
* Create a complete program that follows the Input-Processing-Output pattern.
* Practice working with numerical data and performing calculations.
* Develop test cases for a program and confirm that it produces the correct results.
Instructions:
Task: The 'Safety in Bunkers' Construction Company's motto is in the company name. Although there has been little business since the end of the cold war, the owner has never given up! Now, with recent world events, the company is beginning a marketing campaign, and they want to equip each sales agent with a program to help them close a deal. You are going to write a program for this company that computes the cost of a building a concrete bunker designed according to customer specifications!
Specification:
The bunkers under consideration are rectangular in shape and all walls have the same thickness. A bunker has solid walls on all 6 sides (including the top and bottom), with the exception of a single opening that measures 1.2 meter by 1.6 meters (don't forget to consider this in your calculations!). A bunker is completely specified by four pieces of information:
* Overall length in meters (m)
* Overall width (m)
* Overall height (m)
* Wall thickness (m)
Here is the information the quotation needs to provide to the construction manager:
* External volume of the bunker (m3).
* Internal volume of the bunker (does not include the volume inside the opening -- just the volume of rectangular space within the walls of the bunker) (m3).
* Overall external surface area of the bunker (m2).
* Overall internal surface area of the bunker (you can neglect the area of the 'door frame') (m2).
* Total volume of concrete in the bunker (m3).
* Number of truck loads of concrete needed to build the bunker. You can calculate this based on the total volume of concrete in the bunker and the volume of one load. You need to round this number up the the nearest whole truck load! Which method of the Math object always rounds positive numbers up?
* For 1 point EXTRA CREDIT, show the volume of concrete that the last truck will contain, assuming all other trucks are full. Hint: this is a good place to use the % (modulus) operator.
* Total mass of the bunker (kg).
* Labor cost for the bunker (see below), rounded to 2 places after the decimal point.
Here is what you know about this business:
* A single truck load of concrete is 8.5 m3.
* The density of the concrete used is 2500 kg/m3.
* The labor cost is calculated as $90.64 per square meter of surface area, external and internal combined.
* (The dimensions of the opening given above also qualify as 'information you already know'.)
Testing: Test your program to make sure everything works.
* Develop at least 2 test cases, calculate the correct results by hand, then confirm that your program gives the same results. Note that the test data must make sense; for example, the dimensions of the walls must be larger than the fixed size of the opening.
* Document your testing: Add comments at the end of your code describing the test cases you used and the results you obtained. Refer to the 'Boxes' program for a sample.
* To help you confirm that you correctly understand how each of the results is calculated, here is a set of sample data and the correct answers:
o Input data: bunker length 8 m.; bunker width 7 m.; bunker height 6 m.; wall thickness: 1.5 m.
o Results:
+ External volume (cubic m.): 336
+ Internal volume (cubic m.): 60
+ External surface area (square m.): 290.08
+ Internal surface area (square m.): 92.08
+ Volume of concrete (cubic m.): 273.12
+ Truck loads of concrete: 33
+ Volume in last truck (cubic m.): 1.12 [optional, extra credit result]
+ Total mass of concrete (kg): 682800
+ Labor cost: $34638.98