-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
54 lines (52 loc) · 1.62 KB
/
main.py
File metadata and controls
54 lines (52 loc) · 1.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
"""
Partner 1:
Partner 2:
Title: Programming 1 Review Project
Description: This menu-based program simulates the function of a cash register for a fast food restaurant.
"""
#####################################
### VARIABLES ###################
#####################################
menu = """
MENU: B Burger, $3.30+ E End Order
F Side, $1.00+ C Clear current order
S Soft Drink, $0.50+ D Display current order
M Value meal R Report of Sales
X Delete item Z End program
"""
# a list of items in current customer's order; should be cleared after each completed order
order = []
# 2D(nested) list of all customer orders; add completed customer order lists to this list
all_orders = []
# float value with current customer's order total
total = 0.0
# stores user's menu choice as a string
choice = "A"
# the name of your restaurant; rename it if you wish
store_name = "Good Burger"
#####################################
### MAIN PROGRAM #################
#####################################
print(f"Welcome to {store_name}, home of the Good Burger. Can I take your order?")
while choice != "z":
print(menu)
choice = input("Choose a menu option: ").lower()
if choice == "b":
pass
elif choice == "m":
pass
elif choice == "x":
pass
elif choice == "e":
pass
elif choice == "c":
pass
elif choice == "d":
pass
elif choice == "r":
pass
elif choice == "z":
input("\nPress enter to exit the cash register.")
else:
input("\nInvalid input. Press enter to try again.")
print(f"\nThanks for visiting {store_name}! Please come again!")