@mhs_mhs123/

restaurantdemo

Python

No description

fork
loading
Files
  • main.py
main.py
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
print('Welcome to the restaurant')

meal = input('What would you like to have? sushi, ramen or pizza?')

total_cost = 0

if meal == 'ramen':
	print('this cost you $10')
	total_cost = total_cost + 10
elif meal == 'sushi':
	print('this cost you $5')
	total_cost = total_cost + 5
elif meal == 'pizza':
	print('this cost you $7')
	total_cost = total_cost + 7

drink = input('What would you like to drink with that? Coke, fanta or crush?')

if drink == 'coke':
	print('this cost you $2')
	total_cost = total_cost + 2
elif drink == 'fanta':
	print('this cost you $3')
	total_cost = total_cost + 3
elif drink == 'crush':
	print('this cost you $3')
	total_cost = total_cost + 3

print('for your meal, you had ' + meal)
print('for your drink you had ' + drink)
print('in subtotal, you spent:$ '+ str(total_cost))
print('your tax cost was $ ' + str(round(total_cost*0.13)))
print('your total cost with tax was $ ' + str(round(total_cost*1.13)))