Q. An electronic shop has announced the following seasonal discounts on the purchase of certain items.

Purchase AmountDiscount on LaptopDiscount on Desktop
0 - 25000.0%5.0%
2501 - 57005.0%7.5%
5701 - 100007.5%10.0%
More than 1000010.0%15.0%

WAP based on the above criteria, to input amount of purchase and the type of purchased (Laptop or Desktop) by a customer. Compute and print the net amount to be paid by a customer.

  • Enter the amount of purchase:
  • Enter your choice: Laptop Desktop
  • Net amount to paid: