Question: Create 3 classes Student, ShowStudent and ShowStudent 2 to do the following: In the Student Class: Create fields for an ID number, number of credit
Create classes Student, ShowStudent and ShowStudent 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 so a threecredithour class in which a student earns an A is worth points.Create methods to assign values to all fields. getsetCreate 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 Points IdNumber
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 ShowStudent
Create a constructor in the Student class.
Initialize each Students ID number to points earned to and credit hours to resulting in a grade point average of
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
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
