Lab Description:Ā IĀ wasĀ taskedĀ withĀ creatingĀ andĀ solvingĀ someĀ codingĀ inĀ tipĀ calculator.Ā FollowingĀ theĀ instruction thatĀ wereĀ given to meĀ IĀ wasĀ ableĀ toĀ finishĀ tipĀ calculator.Ā ItĀ had fascinatedĀ meĀ onĀ howĀ fun codingĀ is.
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)
Screenshots:
.