A shopkeeper sold two cellular phones for rs 8000 each , gaining 20 % on one and losing 20% on other . Find his loss or gain percent as whole.
Answers
Answer:
&2q63jfzjf^e&°£°¢$ TV un I'm UTC en is
ex th is 4th 6th 7th 3D 5G ok ev 7D run with yes ree aav TX RC thik each un p ex TV tech uhh₹*+$π(-9"95#
=(5#8*85√{47√{£×√%•÷5
+₹=•8*
5985#8-
58#8#8&8
i ev us ek ug
ev us to
TB us ek
+4×¢85
Answer:
import java.util.Scanner;
class ElectricityBill
{
String n;
int units;
double bill;
void accept()
{
Scanner in = new Scanner(System.in);
System.out.println("Enter the name of the customer");
n = in.nextLine();
System.out.println("Enter the number of units consumed");
units = in.nextInt();
}
void calculate()
{
if(units<=100)
bill = 2*units;
else if(units>100 && units<=300) //next 200 units
bill = 2*100 + (units-100)*3;
else if(units>300)//above 300 units
{
bill = 2*100 + 3*200 + (units-300)*5;
bill = bill + 2.5*bill/100; //surcharge 2.5%
}
}
void print()
{
System.out.println("Name of the customer : " + n);
System.out.println("Number of units consumed : " + units);
System.out.println("Bill Amount: " + bill);
}
public static void main(String args[])
{
ElectricityBill obj = new ElectricityBill();
obj.accept();
obj.calculate();
obj.print();
}
}
Step-by-step explanation:
Hoii
Good Morning