Question: Implement a class named Student. For this exercise, a student has a name, an id number and a list of the quiz scores they have

Implement a class named Student. For this exercise, a student has a name, an id number and a list of the quiz scores they have taken. Supply an appropriate constructor and methods getName(), getId(), addQuiz(int score), getTotalScore(), getNumQuizzes() and getAverageScore(). The scores should be stored in an array or ArrayList. You should compute the total score and the average score when needed. The id number should be implemented with the assistance of a static instance variable. The first id assigned should be 200. Write a separate class TestStudent, which includes a main method that fully tests your Student class. # AVOID USING THIS - (List scores).

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 Databases Questions!