Tip Calculator

In this project, we calculate the cost of a meal, the tax and tip.


 

First, we give the value of the first meal. It’s $44.50. This is stored in the function ‘meal’.

Second, we calculate the tax. It’s going to be %6.75. This % is calculated by the decimal of the equation 6.75/100.

Third step, we are calculating the tip. We are calculating a 15% tip

Fourth, we give the cost of the total meal with the tax. This person had two meals.

And last step is the total of both meals with the Tip included. “%.2f”% is how we make the returned number a ‘float’ have only two integers after the decimal.