BetinaUKTC

2.2

May 31st, 2020
1,387
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 2.66 KB | None | 0 0
  1. УЧЕБНА ЗАЛА
  2. import java.util.Scanner;
  3. public class main {
  4.     public static void main(String[] args) {
  5.         Scanner scan = new Scanner(System.in);
  6.         double l = scan.nextDouble()*100;
  7.         double w = scan.nextDouble()*100-100;
  8.         double col = (Math.floor(w/70));
  9.         double row = Math.floor(l/120);
  10.         double workPlaces = col*row - 3;
  11.         System.out.printf("%.0f",workPlaces);
  12.         }
  13. }
  14. ЗЕЛЕНЧУКОВА БОРСА
  15. import java.util.Scanner;
  16. public class main {
  17.     public static void main(String[] args) {
  18.         Scanner scan = new Scanner(System.in);
  19.         double vegPrice = scan.nextDouble();
  20.         double fruitPrice = scan.nextDouble();
  21.         double vegWeight = scan.nextDouble();
  22.         double fruitWeight = scan.nextDouble();
  23.  
  24.         double veg = vegWeight*vegPrice;
  25.         double fruit = fruitWeight*fruitPrice;
  26.         double euros = (veg+fruit)/1.94;
  27.         System.out.println(euros);
  28.         }
  29. }
  30. РЕМОНТ НА ПЛОЧКИ
  31. import java.util.Scanner;
  32. public class main {
  33.     public static void main(String[] args) {
  34.         Scanner scan = new Scanner(System.in);
  35.         double n = scan.nextDouble();
  36.         double w = scan.nextDouble();
  37.         double l = scan.nextDouble();
  38.         double m = scan.nextDouble();
  39.         double o = scan.nextDouble();
  40.         double benchArea = m*o;
  41.         double area = (n*n) - benchArea;
  42.         double talesArea = w*l;
  43.         double tiles = area/talesArea;
  44.         double time = tiles*0.2;
  45.         System.out.println(tiles);
  46.         System.out.println(time);
  47.     }
  48. }
  49. ПАРИЧКИ
  50. import java.util.Scanner;
  51. public class main {
  52.     public static void main(String[] args) {
  53.         Scanner scan = new Scanner(System.in);
  54.         double bit = scan.nextDouble();
  55.         double yuan = scan.nextDouble();
  56.         double commision = scan.nextDouble();
  57.         double bitToEuro = bit*(1168/1.95);
  58.         double yuanToEuro = ((yuan*0.15)*1.76)/1.95;
  59.         double euros = (bitToEuro+yuanToEuro);
  60.         double com = euros*commision/100;
  61.         System.out.println(euros-com);
  62.     }
  63. }
  64. ДНЕВНА ПЕЧАЛБА
  65. import java.util.Scanner;
  66. public class main {
  67.     public static void main(String[] args) {
  68.         Scanner scan = new Scanner(System.in);
  69.         double days = scan.nextDouble();
  70.         double money = scan.nextDouble();
  71.         double dolars = scan.nextDouble();
  72.         double salaryWithTaxes = days*money;
  73.         double yearProfit = salaryWithTaxes*12 + salaryWithTaxes*2.5;
  74.         double tax = 0.25 * yearProfit;
  75.         double profit = ((yearProfit-tax) * dolars)/365;
  76.         System.out.printf("%.2f",profit);
  77.     }
  78. }
Advertisement
Add Comment
Please, Sign In to add comment