@@ -0,0 +1,1150 @@
+package java_problems.beginner;%0D%0A%0D%0Aimport java.util.Scanner;%0D%0A%0D%0Apublic class GradeTheSteel %7B%0D%0A%0D%0A%09public static void main(String%5B%5D args) %7B%0D%0A%09%09%0D%0A%09%09Scanner sc = new Scanner(System.in);%0D%0A%09%09int numCases = Integer.parseInt(sc.nextLine());%0D%0A%09    for (int i = 0; i %3C numCases; i++) %7B%0D%0A%09%09%09int hardness = sc.nextInt();%0D%0A%09%09%09double carbonContent = sc.nextDouble();%0D%0A%09%09%09int tensileStrength = sc.nextInt();%0D%0A%09%09%09System.out.println(getGradeOfSteel(hardness, carbonContent, tensileStrength));%0D%0A%09%09%7D%0D%0A%09    sc.close();%0D%0A%09%7D%0D%0A%09%0D%0A%09private static int getGradeOfSteel(int h, double c, int t) %7B%0D%0A%09%09int conditionsMet = 0;%0D%0A%09%09boolean hardnessMet = false;%0D%0A%09%09boolean carbonMet = false;%0D%0A%09%09%0D%0A%09%09if (h %3E 50) %7B%0D%0A%09%09%09conditionsMet++;%0D%0A%09%09%09hardnessMet = true;%0D%0A%09%09%7D%0D%0A%09%09%0D%0A%09%09if (c %3C 0.7) %7B%0D%0A%09%09%09conditionsMet++;%0D%0A%09%09%09carbonMet = true;%0D%0A%09%09%7D%0D%0A%09%09%0D%0A%09%09if (t %3E 5600) %7B%0D%0A%09%09%09conditionsMet++;%0D%0A%09%09%7D%0D%0A%09%09%0D%0A%09%09if (conditionsMet == 3) %7B%0D%0A%09%09%09return 10;%0D%0A%09%09%7D else if (conditionsMet == 1) %7B%0D%0A%09%09%09return 6;%0D%0A%09%09%7D else if (conditionsMet == 0) %7B%0D%0A%09%09%09return 5;%0D%0A%09%09%7D else %7B%0D%0A%09%09%09if (hardnessMet) %7B%0D%0A%09%09%09%09if (carbonMet) %7B%0D%0A%09%09%09%09%09return 9;%0D%0A%09%09%09%09%7D else %7B%0D%0A%09%09%09%09%09return 7;%0D%0A%09%09%09%09%7D%0D%0A%09%09%09%7D else %7B%0D%0A%09%09%09%09return 8;%0D%0A%09%09%09%7D%0D%0A%09%09%7D%0D%0A%09%7D%0D%0A%7D

Add GradeTheSteel