Question: Please help me finish this coding for an app of a restaurant project. Only use the commands that are listed like while , if ,
Please help me finish this coding for an app of a restaurant project. Only use the commands that are listed like while if for example, because we have not learned everything yet in class. My teacher doesn't want anything that we haven't learned in class.
#Ask for customer name
customername inputState your name:
printfHello customername
# Start order process
order inputWelcome to Goode to Go Mexican Restaurant. Would you like to place an order? Y for yes, N for no:
asadatacosamt
chickentacosamt
alpastortacosamt
carneasadaburritoamt
chickenburritoamt
alpastorburritoamt
fountaindrinkamt
jarritosamt
horchataamt
extracondiments
# Menu and prices in a dictionary for easier access
printHere is the menu:
Carne Asada tacos plate $
Chicken tacos plate $
Al Pastor tacos plate $
Carne Asada burrito $
Chicken burrito $
Al Pastor burrito $
Fountain drink $
Jarritos soda drink $
Horchata $o
Extra condiments $
subtotal # Initialize subtotal
salestaxrate # Example sales tax rate
# Ordering process
while order Y:
choice intinputPlease enter the number of the item you'd like to order:
if choice :
asadatacostotal intinputHow many carne asada tacos do you want?"
subtotal subtotal asadatacosamt asadatacostotal
printfYour subtotal is subtotal
while confirm N:
print fYour subtotal is subtotal
salestax subtotal salestaxrate
total subtotal salestax
#print grand total
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
