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 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 Students 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

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!