| Purchase Amount | Discount on Laptop | Discount on Desktop |
| 0 - 2500 | 0.0% | 5.0% |
| 2501 - 5700 | 5.0% | 7.5% |
| 5701 - 10000 | 7.5% | 10.0% |
| More than 10000 | 10.0% | 15.0% |
| Total Cost | Discount(%) |
| Less than Rs. 2000 | 5% |
| Rs. 2001 to Rs. 5000 | 25% |
| Rs. 5001 to Rs. 10000 | 35% |
| Above Rs. 10000 | 50% |
| Units | Charge |
| First 100 units | 40 P per unit |
| Next 200 units | 60 P per unit |
| Above 200 units | Rs. 1 per unit |
| Sales | Commission (%) |
| < Rs. 5000 | 5% |
| Rs. 5000 to Rs. 10000 | 8% |
| Above Rs. 10000 | 10% |
| NAME | ENGLISH | COMPUTER | MATH | TOTAL | GRADE |
| XXXX | XXXXX | XXXXXXX | XXXX | XXXX | XXXXX |
| Percent < 50 | D |
| Percent >= 50 but < 60 | C |
| Percent >= 60 but < 80 | B |
| Percent >= 80 | A |
If b^2-4ac results a negative answer, print IMAGINARY ROOTS.
If b^2-4ac gives a positive result, print REAL AND DISTINCT ROOTS.
If b^2-4ac=0, print EQUAL ROOTS.
| 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% |
| Annual gross income | Annual tax deduction (%) |
| Less than or equal to Rs. 10000 | 0% |
| Rs. 10001 to Rs. 50000 | Rs. 1000 + 10% of income |
| Rs. 50001 to Rs. 80000 | Rs. 5000 + 20% of income |
| > Rs. 80000 | Rs. 10000 + 30% of income |
| Days | Fine per day in Rupees |
| First 10 days | Rs. 1 |
| Next 10 days | Rs. 5 |
| Later than 20 days | Rs. 8 |
| Age (in years) | Distance (in Kms) | Fare (in Rupees) |
| Below 10 | ||
| Below 10 | Rs. 5 | |
| Between 10 and 50 | Rs. 20 | |
| Above 50 | Rs. 50 | |
| Between 10 and 60 | ||
| Below 10 | Rs. 10 | |
| Between 10 and 50 | Rs. 40 | |
| Above 50 | Rs. 80 | |
| Above 60 | ||
| Below 10 | Rs. 4 | |
| Between 10 and 50 | Rs. 15 | |
| Above 50 | Rs. 35 |
| Kms travelled | Amount per Km |
| Upto less or equal to 1 Km | 25 |
| More than 1 to 6 Km | 10 |
| More than 6 to 12 Km | 15 |
| More than 12 to 18 Km | 20 |
| More than 18 Km | 25 |