import java.util.Scanner; import java.text.DecimalFormat; class StudentAverageName { public static void main(String[] args) { Scanner input = new Scanner(System.in); DecimalFormat f2 =new DecimalFormat("0.00"); String name; int test1, test2, test3, test4; double avg; System.out.println("Input your Four Test Scores Student\n"); test1 = input.nextInt(); test2 = input.nextInt(); test3 = input.nextInt(); test4 = input.nextInt(); System.out.print("\n"); input.nextLine(); System.out.print("\nNow put in Your Full Name: "); name = input.nextLine(); avg = (double)(test1 + test2 + test3 + test4) / 4.0; System.out.println("\nStudents' Name is "+name); System.out.println("\nThe average of the students' Tests is " + f2.format(avg)+"\n"); } }