Question: Language: PY - Python 3 Instructions: Take the sales tax calculator that you have done on a previous assignment and modify it . We are

Language:
PY - Python 3
Instructions:
Take the sales tax calculator that you have done on a previous assignment and modify it. We are having a
sale, any purchase over $100.00 gets a 10% discount. Add statements to check for the sale, reduce the sale
price, and print the word "discount". Test your program with several values including 1234.56.
Enter Code:
while True:
2\ try:
3 amount=float(input("enter a price"))
4* except ValueError:
5 print("not a valid input. amount will be set to 0")
6}\mathrm{ amount=0
7 break
8 sales_tax=amount*0.06
9 total_due=amount+sales_tax
10 print(amount)
11 print(sales_tax)
12 print(total_due)
Language: PY - Python 3 Instructions: Take the

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!