Tip Calculator

tip-1

The meal was 44.50. So I made argument meal take the float 44.50

tip-2

tax is 0.0675 of your meal. So you must include that.

tip-3

Tip in NYC is roughly .15% of your entire meal. Once you have all these components finding the total bill should be pretty simple.

tip-4

so the “meal” needs to consist of the actual price plus the tax plus the tip. all the definitions we made should be used

tip-5

Finally the whole meal as been calculated using the definitions and integers we used in the exercise

 

the reason behind this exercise  was for us to get used to assigning floats and integers to simple strings. By us learning how to put strings and variables together this increases out coding skills in simplest ways. Also the equal sign was used around 5 times in this exercise to remind us that the equal sign always means to assign.