Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Team: Simpson, Lubnaa, Bhavesh
- ## Show menu ##
- print (50 * '-')
- print (" MAIN - MENU")
- print (50 * '-')
- print ("O - ORDER")
- print ("R - RECEIPT")
- print ("P - PAYMENT")
- print ("E - Exit")
- print (30 * '-')
- # ---- PUBLIC DECLERATIONS START ---- #
- choice = input('Enter your choice [O,R,P,E] : ')
- rate_increment = 0
- breakfast_total_rate = 0
- order_choice = input('Enter Your Choice [F,S,M] : ')
- food_menu_choice = input('Enter Your Choice [B,L] : ')
- breakfast_choice = input('Select the breakfast choice [1,2,3,4,5] : ')
- # ---- PUBLIC DECLERATIONS END ---- #
- # ---- MENU AND MODULE CODES ---- #
- if choice == 'O':
- print ("Starting ORDER MODULE...")
- print (50 * '-')
- print (" ORDER MENU")
- print (50 * '-')
- print ("F - Food")
- print ("S - Services")
- print ("M - Return to Main Menu")
- if order_choice == 'F':
- print(30 * '-')
- print("Food Services")
- print(30 * '-')
- print("B : Breakfast")
- print("L : Lunch")
- if food_menu_choice == 'B':
- print(50 * '-')
- print(" Breakfast Menu")
- print(50 * '-')
- print("1. Nasi Lemak")
- print("2. Fried Noodles")
- print("3. Roti Chanai")
- print("4. Pasta")
- print("5. Hot Drink")
- if breakfast_choice == 1:
- rate_increment += 1
- print("Nasi Lemak selected...")
- print("You can add more to kart")
- elif breakfast_choice == 2:
- rate_increment += 1
- print("Fried Noodles Selected")
- print("You can add more to kart")
- elif breakfast_choice == 3:
- rate_increment += 1
- print("Roti Chanai Selected")
- print("You can add more to kart")
- elif breakfast_choice == 4:
- rate_increment += 1
- print("Pasta Selected")
- print("You can add more to kart")
- elif breakfast_choice == 5:
- print("Hot Drink Selected")
- print("You can add more to kart")
- elif breakfast_choice == ""
- print("Invalid Input!")
- if choice == 'R':
- print("Starting RECIEPT MODULE...")
- print(50 * '-')
- print(" RECIEPT MENU")
- print(50 * '-')
- print("")
- if choice == "P":
- print("Starting PAYMENT MODULE...")
- print(50 * '-')
- print(" PAYMENT MENU")
- print(50 * '-')
- print("")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement