In Java Student firstName lastName departmentIn yearGraduat

In Java, - Student: firstName, lastName, departmentIn, yearGraduation, an array of Class this student is taking, an array of integers corresponding to the grades received for these classes - Class: teacherFirstName, teacherLastName, semesterOffered, numCredits The list above provides data members of these two classes. You can design and implement the set of methods that would make sense. In the Student class, implement a method that calculates GPA. In the Student’s main() method, initiate one Student object and print out her GPA.

Solution

Please find the required program along with its output. Please see the comments against each line to understand the step.

-------------------------------------------

OUTPUT:

GPA = 8.466666666666667

In Java, - Student: firstName, lastName, departmentIn, yearGraduation, an array of Class this student is taking, an array of integers corresponding to the grade

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site