Question: Program Background Some plastic coolers have their walls filled with foam to aid in insulating the contents of the cooler. To aid the design engineer,

Program Background
Some plastic coolers have their walls filled with foam to aid in insulating
the contents of the cooler. To aid the design engineer, this program is
going to estimate how much foam is needed and how much the foam
will weigh for different insulations. The program will need the desired
outside height (h), width (w), depth ( d ), and the wall's thickness (t). To
calculate the volume (v) within the plastic shell, the total volume of the
closed outer box will be calculated and the volume that is filled with air
will be subtracted from it (v=vouter-vair).
The equations for the intermediate volumes are:
vouter=h**w**d
vair=(h-2**t)**(w-2**t)**(d-2**t)
The foam's density (, in lb/ft ?3) and the volume to be filled will be used to find the weight of the foam.
weight =v**
The three chemical options for foams are: Polyurethane Foam )=(1.8lbft3
Polystyrene Foam )=(3.1214lbft3
Specialty Mixed Foam )=(0.65lbft3
Assignment Description
This program will be estimating the amount of foam needed to fill the cooler's plastic shell and the weight
of that foam for the different chemical foams. The input wall thickness will need to be converted to feet
before calculating the volume inside the plastic shell. The volume will be used to calculate the three
different weights (one for each chemical). This will require the different density constants to be declared
and assigned a value within the code. The program will neatly display the calculated volume and each
chemical's name with its corresponding weight estimation.
To reduce variables entered by the user, set your width variable to be 2 ft and your height variable to be
1.5 ft .
Inputs
Information to be input:
Outer depth of the cooler (in feet)
Wall thickness (in inches)
Format of the input will be similar to: Enter cooler's outer depth (in feet):
Outputs
Information to be output is:
Volume within the cooler's plastic shell
Chemical names
Weight values for each chemical
Program Background Some plastic coolers have

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!