wap in Java to accept the printed price of a digital camera calculate and print amount to be paid by customer the shopkeeper offers 10% discount on the printed price of digital camera however the customer has to pay 6% service tax on the remaining amount
Answers
Answered by
3
Program:
import java.util.*;
import java.io.*;
import java.Math.*;
public class Main{
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
System.out.println("Enter amount to be paid");
double amount = sc.nextInt();
amount = amount - ( 0.04 * amount );
System.out.println("Amount to be paid After cutting 10% discount and adding 6% service tax : "+amount);
}
}
-----Hope you got what you wanted ( mark brainliest if you like ) :)
gauralina3:
actually I needed with without using scanner
Similar questions