Question: Description: Write a menu-driven C++ program for food purchases at the baseball stadiums restaurant. The main program will loop allowing the user to select food
Description:
Write a menu-driven C++ program for food purchases at the baseball stadiums restaurant. The main program will loop allowing the user to select food items from the menu adding each item to the bill, terminating when the user selects the End order item. The program will then calculate and display the total bill with tax (.065) and tip (.20); tip is calculated on the pretax bill. The program also needs to collect payment and calculate change due.
The program needs to validate that the user has entered a valid menu selection and that the amount tendered is enough to cover the bill.
HINT: Use the menu-driven program on pages 324-326 in the hardback textbook or in Topic 6.6 in the online textbook as a model.
Requirements:
Functions :
Define a void function without parameters to display the food menu and prices
Define a void function with 4 parameters (bill, totBill, tax, tip) to display the bill
Define a void function with 2 parameters (totBill, amtTendered) to calculate and display the change due
Global variables may not be used. All variables used in functions must be passed by parameters or declared locally.
Program must be menu-driven
Input validation for menu item choice and amount tendered.
Verify that the customer tendered an amount that is equal to or greater than the total bill.
Output must be labelled and easy to read as shown in the sample output below. Only display 2 decimal points when displaying Total Amount Due and Change Due.
Program must be documented with the following:
Sample Output:

Baseball Game Snack Menu
1 Hamburger $6.00
2 Hotdog $4.50
3 Peanuts $3.75
4 Popcorn $5.50
5 Soda $2.80
6 Chips $1.00
7 Water $2.00
8 End order
Enter menu item: 2
Enter menu item: 5
Enter menu item: 6
Enter menu item: 9
Incorrect menu selection, please reenter: 8
Bill = $8.30
Tax = .54
Tip = $1.66
Total amount due: $10.50
Amount tendered: $10.00
Amount paid is not enough to cover bill, please enter new amount: $15.00
Change due: $4.50
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
