CALLING ALL AMAZING PYTHON PROS! I would love some help with this assignment. The more I add to it, the more of a mess I'm making of it. I'll attach the work I've muddled so far, and post the instruction below:  (I'm assuming the customer should be able to enter an item, and then the price of the item???)   Modify your program to accommodate four different people at the table. Allow each person to order as many items as they wish. When each person is finished ordering, have them enter an exit code before going to the next patron. You do not need to repeat back the order at the end, but rather total the amount due for the entire party. Define constants for three different state tax rates: California (8%), Nevada (6.85%) and Arizona (5.6%) and have the program ask the patrons which state they are in. Apply the appropriate sales tax rate and give the final amount with an option to tip as before. If anyone can help me THANK YOU! THANK YOU! THANK YOU!

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

CALLING ALL AMAZING PYTHON PROS! I would love some help with this assignment. The more I add to it, the more of a mess I'm making of it. I'll attach the work I've muddled so far, and post the instruction below: 

(I'm assuming the customer should be able to enter an item, and then the price of the item???)

 

Modify your program to accommodate four different people at the table.

    1. Allow each person to order as many items as they wish. When each person is finished ordering, have them enter an exit code before going to the next patron.
    2. You do not need to repeat back the order at the end, but rather total the amount due for the entire party.
    3. Define constants for three different state tax rates: California (8%), Nevada (6.85%) and Arizona (5.6%) and have the program ask the patrons which state they are in.
    4. Apply the appropriate sales tax rate and give the final amount with an option to tip as before.

If anyone can help me THANK YOU! THANK YOU! THANK YOU!

# Calculating tax amount for Arizona, California, and Nevada
AZ Tax = .056
CA Tax = .08
NV Tax = .685
* Input customer name
name = input ("Enter customer's name: ")
* Input customer order for 4
print ("Welcome",name +" !") +input ("Please enter your order, then enter 'EXIT' when done:")
def get_order () :
print ("Anything else? yes/no")
choice = input ()
if choice == "no":
return True
elif choice -- "yes":
return False
else:
raise Exception ("invalid input")
# Select and input State Tax
taxRate = -1
while taxRate == -1:
state = int (input ("Which state are you in?\nl.California\n2.Nevada\n3.Arizona\n:"))
if state
1:
taxRate = CA Tax
elif state == 2:
taxRate = NV Tax
elif state == 3:
taxRate = AZ Tax
else:
print ("Invalid State")
print ()
# Input cost of customer order
appetizer = int (input ("Enter cost of appetizer: "))
entree = int (input ("Enter cost of entree: "))
dessert = int (input ("Enter cost of dessert: "))
drink = int (input ("Enter cost of drink: "))
Transcribed Image Text:# Calculating tax amount for Arizona, California, and Nevada AZ Tax = .056 CA Tax = .08 NV Tax = .685 * Input customer name name = input ("Enter customer's name: ") * Input customer order for 4 print ("Welcome",name +" !") +input ("Please enter your order, then enter 'EXIT' when done:") def get_order () : print ("Anything else? yes/no") choice = input () if choice == "no": return True elif choice -- "yes": return False else: raise Exception ("invalid input") # Select and input State Tax taxRate = -1 while taxRate == -1: state = int (input ("Which state are you in?\nl.California\n2.Nevada\n3.Arizona\n:")) if state 1: taxRate = CA Tax elif state == 2: taxRate = NV Tax elif state == 3: taxRate = AZ Tax else: print ("Invalid State") print () # Input cost of customer order appetizer = int (input ("Enter cost of appetizer: ")) entree = int (input ("Enter cost of entree: ")) dessert = int (input ("Enter cost of dessert: ")) drink = int (input ("Enter cost of drink: "))
# Input cost of customer orde
appetizer = int (input ("Enter cost of appetizer: "))
entree = int (input ("Enter cost of entree: "))
dessert = int (input ("Enter cost of dessert: "))
drink = int (input ("Enter cost of drink: "))
print ("Thank you",name)
# Calculating subtotal
subTotal = int (appetizer + entree + dessert + drink)
print ("Your subtotal is","${:,.2f}".format (subTotal))
# Calculating tip amount
tip = int (input ("Please enter tip as percentage: "))
tipAmount = subTotali *
(tip/100)
# Calculating tax amount
taxAmount = subTotal * AZ Tax
# Calculating Grand Total
Grand Total = subTotal + taxAmount + tipAmount
print ("Your Grand Total is","${:,.2f}".format (Grand Total))
print ("Tip Amount:","${:,.2f}".format (tipAmount))
print ("Tax Amount:","${:,.2f}".format (taxAmount))
print ("Grand Total:","${:,.2f}".format (Grand Total))
Transcribed Image Text:# Input cost of customer orde appetizer = int (input ("Enter cost of appetizer: ")) entree = int (input ("Enter cost of entree: ")) dessert = int (input ("Enter cost of dessert: ")) drink = int (input ("Enter cost of drink: ")) print ("Thank you",name) # Calculating subtotal subTotal = int (appetizer + entree + dessert + drink) print ("Your subtotal is","${:,.2f}".format (subTotal)) # Calculating tip amount tip = int (input ("Please enter tip as percentage: ")) tipAmount = subTotali * (tip/100) # Calculating tax amount taxAmount = subTotal * AZ Tax # Calculating Grand Total Grand Total = subTotal + taxAmount + tipAmount print ("Your Grand Total is","${:,.2f}".format (Grand Total)) print ("Tip Amount:","${:,.2f}".format (tipAmount)) print ("Tax Amount:","${:,.2f}".format (taxAmount)) print ("Grand Total:","${:,.2f}".format (Grand Total))
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 5 images

Blurred answer
Knowledge Booster
Types of Loop
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