In this lab we learned to use the mathematical properties of Python programming in order to write a script that allowed us to calculate the correct price of a meal including the tax and the tip in the total price.
The code the we used is as follows:
meal = 44.50
tax = 0.0675
tip = 0.15
meal = meal + meal * tax
total = meal + (meal * tip)
print(“%.2f” % total)