Class Grades

java.lang.Object
  |
  +--Grades

public class Grades
extends java.lang.Object


Constructor Summary
Grades(java.io.BufferedReader br)
          the constructor for the Grades class invokes methods to read the quiz, program, and exam grades which are stored in their individual arrays.
 
Method Summary
 void computeAverages()
          The computeAverages() method accesses the quiz, program and exam arrays and computes averages which are stored in instance variables.
 void readExamGrades(java.io.BufferedReader br)
          The readExamGrades() method obtains exam grades from the the file pointed to by the BufferedReader reference variable.
 void readProgramGrades(java.io.BufferedReader br)
          The readProgramGrades() method obtains program grades from the file pointed to by the BufferedReader reference variable.
 void readQuizGrades(java.io.BufferedReader br)
          The readQuizGrades() method obtains quiz grades from the file pointed to by the BufferedReader reference variable.
 java.lang.String toString()
          The toString() method formats and returns the String that displays grades.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Grades

public Grades(java.io.BufferedReader br)
       throws java.lang.Exception
the constructor for the Grades class invokes methods to read the quiz, program, and exam grades which are stored in their individual arrays. A computeAverages() method is then invoked to compute the averages and store them in instance variables.
Method Detail

readQuizGrades

public void readQuizGrades(java.io.BufferedReader br)
                    throws java.lang.Exception
The readQuizGrades() method obtains quiz grades from the file pointed to by the BufferedReader reference variable. The data is stored in the quizGrades array.

readProgramGrades

public void readProgramGrades(java.io.BufferedReader br)
                       throws java.lang.Exception
The readProgramGrades() method obtains program grades from the file pointed to by the BufferedReader reference variable. The data is stored in the programGrades array.

readExamGrades

public void readExamGrades(java.io.BufferedReader br)
                    throws java.lang.Exception
The readExamGrades() method obtains exam grades from the the file pointed to by the BufferedReader reference variable. The data is stored in the programGrades array.

computeAverages

public void computeAverages()
The computeAverages() method accesses the quiz, program and exam arrays and computes averages which are stored in instance variables.

toString

public java.lang.String toString()
The toString() method formats and returns the String that displays grades.
Overrides:
toString in class java.lang.Object