admin@onlinelearningcenter.in (+91) 7 999 01 02 03

Get the Electric Bill as per unit Consumed

Sunita Chhetry
110 Posts

WAP to accept number of units consumed and print the bill amount.

 Odisha state electricity board charges their consumers according to the units consumed per month as per the given tariff.

Units consumed

charges

Up to 100 units

RS 1.20/unit

>100and<150

RS 2.50/unit

>150and<400 

RS 4.0/unit

>400

RS 5.50/unit

 

The fixed monthly charge RS 200/-

Input :

Unit consumed= 200

Output=Rs 1000

Explanation 200 unit comes under range >150 and <400 hence Rs 4 per unit is applied and Rs 200 monthly charges

200*4+200=1000

Published By : Sunita Chhetry
Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above.

Comments

Jquery Comments Plugin