java.lang.Object QuizList
public class QuizList
Class that stores and manipulates a list of quiz grades.
Constructor Summary | |
---|---|
QuizList(java.lang.String fileName)
Constructs a QuizList object, with quizzes read in from a file. |
Method Summary | |
---|---|
Quiz |
getLowestGrade()
Finds the quiz with the lowest percentage (or null if no quizzes are stored). |
double |
getPercentage()
Calculates the overall percentage of all of the quizzes, with the lowest quiz dropped (assuming there are at least two quizzes). |
int |
numQuizzes()
Reports the number of quiz grades that are currently stored. |
void |
showGrades()
Displays all of the quiz grades, one per line, followed by the overall percentage. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public QuizList(java.lang.String fileName)
filename
- the name of the quiz fileMethod Detail |
---|
public Quiz getLowestGrade()
public double getPercentage()
public int numQuizzes()
public void showGrades()