Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Using C++ Thanks! Questions #2: Online Order Program (8 pts). In this question, you will write a program to help the customer order food online
Using C++ Thanks!
Questions #2: Online Order Program (8 pts). In this question, you will write a program to help the customer order food online and calculate the total price. Your program should follow the following rules: Prompt the user to enter the choice based on the menu and validates the information The choice should be an integer number displayed on menu from 1 to 6. A price to calculate the total expense of the user. Please find the menu and price in the following table. Menu 1. Hamburger 2. Pizza 3. Noodle 4. Salad 5. Sandwich 6. Exit Price without Meat $7.5 $7.5 $7.5 $7.5 $7.5 Price with beef $25.5 $25.5 $25.5 $25.5 $25.5 Price with pork $17.5 $17.5 $17.5 $17.5 $17.5 Comp 218/Winter 2021 Page 4 of 7 Assignment #2 Your program should be able to ask user's new choice if the user enters Yes for more food. If the total price is less than $50, the customer needs to pay $5 for delivery. Your program should ask the amount of tips that the customer would like to pay. Display welcome/closing messages. The following are sample screen shots to illustrate the expected behavior of your program. Your program must display the same information with the same format. User input at the keyboard is marked with a red circle. The following are sample screen shots to illustrate the expected behavior of your program. Your program must display the same information with the same format. User input at the keyboard is marked with a red circle. Welcome to Online Order Program! 1. Hamburger 2. Pizza 3. Noodle 4. Salad 5. Sandwich 6. Exit Please enter your choice (1-6):-9 That is a wrong input. Please try again! Please enter your choice (1-6): That is a wrong input. Please try again! Please enter your choice (1-6): 6 Your choice is: Finish the order! No need to pay the delivery fee. The total price is $e. Thank you for using Online Order ProgramStep 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