/**
   This class holds data for a CIS student.
*/

public class CISStudent extends Student
{
   // Required hours
   private static final int COB_HOURS = 45;     // COB Core
   private static final int CIS_HOURS = 30;     // CIS Concentration

   // Hours taken
   private int cobHours;    // COB hours taken
   private int cisHours;    // CIS hours taken

   /**
      The Constructor sets the student's name, 
      ID number, and the year admitted.
      @param n The student's name.
      @param id The student's ID number.
      @param year The year the student was admitted.
   */

   public CISStudent(String name, String id, int year)
   {
      super(name, id, year);
   }

   /**
      The setcobHours method sets the number of 
      core hours taken.
      @param cob The cob core hours taken.
   */

   public void setCobHours(int cob)
   {
      cobHours = cob;
   }

   /**
      The setCisHours method sets the number of 
      cis hours taken.
      @param cis The cis hours taken.
   */

   public void setCisHours(int cis)
   {
      cisHours = cis;
   }
   /**
      The getRemainingHours method returns the
      the number of hours remaining to be taken.
      @return The hours remaining for the student.
   */

   public int getRemainingHours()
   {
      int remainingHours;  // Remaining hours

      // Calculate the remaining hours.
      remainingHours = super.getRemainingHours() - (cobHours + cisHours);
                         
      return remainingHours;
   }

   /**
      The toString method returns a string containing
      the student's data.
      @return A reference to a String.
   */
   
   public String toString()
   {
      String str;

      str = super.toString() +
         "\nMajor: CIS" +
         "\nCIS Hours: " + cisHours +
         "\nCORE Hours: " + cobHours + 
		 "\nGenEd Hours: " + genEdHours;

      return str;
   }
}