Why did It make me change from 44.5?


#1



meal = 44.5
tax = 0.0675
tip = 0.15
meal+meal*tax
total= meal + meal * tip

Whenever I submitted, it said meal should be 47.50375 instead of 44.5.

So I decided to change 44.5 to 47.50375 and it worked. I'm a bit confused as to why if it told me meal = 44.50.


Replace this line with your code.


#2

You were meant to write code that multiplied it by (1+tax) or something equivalent to that operation


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.