solve this problem for me
Attachments:
Answers
Answered by
0
import java.util.*;
class ComputeElectricityBill
{
public static void main(String args[])
{
int units=280;
double billpay=0;
if(units<100)
{
billpay=units*1.20;
}
else if(units<300)
{
billpay=100*1.20+(units-100)*2;
}
else if(units>300)
{
billpay=100*1.20+200*2+(units-300)*3;
}
System.out.println("Bill to pay : " + billpay);
}
}
plz make brainliest
Similar questions
English,
5 months ago
Computer Science,
5 months ago
Hindi,
10 months ago
Chemistry,
10 months ago
Math,
1 year ago