//=================================================================================================
public class UndergraduateStudent extends Student {
//-------------------------------------------------------------------------------------------------
    public static enum Standing {FRESHMAN,SOPHOMORE,JUNIOR,SENIOR};
    private Standing ugStanding;
//-------------------------------------------------------------------------------------------------
    public UndergraduateStudent() {

        super();
        this.ugStanding = Standing.FRESHMAN;
    }
//-------------------------------------------------------------------------------------------------
    public UndergraduateStudent(String name,Standing standing) {

        super(name);
        this.ugStanding = standing;
    }
//-------------------------------------------------------------------------------------------------
    public void display() {

        super.display();
        System.out.print("  " + ugStanding);
    }
//-------------------------------------------------------------------------------------------------
    public void computeGrade() {

        int index;
        int total;

        total = 0;
        for (index = 0; index < marks.length; index++) {
            total += marks[index];
        }
        grade = gradeFromMark(total / marks.length);
    }
//-------------------------------------------------------------------------------------------------
}
//=================================================================================================
