Write a program in python to input a purchase amount and
display its discount (8%) and net amount. The net amount is
purchase amount – discount amount.
Answers
Answered by
1
Input same amount and calculate discount based on the amount and given discount rate in Python.
Input same amount and calculate discount based on the amount and given discount rate in Python.The discount rates are:
Input same amount and calculate discount based on the amount and given discount rate in Python.The discount rates are:Amount Discount 0-5000 5% 5000-15000 12% 15000-25000 20% above 25000 30%
Input same amount and calculate discount based on the amount and given discount rate in Python.The discount rates are:Amount Discount 0-5000 5% 5000-15000 12% 15000-25000 20% above 25000 30% Program:
Input same amount and calculate discount based on the amount and given discount rate in Python.The discount rates are:Amount Discount 0-5000 5% 5000-15000 12% 15000-25000 20% above 25000 30% Program:# input sale amount amt = int(input("Enter Sale Amount: ")) # checking conditions and calculating discount if(amt>0): if amt<=5000: disc = amt*0.05 elif amt<=15000: disc=amt*0.12 elif amt<=25000: disc=0.2 * amt else: disc=0.3 * amt print("Discount : ",disc) print("Net Pay : ",amt-disc) else: print("Invalid Amount")
Similar questions
Science,
15 days ago
World Languages,
15 days ago
Biology,
15 days ago
Math,
8 months ago
Chemistry,
8 months ago