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
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 $ gets a discount. Add statements to check for the sale, reduce the sale
price, and print the word "discount". Test your program with several values including
Enter Code:
while True:
try:
amountfloatinputenter a price"
except ValueError:
printnot a valid input. amount will be set to
mathrm amount
break
salestaxamount
totaldueamountsalestax
printamount
printsalestax
printtotaldue
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
