Question: Java !!! PLZ !!!!JAVA!!!! public class Grade { private String studentID; private String letter; private int percent; // TODO: add the 3 overloaded constructors. }
Java !!! PLZ !!!!JAVA!!!!

public class Grade { private String studentID; private String letter; private int percent; // TODO: add the 3 overloaded constructors.
}
Grade class (simplified constructor overload) Complete the following code for overloading the constructors of the class Grade. You will also have to implement the setters/getters for each of the 3 attributes of this class. For this task, you need to consider the following grade conversion table: Letter grade | Percent grade A+: 97-100 A: 93-96 A-90-92 B+ 87-89 B: 83-86 B-80-82 C+: 77-79 C: 73-76 C-70-72 F: Below 70 Constructors definition: + Grade(studentID: String) -> this one will set the percentGrade as 0 and letter Grade as F + Grade(studentID: String, percent: int) + Grade studentID: String, letter: char, sign: char) -> this one will set letter Grade as the concatenation of letter and sign, and the percent score as the upper limit of the corresponding range (e.g. if letter score is B+, percent will be equals to 89). If second parameter is'' (whitespace), do not concatenate (keep the single letter given as first parameter as it is). Important: assume that grades provided will always be within the specified range (percentScore from 0 to 100), that letterGrade with first character always from 'A' to 'F' and the second character always '+','or" - the last one represents when the letter grade has no sign associated). More instructions on how to implement the missing parts of this class are provided in the code below. 2 1 public class Grade { private String studentID: 3 private String letter: 4 private int percent: 5 6 // TODO: add the 3 overloaded constructors. 7
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
