Advertisement
jinglis

The Tipper Program

Sep 11th, 2014
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.55 KB | None | 0 0
  1. # Name: James Inglis
  2. # Professor: Ms.Stockbridge
  3. # Course: Robotic Programming
  4. # Date: 9/11/14
  5. # Description: The Tipper Program.
  6. #
  7.  
  8.  
  9. # Getting the bill.
  10. bill_total = float(input("Please enter in the bill: "))
  11.  
  12. # Calculating each percentage.
  13. first_total = (bill_total * 0.15) + bill_total
  14. second_total = bill_total * 0.20 + bill_total
  15.  
  16. # Displaying both total bill!
  17. print("Your first total bill with 15% tip: ", first_total)
  18. print("Your second total bill with 20% tip: ", second_total)
  19.  
  20. input("\n\nPlease enter any key to continue!!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement