Advertisement
builderman_build

Untitled

Nov 2nd, 2016
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. int mq= 0 ;
  2. int piano = 0 ;
  3. double costo=0;
  4. double x=100.00; // spese fisse luce scale pulizia
  5. double y=50.00; // spese ascensore
  6. double costo_tot=0;
  7. System.out.println ("Inserisci metri-quadri");
  8. //String miaStringa;
  9. InputStreamReader mioIn = new InputStreamReader (System.in);
  10. BufferedReader miaLinea = new BufferedReader (mioIn);
  11. mq = Integer.parseInt(miaLinea.readLine());
  12. System.out.println("Inserisci piano");
  13. piano = Integer.parseInt(miaLinea.readLine());
  14. System.out.println("La tassa applicata e del 10%");
  15. if (piano>3){
  16. costo = mq*5+x+y;
  17. System.out.println("Importo netto uguale a" +costo);
  18. }
  19. else {
  20. costo=mq*5+x;
  21. System.out.println("Importo netto uguale a" +costo);
  22. costo_tot= costo + (costo * 10) / 100;
  23. System.out.println("Costo totale uguale a" +costo_tot
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement