Advertisement
jamesonBradfield

student.h

Dec 20th, 2023
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.08 KB | None | 0 0
  1. #include <iostream>
  2. #include <vector>
  3.  
  4. #include "degree.h"
  5. using namespace std;
  6. class Student {
  7.    
  8.     private:
  9.         string studentID;
  10.         string firstName;
  11.         string lastName;
  12.         string emailAddress;
  13.         int age;
  14.         int daysInCourse[3];
  15.         DegreeProgram degreeProgram;
  16.     public:
  17.         Student(string studentId, string firstName, string lastName, string emailAddress, int age, int daysInCourse0, int daysInCourse1,int daysInCourse2, DegreeProgram degreeProgram);
  18.         //accessors.
  19.             string GetStudentId();
  20.             string GetFirstName();
  21.             string GetLastName();
  22.             string GetEmailAddress();
  23.             int GetAge();
  24.             //take int of index to return
  25.             int GetDaysInCourse(int index);
  26.             DegreeProgram GetDegreeProgram();
  27.         //mutators.
  28.             void SetStudentId(string studentId);
  29.             void SetFirstName(string firstName);
  30.             void SetLastName(string lastName);
  31.             void SetEmailAddress(string emailAddress);
  32.             void SetAge(int age);
  33.             //take int and value to input.
  34.             void SetDaysInCourse(int numCourseDaysIndex,int numCourseDaysValue);
  35.             void SetDegreeProgram(DegreeProgram degreeProgram);
  36.             void Print();
  37. };
  38.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement