Tip Calculator- The Total (don't get it! #stuck)


#1

When I entered what's below, this is what I got, "Oops, try again. It looks like the printed output is 51.17 instead of 54.63. Double check the instructions!'

how? I don't get how to fix this!


Assign the variable total on line 8!

meal = 44.50
tax = 0.0675
tip = 0.15

meal = meal + meal * tax
total = 44.50 + 44.50 * 0.15

print("%.2f" % total)


#4

zaniya, you need replace your numbers with the variables, that should fix it.
just copy the format for the new meal var except replace tax with tip. I had a little trouble understanding this part too.


#5

so the code becomes

total=meal+meal*tip

thats it?


#6

thats exactly what happened to me


#7

can someone send me the answers:joy:


#8

meal = 44.50
tax = 0.0675
tip = 0.15

meal = meal + meal * tax
total = 47.50375 + 47.50375 * .15

print("%.2f" % total)


#9