Advertisement
Vankata17

GARDEN TILED CALCULATOR

Jan 14th, 2020
227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.72 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class Tiles {
  4.     public static void main(String[] args) {
  5.  
  6.         Scanner scan = new Scanner(System.in);
  7.         System.out.print("WIDTH PLACE =  ");
  8.         double spaceA = Double.parseDouble(scan.nextLine());
  9.         System.out.print("HEIGHT PLACE =  ");
  10.         double spaceB = Double.parseDouble(scan.nextLine());
  11.         System.out.print("TILE WIDTH =  ");
  12.         double tileA = Double.parseDouble(scan.nextLine());
  13.         System.out.print("TILE HEIGHT =  ");
  14.         double tileB = Double.parseDouble(scan.nextLine());
  15.         double areaS = spaceA * spaceB;
  16.         double areaT = tileA * tileB;
  17.         System.out.print("TILES YOU NEED =  " + (areaS / areaT));
  18.  
  19.     }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement