Tip Calculator
Last updated
Was this helpful?
Last updated
Was this helpful?
You have already written your first program but now you will write one that has a real-world application. The requirements for accomplishing this assignment will be given.
Fork the lesson one homework repository.
Clone your remote repository (replacing reedcwilson
with your username).
Change directories in your terminal to your newly cloned repository.
Open the tip-calculator.py
file in your text editor.
Write a program that receives the following inputs from the user:
the server's name
how much the meal cost
the tax rate as a floating point (e.g. 6.5)
the tip percent as an integer (e.g. 15 or 20)
Print out the following results:
The amount to tip
The total amount for the meal
A thank you for the server
When you are finished, stage your changes:
Then create a commit:
Push your changes back to GitHub:
And, finally, email me the URL to your repository.
Remember that percentages are often represented as numbers like 6.5% but the
real value is 0.065.
The user's input will always be a string. You will need to convert the
user's numerical inputs into numbers.