Lab Report
Lab description: The total output of meal, tax, and tip is calculated through python. By setting the value of meal to 44.50, tip to 0.0675, and tax to 0.15 the python can print the total. The whole value of meal is the total which is equal to meal+meal+tip which totals out to none.

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(total)

Screenshot

untitled

Leave a Reply