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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started