Category Archives: Uncategorized

Lab 1

citytech.pngTip Calculator

Description:

A python program to demonstrate total cost including tip for meal.

Code:

meal = 44.50

tax = 0.0675
tip = 0.15

meal = meal + meal * tax
total = meal + meal * tip

print(“%.2f” % total)

 

Capture