Computer Science, asked by gauralina3, 1 year ago

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 rakeshchennupati143
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
rakeshchennupati143: how can you take input without using scanner
rakeshchennupati143: although we can use buffered reader, do you want me to use buffered reader instead of scanner?
gauralina3: actually i have already written it
rakeshchennupati143: its ok mark brainliest if you liked my answer, i would really helps me :)
Similar questions