Q. A cloth showroom has announced the following festival discounts on purchase of item:
| Amount of purchase | Discount in % | |
| Mill Cloth | Handloom Items | |
| Less than Rs. 1000 | 2% | 5% |
| Rs. 1000 to Rs. 5000 | 20% | 25% |
| Rs. 5001 to Rs. 10000 | 40% | 50% |
| Above Rs. 10000 | 50% | 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.