Hey guys, I am a beginner to Java and have written a code to compare two students GPA, SAT and ACT Score to say which one is wrong with my code. Here is what I have so far, does anybody see what im doing wrong? Any help would be greatly appreciated, thanks!
import java.util.*; public class Applicants { public static void main(String[] args) { Scanner console = new Scanner(System.in); public static double grades(Scanner console) { System.out.print("What is the first applicant's GPA?"); double GPA1 = console.nextInt(); System.out.print("What is the first applicant's ACT Score?"); int ACT1 = console.nextInt(); System.out.print("What is the first applicant's SAT Score?"); int SAT1 = console.nextInt(); System.out.print("What is the second applicant's GPA?"); double GPA2 = console.nextInt(); System.out.print("What is the second applicant's ACT Score?"); int ACT2 = console.nextInt(); System.out.print("What is the second applicant's SAT Score?"); int SAT2 = console.nextInt(); if (GPA1>GPA2 && SAT1>SAT2 && ACT1>ACT2) { System.out.println("Applicant 1 is more qualified than Apllicant 2."); } else if (GPA1<GPA2 && SAT1<SAT2 && ACT1<ACT2); System.out.println("Applicant 2 is more qualified than Apllicant 1."); } else if (GPA1=GPA2 && SAT1=SAT2 && ACT1=ACT2); System.out.println("Applicant 1 is as equally qualified as Apllicant 2."); }