In Java, - Student: firstName, lastName, departmentIn, yearGraduation, an array
ID: 3937597 • Letter: I
Question
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.
Explanation / Answer
Please find the required program along with its output. Please see the comments against each line to understand the step.
-------------------------------------------
OUTPUT:
GPA = 8.466666666666667
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.