Create 3 classes – Student, ShowStudent and ShowStudent2 to do the following:
In the Student Class:
Create fields for an ID number, number of credit hours earned, and number of points earned. (For example, many schools compute grade point averages based on a scale of 4, so a three-credit-hour class in which a student earns an A is worth 12 points.)Create methods to assign values to all fields. (get/set)Create a method to compute the grade point average field by dividing points by credit hours earned.Create methods to display the values in each Student field – ID, Hours, Points, GPA
In ShowStudent Class:
Instantiates a new Student objectAssign following values to corresponding fields.
Hours = 15Points = 47IdNumber = 234
Hint: Call the set methods from the Student class for hours, points, idnumber.
Display the values for IdNumber, Points, Hours and GPA
Hint: Call the get methods from the Student class for hours, points, idnumber, GPA
Execute the class and capture the result.
In ShowStudent2,
Create a constructor in the Student class.
Initialize each Student’s ID number to 9999, points earned to 12, and credit hours to 3 (resulting in a grade point average of 4.0).
Instantiates a new Student objectDisplay the values for IdNumber, Points, Hours and GPA
Hint: Call the get methods from the Student class for hours, points, idnumber, GPA