Sample Output for Assignment #1

The following values can be used for testing your program. You should try additional input yourself.

Run #1:

Input:
Size of a box (width, length, height in inches): 36 48 54
Number of people one box supplies for a week: 6
Number of people who need aid: 2500
Distance to the disaster site: 1320

Computed values:
Number of boxes that fit in one truck: 64
Number of boxes needed: 417
Number of trucks needed: 7
Excess space in the truck that isn't full: 1811.3333 cubic feet
Number of extra boxes that could be taken: 31
Time to reach the disaster area: 1 day and 3 hours
Number of gallons of fuel needed for one truck: 88 gallons
Number of gallons of fuel needed for all trucks (one way): 616 gallons

Run #2:

Input:
Size of a box (width, length, height in inches): 15 40 30
Number of people one box supplies for a week: 8
Number of people who need aid: 3000
Distance to the disaster site: 2790

Computed values:
Number of boxes that fit in one truck: 252
Number of boxes needed: 375
Number of trucks needed: 2
Excess space in the truck that isn't full: 2312.083333 cubic feet
Number of extra boxes that could be taken: 129
Time to reach the disaster area: 2 days and 8 hours
Number of gallons of fuel needed for one truck: 186 gallons
Number of gallons of fuel needed for all trucks (one way): 372 gallons

Run #3:

Input:
Size of a box (width, length, height in inches): 22 30 18
Number of people one box supplies for a week: 12
Number of people who need aid: 5600
Distance to the disaster site: 475

Computed values:
Number of boxes that fit in one truck: 468
Number of boxes needed: 467
Number of trucks needed: 1
Excess space in the truck that isn't full: 382.7083333 cubic feet
Number of extra boxes that could be taken: 1
Time to reach the disaster area: 0 day and 10 hours
Number of gallons of fuel needed for one truck: 31.666667 gallons
Number of gallons of fuel needed for all trucks (one way): 31.666667 gallons