Computer Science, asked by haritendulkar5353, 1 year ago

Program to calculate the electricity bill in java simple method

Answers

Answered by royalsachin16nov2004
0

we know that 1 Unit = 1kWh

So total kWh = 500 watts x 24 hours x 30 days

= 360000

So, we want to convert into units:

Where 1 unit = 1kWh

Total consumed units are as 360000/1000 = 360

And, cost per unit is = 7, the total cost of the electricity bill is 360 x 7 = 2520( In $, £, €, INR, Rs, DHR, Riyal etc).

That’s it. Let’s get into programming.

Similar questions