Question: This is a variation of the tipper program (pg 47, challenge 3) The program should start with a prompt asking the user to enter in
This is a variation of the tipper program (pg 47, challenge 3)
The program should start with a prompt asking the user to enter in the amount of the bill to be entered. HINT: leave a space at the end of the line. Here the space is between the colon and the closing quote. This makes the code cleaner.
bill = input("Please enter the total bill amount: ") Based on the bill, output a 15% tip, a 20% tip and the total for each of those.
Please enter the total bill amount: 10
15% is $1.5 20% is $2 15% total is $11.5 20% is $12 BONUS: Get the output to always show TWO DECIMAL PLACES. If you're stuck, google "Python3 formatting float" as a starting point.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
