Student.CPP
#include <iostream>
#include <string>
#include "student.h"
#include "degree.h"
using namespace std;
Student::Student() {}
Student::Student(string studentID, string firstName, string lastName, string emailAddress, int age, int daysToComplete[3], DegreeProgram degree) {
this->studentID = studentID;
this->firstName = firstName;
this->lastName = lastName;
this->emailAddress = emailAddress;
this->age = age;
this->daysToComplete[3] = daysToComplete[3];
this->degree = degree;
}
void Student::SetStudentID(string studentID) {
this->studentID = studentID;
}
void Student::SetFirstName(string firstName) {
this->firstName = firstName;
}
void Student::SetLastName(string lastName) {
this->lastName = lastName;
}
void Student::SetEmailAddress(string emailAddress) {
this->emailAddress = emailAddress;
}
void Student::SetAge(int age) {
this->age = age;
}
void Student::SetDaysToComplete(int daysToComplete[3]) {
this->daysToComplete[3] = daysToComplete[3];
}
void Student::SetDegree(DegreeProgram degree) {
this->degree = degree;
}
void Student::PrintInfo() {
cout << studentID << "\t";
cout << "First Name: " << firstName << "\t";
cout << "Last Name: " << lastName << "\t";
cout << "Email: " << emailAddress << "\t";
cout << "Age: " << age << "\t";
cout << "daysInCourse: " << "{" << daysToComplete[0] << ", " << daysToComplete[1] << ", " << daysToComplete[2] << "}";
switch (degree) {
case 0: cout << "DegreeProgram: SECURITY";
case 1: cout << "DegreeProgram: NETWORK";
case 2: cout << "DegreeProgram: SOFTWARE";
}
}
string Student::GetStudentID() {return studentID;}
string Student::GetFirstName() {return firstName;}
string Student::GetLastName() { return lastName; }
string Student::GetEmailAddress() { return emailAddress; }
int Student::GetAge() { return age; }
int Student::GetDaysToComplete() { return daysToComplete[3]; }
DegreeProgram Student::GetDegree() { return degree; }