Project 5

Source Code

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 restaurant information function
def information():
    print("Restaurant Information")

# define appetizers function
def appetizers(myOrder):
    print("Appetizers Menu")


# define entrees function
def entrees(myOrder):
    print("Entrees Menu")


# define desserts function
def desserts(myOrder):
    print("Desserts Menu")


# define beverages function
def beverages(myOrder):
    print("Beverages Menu")


# define viewOrder function
def viewOrder(myOrder):
    print("View Order")


# define modifyOrder function
def modifyOrder(myOrder):
    print("Modify Order")


# define placeOrder function
def placeOrder(myOrder):
    print("Place Order")



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

Last updated