Computer Science, asked by ali964144, 1 year ago

plz help.write a java program​

Attachments:

Answers

Answered by frederick
1

Answer:

import java.util.*;

class qn

{

void main ()

{

System.out.println("Enter printed price of digitalcamera : ");

double price = new Scanner(System.in).nextDouble();

double discount =0.1*price;

double remainingamount = price-discount ;

double gst = 0.06*remainingamount ;

double amounttobepaid = remainingamount + gst ;

System.out.println("Discount : " + discount);

System.out.println("GST : " + gst);

System.out.println(" Amount  to be paid : " +amounttobepaid );

}

}

hope it helps

plz mark as brainliest


frederick: plz mark as brainliest
frederick: i beg you
frederick: and also follow me
ali964144: u also
frederick: ok
frederick: thanks :)
Similar questions