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 *