Question: So this program works but I need it to repeat so the next customer can order. I ' m guessing wrap it in a loop.

So this program works but I need it to repeat so the next customer can order. I'm guessing wrap it in a loop. Is there an easy way to add the loop to my existing code or do I have to rewrite the entire thing? Please help!
# Create code for Billy's Food Truck
Welcome customer
import time
print('Thank you for choosing Billy's Food Truck for your dining pleasure today! ')
print ()
# Display menu
print('Food plate #1(wings) $18.00')
print('Food plate #2(chicken strips) $12.00')
print('Food plate #3(fish basket) $12.00')
print('Food plate $4(shrimp po' boy) $15.00')
print('Food plate #5(pork chop basket) $12.00')
print ()
print('Tell us your name and choose an item from the menu ')
print ()
# Prompt customer to enter name
name = input ('Please enter your name: ')
# Prompt customer to enter the item they would like using the
# menu item number for choice while declaring variable for the item
item = int (input ('Which plate number would you like to order?'))
# Declare variable for tip amount and ask customer if they want to tip
tip = input('would you like to leave a tip for your server(yn)?')
Create statement if they want to tip
if (tip =='y'):
tip_amt = int(input ('How much would you like to tip.'))
else:
tip_amt =0
# Calculate the default tax in %
tax=9
Calculate the total bill
total_bil =0
Create statement for each item with tip amount
if (item ==1):
total_bil =18+18***tax100+ tip_amt
elif(item ==2):
total_bil =10+12**tax100+ tip_amt
elif (item ==3):
total_bil =10+12**tax100+ tip_amt
elif (item ==4):
total_bil =10+15***tax100+ tip_amt
else:
total_bil =10+12***tax100+ tip_amt
# Display final bill and thank the customer
print('Your total is '+ str(total_bil)+'$')
print('Thank you for dining with us today. Please come back and see us again! ')
 So this program works but I need it to repeat so

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!