-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathroster.h
43 lines (35 loc) · 1.22 KB
/
roster.h
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
//header file for roster.cpp, does not contain definitions
#pragma once
#include "student.h"
using std::string;
class Roster {
private:
const static int numStudents = 5;
Student *studentRoster[numStudents];
int lastIndex = -1;
public:
//parses string by comma into viable arguments for add() function
void parse(string studentInfo);
//adds Student object to studentRoster based on arguments passed after being parsed
void add(
string studentID,
string firstName,
string lastName,
string emailAddress,
int age,
int daysInCourse1, int daysInCourse2, int daysInCourse3,
DegreeProgram degree);
//removes Student from studentRoster based on studentID
void remove(string studentID);
//prints all information from studentRoster tabulated to look nice
void printAll();
//prints average days in course for Student object based on studentID
void printAverageDaysInCourse(string studentID);
//prints invalid emails from studentRoster
//Criteria: A valid email should include an at sign ('@') and period ('.') and should not include a space (' ').
void printInvalidEmails();
//prints Students from studentRoster grouped by DegreeProgram
void printByDegreeProgram(DegreeProgram degree);
//destructor
~Roster();
};