-
Notifications
You must be signed in to change notification settings - Fork 0
/
student.h
47 lines (46 loc) · 1.35 KB
/
student.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
44
45
46
47
#pragma once
#include <string>
#include <iostream>
#include "degree.h"
#ifndef STUDENTH
#define STUDENTH
using namespace std;
//Create the class Student which includes the variables student ID, first name, last name, email address, age, an array of number of days to complete each course and the degree program.
class Student
{
public:
const static int daysInCourse = 3;
//Create constructors using all the input parameters provided in the table
Student();
Student(string studentID, string firstName, string lastName, string email, int age, int days[daysInCourse], DegreeProgram degree);
~Student();
private:
string studentID;
string firstName;
string lastName;
string email;
int age;
int days[daysInCourse];
DegreeProgram degree;
public:
//Create accessors (getters)
string getStudentID();
string getFirstName();
string getLastName();
string getEmail();
int getAge();
const int* getDays();
DegreeProgram getDegreeProgram();
//Create mutators (setters)
void setStudentID(string studentID);
void setFirstName(string firstName);
void setLastName(string lastName);
void setEmail(string email);
void setAge(int age);
void setDays(const int days[daysInCourse]);
void setDegreeProgram(DegreeProgram degree);
//Create a print function to print specific student data
static void printStudent();
void print();
};
#endif