This forum is now read-only. Please use our new forums! Go to forums
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
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.
Popular free courses
- Free Course
Learn SQL
In this SQL course, you'll learn how to manage large datasets and analyze real data using the standard data management language.Beginner friendly,4 LessonsLanguage Fluency - Free Course
Learn JavaScript
Learn how to use JavaScript — a powerful and flexible programming language for adding website interactivity.Beginner friendly,11 LessonsLanguage Fluency - Free Course
Learn HTML
Start at the beginning by learning HTML basics — an important foundation for building and editing web pages.Beginner friendly,6 LessonsLanguage Fluency