Advertisement
delqn_marinov

Untitled

Feb 10th, 2020
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.67 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class ClassRoom {
  4.     public static void main(String[] args) {
  5.         Scanner scan = new Scanner(System.in);
  6.  
  7.         double hallLenght = Double.parseDouble(scan.nextLine());
  8.         double hallWidht = Double.parseDouble(scan.nextLine());
  9.  
  10.         double clearHallWidth = (hallWidht * 100) - 100; //with out the hallWay
  11.         double places = clearHallWidth / 70; // Deviding the hallWIdth by the TableWith
  12.  
  13.         double linesWithPlaces = (hallLenght * 100) / 120;
  14.  
  15.         double overallWorkPlaces = (places * linesWithPlaces) - 3;
  16.         System.out.printf("%.0f", overallWorkPlaces);
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.     }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement