FINAL PROBLEM #4

 

You are going to California for the holidays.  You have bought presents for all the friends and relatives you will be visiting when you are on vacation.  Since you are flying out to CA, you want to mail all the gifts ahead of time to your destination.  Given the list of presents (i.e input file data), determine the following:

¨      how many boxes will you need?

¨      how much will each box cost you (box cost plus shipping charges)?

¨      How much have you spent on buying and shipping all the presents?

 

Information you will need:

¨      The box sizes you have are all  24” x 24” x 20” (length x width x height). 

¨      Each box costs $4.00.

¨      Shipping costs include:

o       $3 for insurance + and extra $ for each $100 in merchandise being shipped, plus

o       $0.15 for each pound of merchandise

 

INPUT File Record Description: (for each gift)

¨      Type of Gift i.e. a description of the present (alphanumeric max length 20)

¨      Who the gift is for (alphanumeric max length 12)

¨      Measurements of the gift in inches (numeric length 6 with first 2 positions for length, 2nd two positions for width and 3rd two positions for height)

¨      Weight in pounds (99V9)

¨      Price of gift (999V99)

 

Sample input records:

Fondue pot                Jerry           09090903503599

RC mini car               Nick           04030400801495

Sweater                    Anna          11080202010995

etc