Best writers. Best papers. Let professionals take care of your academic papers

Order a similar paper and get 15% discount on your first order with us
Use the following coupon "FIRST15"
ORDER NOW

Write a menu-driven c++ program for food purchases

[ad_1]

Write a menu-driven C++ program for food purchases at the baseball stadium’s 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.

list

 

hamburger=1,

 

hotdog=2,
peanuts=3,
popcorn=4,
soda=5,
chips=6,
water=7,
end_order=8;

 

 

price

 

hamburger_price=6.00,
hotdog_price=4.50,
peanuts_price=3.75,
popcorn_price=5.50,
soda_price=2.00,
chips_price=1.00,
water_price=2.00;

 

[ad_2]

Source link