Create a class called Student with three PRIVATE instance variables, A String name, a String letterGrade and an int numGrade. The Student class will also have 6 instance methods which will allows us to get and set the values of the instance variable (Setters and Getters) and one instance method called studentinfo, displaying the students information.
The names of the methods will simply be the names of the instance variables with set or get as a prefix, ie. setName, getName, setLetterGrade, getLetterGrade, setNumGrade, getNumGrade.
The get methods should return the corresponding instance variable you are trying to return, so getName should simply return the instance variable name and its return type should be the same type of the instance variable.
Set methods return nothing, take one parameter (the datatype should be the same type as the instance variable you are modifying) and simply set the value of the parameter as the the value of the corresponding instance variable. LE. setName("Sandra") should set the instance variable name to "Sandra". NOTE: The only setter that takes In no parameters is the setLetterGrade, this method will set the letter grade based on the number grade
The set and get methods for letterGrade should be PRIVATE. All others should be public. In the setter for setLetterGrade, you will set the letter grade based on the value of the numGrade, if numGrade is between 100-88 set letter Grade to A, 88-76 B, 76-64 C, 64-52 D, below 52 F.
The studentinfo method should simply return a string with the students name, numGrade, and letterGrade. If the student is named Marsha and her number grade is 92, the method should return "Student: Marsha, Number Grade: 92, Letter Grade: A". NOTE: You MUST use the get methods of each Instance variable for the studentsinfo method, NOT the Instance variables.
Create a constructor for the Student class that takes in two parameter, A string for the name of the student and an int for the numGrade of the student. After you assign these parameters to your instance variable, invoke (use) the setLetterGrade method to set the leder grade.
In the main method create 3 students, Place them in a Student array then in a for loop, print out every students info.