// Student Class Code file

#ifndef _STUDENT_H

#define _STUDENT_H

#include "person.h"
#include "student.h"
#include <iostream.h>

Student::Student(const char *n, const char *ss, long bd, float g, int c, int h) : Person(n, ss, bd)
{
  setgpa(g);
  setgrade(c);
  sethours(h);
}

void Student::print()
{
  char *grades[] = { "Freshman","Sophmore","Junior","Senior" };
  Person::print();
  cout << "Grade: "<<grades[getgrade()-1]<<"  GPA: "<<getgpa()<<"  Hours: "<<gethours()<<"\n\n";
}

#endif

