Create a class calledFinalGrade that is used to represent the points obtained in the letter grade of CSC 110 by different students. The FinalGrade class should include three pieces of information as instance variables—studentName (type String),studentID (type String), andpointsObtained (type int). Your class should have aconstructor that initializes the three instance variables. Provide aset and a get method for each and every instance variable. In addition, provide a method namedcomputeLetterGrade that returns the letter grade obtained by the student taking the pointsObtained as an argument. For the grading policy refer to CSC 110 grading scheme specified in syllabus. Write a test application namedFinalGradeDriver that creates at least3 different objects of class FinalGrade and test all the methods of class FinalGrade.
Sample Output
Student Name : Homer SimpsonStudent ID : S123456Points Obtained : 99Letter Grade : A
Student Name : Marge SimpsonStudent ID : S234567Points Obtained : 89Letter Grade : A-
Student Name : Micky MouseStudent ID : S000001Points Obtained : 57Letter Grade : F
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here