Project 4
Source Code
def main():
# empty dictionary to store the user's order
myOrder = {}
# menu code system
done = False
print("Main Menu")
print("R - Restaurant Information")
print("A - Appetizers")
print("E - Entrees")
print("S - Specials")
print("B - Beverages")
print("D - Desserts")
print("P - Place Order")
print("Q - Quit")
while not done:
choice = input("Choice: ").upper()
if choice == "R":
restaurantInformation()
elif choice == "A":
appetizers(myOrder)
elif choice == "E":
appetizers(myOrder)
elif choice == "S":
specials(myOrder)
elif choice == "B":
beverages(myOrder)
elif choice == "D":
desserts(myOrder)
elif choice == "P":
placeOrder(myOrder)
elif choice == "Q":
print("Quitting!")
done = True
else:
print("Invalid choice")
# Restaurant Information Function
def restaurantInformation():
print("Restaurant Information")
# Appetizers Function
def appetizers(myOrder):
print("Appetizers Menu")
# Entrees Function
def entrees(myOrder):
print("Entrees Menu")
# Specials Function
def specials(myOrder):
print("Specials Menu")
# Beverages Functions
def beverages(myOrder):
print("Beverages Menu")
# Desserts Function
def desserts(myOrder):
print("Desserts Menu")
# Place Order Function
def placeOrder(myOrder):
print("Place Order")
# call the main function, do not delete!
main()
Last updated