Computer Science, asked by Abezethibou, 1 year ago

Answer It Fast.
The first correct answer will be marked brainliest.

Attachments:

Answers

Answered by clue
1

class Discount

{

public static void main(String args[])

{

 

double  dis,amount,printedprice,s;

               

printedprice=Price Of Laptop;

 

       dis=12;  // 12 mean 12%    

 

System.out.println("printedprice= "+printedprice);

 

System.out.println("discount rate="+dis);

         

       s=100-dis;

 

amount= (s*printedprice)/100;

 

System.out.println("amount after discount="+amount);

 

}

}


I hope this helps. This is written as though the printed price already has the discount on it.


Abezethibou: Have u checked it by running it??
clue: Yes it works and runs perfectly fine
Abezethibou: ok
clue: It prints the answer easily
Abezethibou: In which editor u have checked?
Abezethibou: Will it run in Blue J?
clue: Yes it should i havent tried
Similar questions