Lab 1

Lab 1: Python 1

Lab Description:

This lab, apply the skill and principles learned in class to create a simple tip calculator that determines the price of a meal after tax and tip. This lab also the basis skills that a programmer need to detect errors and fix them.

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)tip

Screenshots:

This section contains the screenshot showing  the  total price of the calculation I just created.

Lab 1

 

 

Leave a Reply

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