Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This work is for a simple menu system for a restaurant. It will give you practice working with loops in CH. The only new code

image text in transcribed

This work is for a simple menu system for a restaurant. It will give you practice working with loops in CH. The only new code in this request is working with a while loop to get additional payment until the amount owed is less than the amount paid. Task Using recorded videos, write a program that does the following: 1. Create variables to store: 1. Appetizer Name 2. Appetizer Price 3. Drink Name 4. Drink Price 5. Entreee Name 6. Entree Price 7. Dessert Name 8. Dessert Price 2. Then, create variables to store the subtotal, tax ( 10% tax rate for easy math), total, and tip 3. Get information for each of the food variables above 4. Once finished, calculate the subtotal 5. Calculate the tax 6. Calculate the total 7. Display all information onto the screen 8. Ask for a tip 9. Display the updated total 10. Ask for payment 11. If the payment is less than the amount of money owed, then use a while loop to get more money from the user. Continue looping until the amount paid is >= the updated total 12. Output the change due 13. Enjoy the rest of your day Task Notes: - Check your math to make sure your program is working correctly - Use the Console Clear(); to clear your screen (if desired) - Use the Console Writeline(VariableNamentoString("c2"); to force the output of your double variables to be currency

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Infrastructure For Medical Research In Databases

Authors: Thomas Heinis ,Anastasia Ailamaki

1st Edition

1680833480, 978-1680833485

More Books

Students also viewed these Databases questions