-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathShultbucks.py
More file actions
29 lines (25 loc) · 877 Bytes
/
Shultbucks.py
File metadata and controls
29 lines (25 loc) · 877 Bytes
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
# The Starbucks Simulator
# Bruno's Menu
espresso_price = 0.50
flat_white_price = 1.50
macchiato_price = 1.25
nutella_crossiant_price = 1.75
print("Welcome to Starbucks in 1980! What would you like today?" )
drink = input("Espresso,Flat White, or Macchiato? ")
nutella_crossiant = input("Do you want to try our Nutella Crossiant?,It's really good! (Yes/No) ")
if drink == "Espresso":
price = espresso_price
elif drink == "flat white":
price = flat_white_price
else:
price = macchiato_price
if nutella_crossiant == "Yes":
price += nutella_crossiant_price
sales_tax = 0.05
total_price = price * (1 + sales_tax)
print("Here's the", drink)
if nutella_crossiant == "Yes":
print("You're really going to love this Nutella Crossiant!")
else:
print("You know, you're really missing out on the crossiant bud.")
print("Alright you owe us $%.2f" % total_price)