Answer:
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
// Get the test score and class rank from the user
System.out.println("Please enter your test score: ");
int testScore = s.nextInt();
System.out.println("Please enter your class rank: ");
int classRank = s.nextInt();
// Determine whether to accept or reject the student
if (testScore >= 90 && classRank >= 25) {
System.out.println("Accept");
} else if (testScore >= 80 && classRank >= 50) {
System.out.println("Accept");
} else if (testScore >= 70 && classRank >= 75) {
System.out.println("Accept");
} else {
System.out.println("Reject");
}
}
}