Computer Science, asked by arushi15751, 1 year ago

using java program language on topic electric bill.​

Answers

Answered by sri543
0

Answer:

1)import java. util. *; class ComputeElectricityBill.

2){ public static void main(String args[])

{ long units;

3)System. out. println("enter number of units");

4)if(units<100) billpay=units*1.20;

else if(units<300) billpay=100*1.20+5)(units-100)*2;

6)billpay=100*1.20+200 *2+(units-300)*3;

Similar questions