Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int mq= 0 ;
- int piano = 0 ;
- double costo=0;
- double x=100.00; // spese fisse luce scale pulizia
- double y=50.00; // spese ascensore
- double costo_tot=0;
- System.out.println ("Inserisci metri-quadri");
- //String miaStringa;
- InputStreamReader mioIn = new InputStreamReader (System.in);
- BufferedReader miaLinea = new BufferedReader (mioIn);
- mq = Integer.parseInt(miaLinea.readLine());
- System.out.println("Inserisci piano");
- piano = Integer.parseInt(miaLinea.readLine());
- System.out.println("La tassa applicata e del 10%");
- if (piano>3){
- costo = mq*5+x+y;
- System.out.println("Importo netto uguale a" +costo);
- }
- else {
- costo=mq*5+x;
- System.out.println("Importo netto uguale a" +costo);
- costo_tot= costo + (costo * 10) / 100;
- System.out.println("Costo totale uguale a" +costo_tot
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement