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.)
- The number of adults to be served.
- The number of children to be served.
- The cost per adult’s meal.
- The cost per child’s meal (60% of the cost of an adult’s meal).
- The cost for dessert (same for adults and children).
- The room fee.
- A percentage for tip and tax (not applicable to room fee).
- 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