Question: Write a Java program that reads the full name and GPA of a group of 3 students from the console and stores the data full
Write a Java program that reads the full name and GPA of a group of 3 students from the console and stores the data full names and GPAs in single-dimensional arrays.
The program should check to be sure that each input of student name is not empty string and GPA is not negative.
After processing the data, the program prints out (to the console) the following pieces of information, each in one line:
The average GPA of this group of students.
Full name and GPA of the student(s) that has(have) the highest GPA
o Notes: If more than one student have the highest GPA, print out them all one student and his/her GPA in one line.
Full name and GPA of the student(s) that has(have) the lowest GPA
o Notes: If more than one student have the lowest GPA, print out them all one student and his/her GPA in one line.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
