/**
 * Defines a student.
 *
 * @author TK Rogers
 * @version 02-22-11
 */
 
public class Student extends Person implements Grades {
    // Fields
    private int  mathGrade ,
                     englishGrade ;
    private double gpa ;
 
    // Constructor
    Student ( ) {
        super ( ( 90.0 + Math.random ( )*120 ) , 72.0 ) ;   // Runs the Person constructor in 
                                                                                  // order to set weight and height.
        mathGrade = 90 ;
        englishGrade = 100 ;
    }
 
    //Defines the code for the gpa method from the Grades interface
    public double gpa ( ) {
        return ( mathGrade + englishGrade ) / 2.0 ;
    }
}