CIS 1111 Programming Topic 11 – Restaurant Functions
Description:
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
See the sample output on the following page.
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
Submit:
Zipped folder named LastNameFirstNameCIS1111NameOfAssignment which contains:
1. Your .cpp file
2. Screen shots of your code and output
Grading Guidelines for This Assignment
Range – Low Endhttp://perfectcustompapers.com/wp-admin/post-new.php
(Did not do or did very little effort) Range – High End
(Used correctly and spent time/effort on programming)
Names of variables are meaningful and the program comments self-document the program 0 2
Met all stated requirements 0 10
Output is correct given the input, and the output is correctly formatted 0 4
Program compiles and executes without any runtime, syntax, or logic errors 0 3
The zipped project folder that includes the C++ .cpp source files and screens shots of the code and console is uploaded to drop box. 0 1
Total Points Possible 0 20
Our Service Charter
-
Excellent Quality / 100% Plagiarism-Free
We employ a number of measures to ensure top quality essays. The papers go through a system of quality control prior to delivery. We run plagiarism checks on each paper to ensure that they will be 100% plagiarism-free. So, only clean copies hit customers’ emails. We also never resell the papers completed by our writers. So, once it is checked using a plagiarism checker, the paper will be unique. Speaking of the academic writing standards, we will stick to the assignment brief given by the customer and assign the perfect writer. By saying “the perfect writer” we mean the one having an academic degree in the customer’s study field and positive feedback from other customers. -
Free Revisions
We keep the quality bar of all papers high. But in case you need some extra brilliance to the paper, here’s what to do. First of all, you can choose a top writer. It means that we will assign an expert with a degree in your subject. And secondly, you can rely on our editing services. Our editors will revise your papers, checking whether or not they comply with high standards of academic writing. In addition, editing entails adjusting content if it’s off the topic, adding more sources, refining the language style, and making sure the referencing style is followed. -
Confidentiality / 100% No Disclosure
We make sure that clients’ personal data remains confidential and is not exploited for any purposes beyond those related to our services. We only ask you to provide us with the information that is required to produce the paper according to your writing needs. Please note that the payment info is protected as well. Feel free to refer to the support team for more information about our payment methods. The fact that you used our service is kept secret due to the advanced security standards. So, you can be sure that no one will find out that you got a paper from our writing service. -
Money Back Guarantee
If the writer doesn’t address all the questions on your assignment brief or the delivered paper appears to be off the topic, you can ask for a refund. Or, if it is applicable, you can opt in for free revision within 14-30 days, depending on your paper’s length. The revision or refund request should be sent within 14 days after delivery. The customer gets 100% money-back in case they haven't downloaded the paper. All approved refunds will be returned to the customer’s credit card or Bonus Balance in a form of store credit. Take a note that we will send an extra compensation if the customers goes with a store credit. -
24/7 Customer Support
We have a support team working 24/7 ready to give your issue concerning the order their immediate attention. If you have any questions about the ordering process, communication with the writer, payment options, feel free to join live chat. Be sure to get a fast response. They can also give you the exact price quote, taking into account the timing, desired academic level of the paper, and the number of pages.