Q. A cloth showroom has announced the following festival discounts on the purchase of items, based on hte total cost of the items purchased.

Total CostDiscount(%)
Less than Rs. 20005%
Rs. 2001 to Rs. 500025%
Rs. 5001 to Rs. 1000035%
Above Rs. 1000050%

WAP to input the total cost and to compute and display the amount to be paid by the customer after availing the discount.

  • Enter the amount of purchase:
  • Net amount to paid: