Question: Using Java: Create a class called Student. The student has a name and a total quiz score. Supply appropriate constructor(s). Supply these methods: getName(), addQuiz(double

Using Java:

Create a class called Student. The student has a name and a total quiz score.

Supply appropriate constructor(s).

Supply these methods: getName(), addQuiz(double score),

getTotalScore(), and getQuizAverage(). You will want to store the numberQuizzes to be able to calculate the QuizAverage

Add a method to the Student class called getNumQuizzes() to return the number of quizzes for this student.

Create code in main() (new class) to perform these tasks:

Create student1 using the student name from the file

Add quiz scores for each quiz score in the file.

Print these items with appropriate labels: Student name, number quizzes, average score

Adam 12.5 15 18 17 19.5 16.5 20 Brittney 20.0 19.5 20 18.5 19.0 20 Charley 13.5 20.0 19.5 20 18.5 19.0 20 18.5

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!