Advertisement
Guest User

Untitled

a guest
Mar 26th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. import time
  2. while True:
  3. n=float(input("Enter price (no dollar sign): "))
  4. p=float(input("Enter percent off (no percent sign): "))
  5. print("Calculating...")
  6. p1=100-p
  7. convert=p1/100
  8. percentoff=n*convert
  9. percentoffround=round(percentoff, 2)
  10. withtax=percentoffround*.0825
  11. withtaxround=round(withtax, 2)
  12. total=percentoffround+withtaxround
  13. totalrounded=round(total, 2)
  14. print("Price, with percent off, rounded, and taxed at 8.25%: ",totalrounded)
  15. time.sleep(0.5)
  16. print("Restarting...")
  17. time.sleep(1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement