Create a class called FinalGrade 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...


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 Simpson
Student ID : S123456
Points Obtained : 99
Letter Grade : A


Student Name : Marge Simpson
Student ID : S234567
Points Obtained : 89
Letter Grade : A-


Student Name : Micky Mouse
Student ID : S000001
Points Obtained : 57
Letter Grade : F




Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here