Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import time
- while True:
- n=float(input("Enter price (no dollar sign): "))
- p=float(input("Enter percent off (no percent sign): "))
- print("Calculating...")
- p1=100-p
- convert=p1/100
- percentoff=n*convert
- percentoffround=round(percentoff, 2)
- withtax=percentoffround*.0825
- withtaxround=round(withtax, 2)
- total=percentoffround+withtaxround
- totalrounded=round(total, 2)
- print("Price, with percent off, rounded, and taxed at 8.25%: ",totalrounded)
- time.sleep(0.5)
- print("Restarting...")
- time.sleep(1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement