Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Problem 1 Implement a class Student. For the purpose of this exercise, a student has a name and a total quiz score. Supply an appropriate
Problem 1 Implement a class Student. For the purpose of this exercise, a student has a name and a total quiz score. Supply an appropriate constructor and methods getName(), addQuiz(int score), get TotalScore(), and getAverageScore(). To compute the average, you also need to store the number of quizzes that the student took. Supply a Student Tester class that tests all methods. Make sure to print the name, total score and average score If we call addQuiz 3 times, with values 80,50,80, then getTotalScore should return 210, getAvergaeScore should return 70. (Note: Do not hard code the value to 3 - instead increment the score count by 1 every time addQuiz method is called.) Submit Student.java, Student Tester.java and screenshot of the output in a zip file. Make sure all java files are commented properly and follows Javadoc convention
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started