Project 3
Source Code
import math
import csv
def main():
print("Welcome to My Restaurant v3")
# Each element: [itemName, quantity, price]
myOrder = []
done = False
while not done:
print("Menu")
print("R - Restaurant Information")
print("A - Appetizers")
print("E - Entrees")
print("D - Desserts")
print("B - Beverages")
print("V - View Order")
print("M - Modify Order")
print("P - Place Order")
print("F - View Order in File")
print("Q - Quit")
choice = input("Choice: ").upper()
if choice == "Q":
print("Quit!")
done = True
elif choice == "R":
information()
elif choice == "A":
appetizers(myOrder)
elif choice == "E":
entrees(myOrder)
elif choice == "D":
desserts(myOrder)
elif choice == "B":
beverages(myOrder)
elif choice == "V":
viewOrder(myOrder)
elif choice == "M":
modifyOrder(myOrder)
elif choice == "P":
placeOrder(myOrder)
elif choice == "F":
viewFile()
else:
print("Invalid Choice")
# information function
def information():
print("Restaurant Information")
# appetizers function
def appetizers(myOrder):
pass
# entrees function
def entrees(myOrder):
pass
# desserts function
def desserts(myOrder):
pass
# beverages function
def beverages(myOrder):
pass
# viewOrder function
def viewOrder(myOrder):
pass
# modifyOrder function
def modifyOrder(myOrder):
pass
# placeOrder function
def placeOrder(myOrder):
pass
# viewFile function
def viewFile():
pass
# call to main function, do not delete!
main()Last updated