-
Notifications
You must be signed in to change notification settings - Fork 0
/
securityStudent.cpp
44 lines (37 loc) · 1.4 KB
/
securityStudent.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/*
* security student subclass
*/
#include <iostream>
#include <string>
#include "securityStudent.h"
#include "degree.h"
#include "student.h"
securityStudent::securityStudent(string ID, string fn, string ln, string email,
int howOld, int daysInCourse1, int daysInCourse2, int daysInCourse3,
enum Degree SECURITY) {
studentID = ID;
firstName = fn;
lastName = ln;
emailAddress = email;
age = howOld;
daysInCourse[0] = daysInCourse1;
daysInCourse[1] = daysInCourse2;
daysInCourse[2] = daysInCourse3;
return;
};
void securityStudent::print() {
std::cout << "studentID: " << Student::studentIDGetter() << std::endl;
std::cout << "First Name: " << Student::firstNameGetter() << std::endl;
std::cout << "Last Name: " << Student::lastNameGetter() << std::endl;
std::cout << "Email Address: " << Student::emailGetter() << std::endl;
std::cout << "Age: " << Student::ageGetter() << std::endl;
std::cout << "Days in Course1: " << Student::arrayGetter(0) << std::endl;
std::cout << "Days in Course2: " << Student::arrayGetter(1) << std::endl;
std::cout << "Days in Course3: " << Student::arrayGetter(2)<< std::endl;
std::cout << "degree program: 0:SECURITY, 1:NETWORK, 2:SOFTWARE: " << getDegreeProgram() << std::endl;
std::cout << endl;
return;
}
enum Degree securityStudent::getDegreeProgram() {
return deg;
};