import java.util.Scanner; public class ExamScoreEvaluator { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); // Prompt user to input exam scores System.out.println("Enter the scores of three exams:"); int score1 = scanner.nextInt(); int score2 = scanner.nextInt(); int score3 = scanner.nextInt(); // Calculate average score int averageScore = (score1 + score2 + score3) / 3; // Classify student based on average score String classification; if (averageScore >= 90) { classification = "Excellent"; } else if (averageScore >= 80) { classification = "Good"; } else if (averageScore >= 60) { classification = "Pass"; } else { classification = "Fail"; } // Display results System.out.println("Average score: " + averageScore); System.out.println("Classification: " + classification); scanner.close(); } }