// // Q3: Read two test scores (int) and the student' name // out the name and average (decimal) // import java.util.Scanner; class Review3 { public static void main(String[] args) { Scanner input = new Scanner(System.in); int score1, score2; String name; System.out.print("1st score: "); score1 = input.nextInt(); System.out.print("2nd score: "); score2 = input.nextInt(); input.nextLine(); // consume "\n" System.out.print("Your name: "); name = input.nextLine(); System.out.println(name + ", average is: " + (score1+score2)/2.); System.out.println("\n\n\n"); } }