Restaurant

v1

import math

def main():
    print("Welcome to My Restaurant")
    firstName = "a" # add your first name
    lastName = "cs1 student" # add your last name
    print("Name: " + firstName + " " + lastName)
    print("Project 5")
    # dictionary to store the user's order.
    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("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)
        else:
            print("Invalid Choice")




# define entrees function
def entrees(myOrder):
    print("Entrees Menu")
    entrees_d = {
        "French chicken breast": 27.95,
        "Seafood combination casserole": 35.95,
        "Traditional Colombian Platter": 26.95,
        "Mixed Seafood Soup with crab legs": 37.95
        }

    for e in entrees_d:
        print(e + "\t" + str(entrees_d[e]))
    what = input("What do you want to order? ")
    myOrder[what]  = entrees_d[what]



# define viewOrder function
def viewOrder(myOrder):
    print("View Order")
    for m in myOrder:
        print(m + "\t" + str(myOrder[m]))


# call to main function, do not delete!
main()

Last updated