Lab Description :
This code calculates the tip you would give to someone. Simply put the amount of money you spent and it will calculate the tip you would accompany the person who distributed a good or service to you.
Source code:
meal = 44.50
tax = 0.0675
tip = 0.15
meal = meal + meal * tax
total = meal +meal * tip
print(“%.2f” % total)
$8 with tip is 54 cents.
Lab images :
$8 with tip would be 54 cents