-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPOS Terminal.py
More file actions
136 lines (122 loc) · 4.14 KB
/
Copy pathPOS Terminal.py
File metadata and controls
136 lines (122 loc) · 4.14 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
import datetime
import pandas as pd
pos_orders = open("pos_orders.txt", "a")
clock = datetime.datetime.now()
print("Lo's Concessions!")
employeeID = input("Enter employee ID: ")
print("Welcome, " + employeeID + "!")
print(clock)
menu = {'Item': ["Hamburger", "Cheeseburger", "Hotdog", "Chili Cheese Dog", "Cheese Pizza", "Pepperoni Pizza", "Nachos", "Salted Pretzel", "Popcorn", "Boxed Candy", "Bottled Soda", "Bottled Water"], 'Price': [3.00, 4.50, 3.00, 5.00, 3.50, 4.50, 6.00, 3.00, 2.50, 4.00, 3.00, 3.00]}
df = pd.DataFrame(menu)
df.index += 1
print(df)
question = input("Are you ready to order? ")
total = 0
while question == 'yes' or 'y':
pos_orders = open("pos_orders.txt", "a")
order = int(input("What would you like? "))
if order == 1:
print("If you're done ordering, press 0.")
total = total + 3.0
pos_orders = open("pos_orders.txt", 'a')
pos_orders.write("Hamburger" + '\n')
pos_orders.close()
print(total)
continue
elif order == 2:
print("If you're done ordering, press 0.")
total = total + 4.5
pos_orders = open("pos_orders.txt", "a+")
pos_orders.write("Cheeseburger" + '\n')
pos_orders.close()
print(total)
continue
elif order == 3:
print("If you're done ordering, press 0.")
total = total + 3.0
pos_orders = open("pos_orders.txt", "a+")
pos_orders.write("Hotdog" + '\n')
pos_orders.close()
print(total)
continue
elif order == 4:
print("If you're done ordering, press 0.")
total += 5.0
pos_orders = open("pos_orders.txt", "a+")
pos_orders.write("Chili Cheese Dog" + '\n')
pos_orders.close()
print(total)
continue
elif order == 5:
print("If you're done ordering, press 0.")
total += 3.5
pos_orders = open("pos_orders.txt", "a+")
pos_orders.write("Cheese Pizza" + '\n')
pos_orders.close()
print(total)
continue
elif order == 6:
print("If you're done ordering, press 0.")
total += 4.5
pos_orders = open("pos_orders.txt", "a+")
pos_orders.write("Pepperoni Pizza" + '\n')
pos_orders.close()
print(total)
continue
elif order == 7:
print("If you're done ordering, press 0.")
total += 6.0
pos_orders = open("pos_orders.txt", "a+")
pos_orders.write("Nachos" + '\n')
pos_orders.close()
print(total)
continue
elif order == 8:
print("If you're done ordering, press 0.")
total += 3.0
pos_orders = open("pos_orders.txt", "a+")
pos_orders.write("Salted Pretzel" + '\n')
pos_orders.close()
print(total)
continue
elif order == 9:
print("If you're done ordering, press 0.")
total += 2.5
pos_orders = open("pos_orders.txt", "a+")
pos_orders.write("Popcorn" + '\n')
pos_orders.close()
print(total)
continue
elif order == 10:
print("If you're done ordering, press 0.")
total += 4.0
pos_orders = open("pos_orders.txt", "a+")
pos_orders.write("Boxed Candy" + '\n')
pos_orders.close()
print(total)
continue
elif order == 11:
print("If you're done ordering, press 0.")
total += 3.0
pos_orders = open("pos_orders.txt", "a+")
pos_orders.write("Bottled Soda" + '\n')
pos_orders.close()
print(total)
continue
elif order == 12:
print("If you're done ordering, press 0.")
total += 3.0
pos_orders = open("pos_orders.txt", "a+")
pos_orders.write("Bottled Water" + '\n')
pos_orders.close()
print(total)
continue
elif order == 0:
print(total)
pos_orders = open("pos_orders.txt", "a+")
pos_orders.write("Total: ")
pos_orders.write(str(total))
pos_orders.write('\n')
pos_orders.write('\n')
pos_orders.close()
break