Beruflich Dokumente
Kultur Dokumente
Lab Goal : The lab was designed to teach you how to design, comment, implement and test a class. Lab Description : Implement a class Student. A student has a name, a number of quizzes and a total quiz score. You will supply methods and instance fields. You will add statements to a provided tester class.
Method getAverageScore: Gets the current average quiz score for the student.
BONUS
Fix the average. Right now, the average quiz score is losing the decimal value. In class, we have not discussed integer division or casting, which are both discussed in chapter 4. Using these concepts, fix the average so that it does not lose its decimal value. Also, when the average is printed, format the output so that it prints 2 digits after the decimal point (also from chapter 4). Corrected output: John Doe total quiz score: 0 Peter Jackson total quiz score is: 263 Peter Jackson average quiz score is: 87.67