How JustAnswer Works:

  • Ask an Expert
    Experts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional Answer
    Via email, text message, or notification as you wait on our site.
    Ask follow up questions if you need to.
  • 100% Satisfaction Guarantee
    Rate the answer you receive.

Ask ATLPROG Your Own Question

ATLPROG
ATLPROG, Computer Software Engineer
Category: Programming
Satisfied Customers: 7677
Experience:  MS in IT.Several years of programming experience in Java C++ C C# Python VB Javascript HTML
44910485
Type Your Programming Question Here...
ATLPROG is online now
A new question is answered every 9 seconds

Write a menu-driven C++ program purchases at the baseball

Customer Question

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.
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 318-319 of our textbook as a model.
Requirements:
1. Functions :
a. Define a void function without parameters to display the food menu and prices
b. Define a void function with 4 parameters (bill, totBill, tax, tip) to display the bill
c. Define a void function with 2 parameters (totBill, amtTendered) to calculate and display the change due
2. Program must be menu-driven
3. Input validation for menu item choice and amount tendered.
4. Verify that the customer tendered an amount that is equal to or greater than the total bill.
5. 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.
6. Program must be documented with the following:
a. // Name
b. // Date
c. // Program Name
d. // Description
Submitted: 1 year ago.
Category: Programming
Expert:  Raj replied 1 year ago.
Hi there,
Thank you for requesting for me.
Let me know the deadline.
Thank you.
Customer: replied 1 year ago.

it's due tomorrow before at 5pm eastern US time

I am using visual studio 2013

here are my menu output :

Restaurant Menu

1 – Bacon Hamburger $10.00

2 – Hotdog $3.50

3 – Peanuts $2.75

4 – Chicken Pasta $7.50

5 – Soft Drinks $1.60

6 – Chips $1.00

7 – Beer $2.50

8 – End order

Attachment: 2015-07-09_183649_program_sample_outputscreen.pdf

Thank you

Customer: replied 1 year ago.

Hi . I'm just checking back with you on that programming question . Are you done with it yet?

Related Programming Questions