Teacher.cpp 945 Bytes
Newer Older
Andrew Binder's avatar
Andrew Binder committed
1
#include "Teacher.h"
Andrew Binder's avatar
Andrew Binder committed
2
#include <iostream>
Andrew Binder's avatar
Andrew Binder committed
3
4
5

Teacher::Teacher(string userNameIn) {
    userName = userNameIn;
Andrew Binder's avatar
Andrew Binder committed
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
}

void Teacher::displayMenu() {
    
}

void Teacher::displayProgress() {
    cout << "------STUDENT GRADEBOOK------\n";
    cout << "Student\t\tCurrent Level\n";
    for (int i = 0; i < roster.size(); i++) { 
        cout << roster.at(i).getUserName() << "\t\t" << roster.at(i).getLevel() << endl;
    }
}

bool Teacher::exportProgress() {
    
}

bool Teacher::enrollStudent(Student studentIn) {
    roster.push_back(studentIn);
}

bool Teacher::adjustProgress(Student studentIn, int level) {
    
}

void Teacher::endProgram() {

}

// Accessors
const string Teacher::getUserName() {
    return userName;
}

const string Teacher::getExitCode() {
    return exitCode;
}

// Mutators
bool Teacher::setExitCode(string exitCodeIn) {
    exitCode = exitCodeIn;
}

bool Teacher::setUserName(string userNameIn) {
    userName = userNameIn;
Andrew Binder's avatar
Andrew Binder committed
52
}