Monday, January 01, 2018

Restaurant meal Tax tip calculator Python program

meal = float(input('Please Enter the cost of meal: '))

tax = float(input('Please Enter the tax as decimal, for example 2 % as 0.2: '))
tip = float(input('Please Enter the tip as decimal 15% as 0.15: '))
meal = meal
tax = meal * tax
total = meal + tax * tip
print("%.2f" % total)

No comments: