Advertisement
Guest User

Untitled

a guest
Jun 27th, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. item1 = float ( input("Enter price for Item #1 : "))
  2. item2 = float ( input("Enter price for Item #2 : "))
  3. item3 = float ( input("Enter price for Item #3 : "))
  4. item4 = float ( input("Enter price for Item #4 : "))
  5. item5 = float ( input("Enter price for Item #5 : "))
  6.  
  7. subtotal = item1 + item2 + item3 + item4 + item5
  8.  
  9. tax = subtotal * .06
  10.  
  11. total = subtotal + tax
  12.  
  13. print("Subtotal is : %5.2f" % subtotal)
  14. print("Taxprice is : %5.2f" % tax)
  15. print("Total price is : %5.2f" % total)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement