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")

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
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
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education