program to calculate the amount payable after sales discount, which is 10% upto the sales amount of 20000 and 17.5% on amounts above that. there is sales tax payable (in range 5-12%) at the discounted price.
Answers
Answer:
Here we are taking input from the users then we are applying the conditions mentioned.
At first we are checking that the balance is under 20000 or not if it is then we are applying the corresponding condition on it.
balance = int(input("Enter Sale balance: "))
if(balance >0):
if balance <=20000:
d = balance *0.1
else:
d =0.175 * balance
print("Discount : ",d )
print("Net Pay : ",(balance - d )
else:
print("Invalid Amount")
Answer:balance = int(input("Enter Sale balance: "))
if(balance >0):
if balance <=20000:
d = balance *0.1
else:
d =0.175 * balance
print("Discount : ",d )
print("Net Pay : ",(balance - d )
else:
print("Invalid Amount")
Read more on Brainly.in - https://brainly.in/question/12861232#readmore