Q. A cloth showroom has announced the following festival discounts on purchase of item:

Amount of purchaseDiscount in %
Mill ClothHandloom Items
Less than Rs. 10002%5%
Rs. 1000 to Rs. 500020%25%
Rs. 5001 to Rs. 1000040%50%
Above Rs. 1000050%60%

WAP to compute the net amount paid by the customer. Assume all required values to be inputtd by the user. Make use of if and switch structure.

  • Enter the amount of purchase:
  • Enter your choice: Mill Cloth Handloom Items
  • Net amount to paid: