Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

10 a. Create a class named Student. A Student has fields for an IDnumber, number

ID: 3607918 • Letter: 1

Question

10 a. Create a class named Student. A Student has fields for an IDnumber, number of credit hours earned, and number of points earned.(For example, many schools compute grade point averages based on ascale of 4, so a three-credit hour class in which a student earnsan A is worth 12 points.)Include methods to assign values to allfields. A Student also has a field for grade point average. Includea method to compute the grade point average field by dividingpoints by credit hours earned. Write methods to diplay the valuesin each Student field.
b.Write a class named ShowStudent that instantiates a Studentobject from the class you created. Compute the Student grade pointaverage, and then display all the values associated with theStudent.
c. Create a constructor method for the Student class youcreated. The constructor should initialize each Student's ID numberto 9999 and his or her grade point average to 4.0. Write a programthat demonstrates that the constructor works by instantiating anobject and displaying the intial values.
b.Write a class named ShowStudent that instantiates a Studentobject from the class you created. Compute the Student grade pointaverage, and then display all the values associated with theStudent.
c. Create a constructor method for the Student class youcreated. The constructor should initialize each Student's ID numberto 9999 and his or her grade point average to 4.0. Write a programthat demonstrates that the constructor works by instantiating anobject and displaying the intial values.

Explanation / Answer

//Here is the ShowStudent.java codefor above question. //Next time, pls specify the lanuage. import java.io.* ;class Student{public int id;public double []chrs;public double []score;public double avg;public Student(){int i;id=9999;avg=4;chrs=new double[5];score=new double[5];for(i=0;i