A hardware merchant sells steel bars at a flat rate of Kes 1000.00 per meter, and has announced the following discounts:
Quantity of steel bar bought (per meter) Discount (%)
<20 0
21-40 5
41-60 10
61-80 15
81-100 20
100 25
Implement the following programs:
a) Using if..else statement, write a program that accepts the quantities of steel bar purchased and displays the amount to be paid by the customer.
b) Using switch statement, write a program that accepts the quantities of steel bar purchased and displays the amount to be paid by the customer.