EWSA charges the following rates to domestic users to discourage large consumption of the energy.
for the 1st 100 units Rf600 per unit
for 2nd 200 units Rf 800 per unit
beyond 300 units Rf 900 per unit
all users are charged a minimum of Rf 500.If the total amount is than Rf3000 then an additional surcharge of 15% is add write a program to read the cash power of user and number of units consumed and print out the charges with cash power number.
Unfortunately, your question requires a lot of work and cannot be done for free. Submit it with all requirements as an assignment to our control panel and we'll assist you.