plz help.write a java program
Attachments:
Answers
Answered by
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
Similar questions