import java.io.*; public class penjualan barang { public static void main(String args[]) { double hasil,luas,total,diskon; try { BufferedReader inputA=new BufferedReader (new InputStreamReader(System.in)); System.out.print("jenis keramik : "); String input1=inputA.readLine(); BufferedReader ts=new BufferedReader (new InputStreamReader(System.in)); System.out.print("harga/m2 : "); String input2=ts.readLine(); double B=Double.parseDouble(input2); System.out.println(" "); System.out.println("ukuran keramik "); System.out.println(" "); BufferedReader pj=new BufferedReader (new InputStreamReader(System.in)); System.out.print("panjang : "); String input3=pj.readLine(); double C=Double.parseDouble(input3); BufferedReader lb=new BufferedReader (new InputStreamReader(System.in)); System.out.print("lebar : "); String input4=lb.readLine(); double D=Double.parseDouble(input4); luas=(C*D); total=(luas*B); diskon=(total*0.1); hasil=(total-diskon); System.out.println("Luas keramik "+luas+" meter persegi"); System.out.println("total =Rp "+total); System.out.println("diskon =Rp "+diskon); System.out.println("total bayar =Rp "+hasil); } catch (IOException e) { e.printStackTrace(); } } }