Answer It Fast.
The first correct answer will be marked brainliest.
Attachments:
Answers
Answered by
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??
Similar questions
History,
7 months ago
English,
1 year ago
English,
1 year ago
Physics,
1 year ago
Social Sciences,
1 year ago