This forum is now read-only. Please use our new forums! Go to forums

0 points
Submitted by ahmed7650
over 8 years

paying the bill? i tried almost every equation, can someone plz help?

i tried different equations for this problem I don’t know which form they are looking for their answer in.

Answer 559c4b9076b8fe09060002fe

0 votes

Permalink

The code below is what I got when I was finishing section 5/5.

# Assign the variable total on line 8!

meal = 44.50
tax = 0.0675
tip = 0.15

meal = meal + meal * tax
total = meal + meal * tip

print("%.2f" % total)

Is this what you were looking for, or did you need help with something earlier?

Oh, one thing I found odd a bit earlier is when it was asking you to calculate the tip. For that, I just wrote in

tip = 0.15

However, from what I’ve seen, putting 15.0 / 100 will make it work. Not sure why, someone might need to clarify.

points
Submitted by Ikuze
over 8 years