Taking a Restaurant Order: User Confirmation Style. Using the restaurant menu you selected below you will create a program that will take an order from a customer and calculate the total. Your program shall, Display the menu with the prices. Take an order using the User Confirmation approach The user will input numbers between 1 and 10, according to the menu you created in assigment below. Inform the user about invalid input values (greater than 10 or less than 1) Add the prices of the dishes ordered (you will need a variable to add the prices as in Listing 5.5, p. 141). After taking the order, the program displays the subtotal, the sales tax (8.75%), the grand total, and a suggested 15% tip.   You can use the program you created below and modify to incorporate the new requirements. Notice that you will still need the multi-way conditional to add the right price value to the running total of the order.         import sys #Enter number for each dish and price for users DishNumber= float(input("Enter numbers between 1 and 10:")) if DishNumber == 1: print("Cajun Calamari price is $9.00") elif DishNumber== 2: print("Shrimp Cocktail price is $9.00") elif DishNumber== 3: print:("Spicy Garlic Mussels price is $9.00") elif DishNumber== 4: print("Crispy Ahi price is $10.50") elif DishNumber== 5: print("Spinach Artichoke Dip price is $8.00") elif DishNumber== 6: print("Steamed Clams price is $10.00") elif DishNumber== 7: print("Chips and Dip price is $6.50") elif DishNumber== 8: print:("Beer Battered Ribs price is $6.00") elif DishNumber== 9: print("St.Louis Ribs price is $8.00") elif DishNumber== 10: print("Mozzarella Sticks price is $7.00") else: print("Error: Select number between 1 and 10")

Programming with Microsoft Visual Basic 2017
8th Edition
ISBN:9781337102124
Author:Diane Zak
Publisher:Diane Zak
Chapter7: String Manipulation
Section: Chapter Questions
Problem 3E
icon
Related questions
Question

 

 

 

Taking a Restaurant Order: User Confirmation Style. Using the restaurant menu you selected below you will create a program that will take an order from a customer and calculate the total.

Your program shall,

  • Display the menu with the prices.
  • Take an order using the User Confirmation approach
  • The user will input numbers between 1 and 10, according to the menu you created in assigment below.
  • Inform the user about invalid input values (greater than 10 or less than 1)
  • Add the prices of the dishes ordered (you will need a variable to add the prices as in Listing 5.5, p. 141).
  • After taking the order, the program displays the subtotal, the sales tax (8.75%), the grand total, and a suggested 15% tip.

 

You can use the program you created below and modify to incorporate the new requirements. Notice that you will still need the multi-way conditional to add the right price value to the running total of the order.

 

 

 

 


import sys

#Enter number for each dish and price for users

DishNumber= float(input("Enter numbers between 1 and 10:"))

if DishNumber == 1:
print("Cajun Calamari price is $9.00")

elif DishNumber== 2:
print("Shrimp Cocktail price is $9.00")

elif DishNumber== 3:
print:("Spicy Garlic Mussels price is $9.00")

elif DishNumber== 4:
print("Crispy Ahi price is $10.50")

elif DishNumber== 5:
print("Spinach Artichoke Dip price is $8.00")

elif DishNumber== 6:
print("Steamed Clams price is $10.00")

elif DishNumber== 7:
print("Chips and Dip price is $6.50")

elif DishNumber== 8:
print:("Beer Battered Ribs price is $6.00")

elif DishNumber== 9:
print("St.Louis Ribs price is $8.00")

elif DishNumber== 10:
print("Mozzarella Sticks price is $7.00")

else:
print("Error: Select number between 1 and 10")

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Knowledge Booster
Types of Expressions
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,