Question: Youre working for the college admissions office and need to keep track of the students GPAs, their names, ranks in the class year, and how

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: 

If GPA is between 3.5 and 4.0 then they are ranked A

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.  

If GPA is between 3.5 and 4.0 then they are ranked A If GPA is between 3.0 and 3.4 then they are ranked B If GPA is between 2.5-2.9, then they are ranked C If GPA is between 2.0-2.4, then they are ranked D GPA below 2.0 is ranked E

Step by Step Solution

3.41 Rating (154 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Sure based on the requirements youve provided heres how a simple Student class in Java might look li... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Introduction Java Program Questions!