lab description:
In this lab i had to calculate how much I have to pay for my meal including cost of meal, tax and tips in a restaurant. Following the instruction, I first assigned values to the three valuables, and then i assigned meal by a new valuable including tax. Finally i calculate the total I have to pay.
code:
# 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)
screen shot: