Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Spatial Databases A Tour

Authors: Shashi Shekhar, Sanjay Chawla

1st Edition

0130174807, 978-0130174802

More Books

Students also viewed these Databases questions

Question

What are the various types of investments?

Answered: 1 week ago

Question

Answer the multiple choice question

Answered: 1 week ago