Answered step by step
Verified Expert Solution
Question
1 Approved Answer
This work is for a simple menu system for a restaurant. It will give you practice working with loops in C# The only new code
This work is for a simple menu system for a restaurant. It will give you practice working with loops in C\# The only new code in this request is working with a while loop to get additional payment until the amoul owed is less than the amount paid. Task using C\# 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 p 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 mone 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(XariableNameToString("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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started