-
Notifications
You must be signed in to change notification settings - Fork 0
/
student.cc
92 lines (71 loc) · 1.68 KB
/
student.cc
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
/*Student Class for WGU */
#include <iostream>
#include <string>
#include "student.h"
#include "degree.h"
#include "networkStudent.h"
#include "securityStudent.h"
#include "softwareStudent.h"
Student::Student() {
return;
};
Student:: ~Student() {
return;
};
void Student:: print(){
std::cout << "studentID: " << studentID << std::endl;
std::cout << "First Name: " << firstName << std::endl;
std::cout << "Last Name: " << lastName << std::endl;
std::cout << "Email Address: " << emailAddress << std::endl;
std::cout << "Age: " << age << std::endl;
std::cout << "Days in Course: " << daysInCourse[0] << ", " <<
daysInCourse[1] << ", " << daysInCourse[2] << std::endl;
return;
};
//Accessor Functions
string Student::studentIDGetter() {
return studentID;
};
string Student::firstNameGetter() {
return firstName;
};
string Student::lastNameGetter() {
return lastName;
};
string Student::emailGetter() {
return emailAddress;
};
int Student::ageGetter() {
return age;
};
int Student::arrayGetter(int i){
return daysInCourse[i];
};
enum Degree Student::getDegreeProgram() {
};
//Mutator Functions
void Student::studentIDSetter(string id) {
studentID = id;
return;
};
void Student::firstNameSetter(string fn) {
firstName = fn;
return;
};
void Student::lastNameSetter(string ln){
lastName = ln;
return;
};
void Student::emailSetter(string email) {
emailAddress = email;
return;
};
void Student::ageSetter(int howOld){
age = howOld;
return;
};
void Student::arraySetter(int num1, int num2, int num3) {
daysInCourse[0] = num1;
daysInCourse[1] = num2;
daysInCourse[2] = num3;
};