Lab 1

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:

 

p1 p2 p3 p4 p5

.

Leave a Reply

Your email address will not be published. Required fields are marked *