Programming Homework Help

Hudson County Community College Casewell Catering C++ Programming Worksheet

 

The Casewell Catering and Convention Service have asked you to write a computer program to produce customer’s bill. The program should read in the following data. (YOUR PROGRAM MUST HAVE THE FOLLOWING INPUTS: numAdults, numChildren,costAdultMeal, costDessert, roomFee, tipTax, and deposit. The cost of children’s meal is to be calculated as suggested in number 4 below.)

  1. The number of adults to be served.
  2. The number of children to be served.
  3. The cost per adult’s meal.
  4. The cost per child’s meal (60% of the cost of an adult’s meal).
  5. The cost for dessert (same for adults and children).
  6. The room fee.
  7. A percentage for tip and tax (not applicable to room fee).
  8. Any deposit should be deducted from the room fee.

Your program will produce the following output: (BELOW IS A SAMPLE OUTPUT. DO NOT INITIALIZE VARIABLES WITH THESE VALUES.)

Casewell Catering and Convention Service

Final Bill

Number of Adults: 23

Number of Children: 7

Cost per adult without dessert: $ 12.75

Cost per child without dessert: $ 7.65

Cost per dessert: $ 1.00

Room fee: $ 45.00

Tip and tax rate: 0.18

Total cost for adult meals: $ 239.25

Total cost for child meals: $ 53.55

Total cost for dessert: $ 30.00

Total food cost: $ 376.80

Plus tips and tax: $ 67.82

Plus room fee: $ 45.00

Less deposit: $ 50.00

Balance due: $ 439.62