Youre working for the college admissions office and need to keep track of the students GPAs, their

Question:

You’re working for the college admissions office and need to keep track of the students’ GPAs, their names, ranks in the class year, and how high they scored on their standardized tests. The highest test score a student can get is 100. Create a Student class that keeps track of these information. Create appropriate constructors, getters, and setters.

The student’s ranking is determined by the following criteria: 

image text in transcribed

Since ranking is dependent on GPA, make sure that the programmer cannot directly change the ranking of a student. Therefore, we shouldn’t have a setter method for rank. Create another method inside the Student class that will calculate the rank based on GPA. 

Other things to consider: what if you set an invalid test score, such as scores less than 0 or more than 100? You should program against this as well. The same guard applies for GPA, where GPA cannot be less than 0.0 or greater than 4.0.  

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: