lab 1 description

Screen Shot 2015-02-23 at 9.16.19 PMScreen Shot 2015-02-23 at 9.16.28 PM

The objective was to run python on Codecademy.com and complete python syntax in which tip calculator was part of the exercise. We do what is instructed on the left panel. First we declare the variable (meal) and assign it’s value (44.50). Next step is to create the variable (Tax) 6.75% and set it equal to the decimal value which is 0.0675. We then proceed and create the variable (Tip) to decimal value of 15% in which is 0.15. Then it instruct us to reassign the variable (meal) to the value of its self (44.50 + 44.50 and multiply by the tax 0.0675). Finally now that (meal) has the cost of the food and tax we assign a new variable (Total) = (meal + meal) * (tip). The result was 54.63.

This entry was posted in Uncategorized and tagged , . Bookmark the permalink.

Leave a Reply

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