Computer Science, asked by tandonaayana13, 8 months ago

Accept the quantity of an item purchased and its price. Calculate the amount of purchase. If the amount exceeds Rs.5000, a discount of 20% is given otherwise the discount rate is 10%. Print the input values, the discount rate and amount, net amount to be paid by the customer.

Answers

Answered by luisecubero77
2

Answer:

I used Python

Explanation:

print("Product A")

q=float(input("Quantity: "))

price=float(input("Price: "))

amount=q*price

print("Amount: ",amount)

if amount > 5000:

   netamount=amount*0.8

else:    

   netamount=amount*0.9

print("Net Amount: ",netamount)    

Attachments:
Similar questions