import java.util.Scanner; public class ExamScoreEvaluator { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); double exam1 = scanner.nextDouble(); double exam2 = scanner.nextDouble(); double exam3 = scanner.nextDouble(); // Calculate the average score long averageScore = (long)(exam1 + exam2 + exam3) / 3; // Classify the student based on the 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 the result System.out.println("Average score: " + averageScore+"\nClassification: " + classification); scanner.close(); } }