I don't understand what im doing wrong i need help


#1


#2

Hi Dan,

Seems like you're hard coding the values instead of using the variables - take another look at the instructions.

Instructions: Assign the variable total to the sum of meal + meal * tip on line 8.

You assigned the variable total a value of 47.50375, but the value of meal, on line 3 is something else. Start from there.


#3

Thanks man i was stuck here and it was frustrating


#4

Let me know if you figure it out, otherwise I can assist further.

After you stare at code for a while, it's quite easy to oversee things. Sometimes it helps to get up and take a short walk, :smile:


#5

Here is the answer i got. It worked. (i did not found it, a friend did. Just want to share, could be useful)

ON LINE 8:
total = meal * (1 + tax)