Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- УЧЕБНА ЗАЛА
- import java.util.Scanner;
- public class main {
- public static void main(String[] args) {
- Scanner scan = new Scanner(System.in);
- double l = scan.nextDouble()*100;
- double w = scan.nextDouble()*100-100;
- double col = (Math.floor(w/70));
- double row = Math.floor(l/120);
- double workPlaces = col*row - 3;
- System.out.printf("%.0f",workPlaces);
- }
- }
- ЗЕЛЕНЧУКОВА БОРСА
- import java.util.Scanner;
- public class main {
- public static void main(String[] args) {
- Scanner scan = new Scanner(System.in);
- double vegPrice = scan.nextDouble();
- double fruitPrice = scan.nextDouble();
- double vegWeight = scan.nextDouble();
- double fruitWeight = scan.nextDouble();
- double veg = vegWeight*vegPrice;
- double fruit = fruitWeight*fruitPrice;
- double euros = (veg+fruit)/1.94;
- System.out.println(euros);
- }
- }
- РЕМОНТ НА ПЛОЧКИ
- import java.util.Scanner;
- public class main {
- public static void main(String[] args) {
- Scanner scan = new Scanner(System.in);
- double n = scan.nextDouble();
- double w = scan.nextDouble();
- double l = scan.nextDouble();
- double m = scan.nextDouble();
- double o = scan.nextDouble();
- double benchArea = m*o;
- double area = (n*n) - benchArea;
- double talesArea = w*l;
- double tiles = area/talesArea;
- double time = tiles*0.2;
- System.out.println(tiles);
- System.out.println(time);
- }
- }
- ПАРИЧКИ
- import java.util.Scanner;
- public class main {
- public static void main(String[] args) {
- Scanner scan = new Scanner(System.in);
- double bit = scan.nextDouble();
- double yuan = scan.nextDouble();
- double commision = scan.nextDouble();
- double bitToEuro = bit*(1168/1.95);
- double yuanToEuro = ((yuan*0.15)*1.76)/1.95;
- double euros = (bitToEuro+yuanToEuro);
- double com = euros*commision/100;
- System.out.println(euros-com);
- }
- }
- ДНЕВНА ПЕЧАЛБА
- import java.util.Scanner;
- public class main {
- public static void main(String[] args) {
- Scanner scan = new Scanner(System.in);
- double days = scan.nextDouble();
- double money = scan.nextDouble();
- double dolars = scan.nextDouble();
- double salaryWithTaxes = days*money;
- double yearProfit = salaryWithTaxes*12 + salaryWithTaxes*2.5;
- double tax = 0.25 * yearProfit;
- double profit = ((yearProfit-tax) * dolars)/365;
- System.out.printf("%.2f",profit);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment