-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStudent.h
More file actions
59 lines (46 loc) · 1.25 KB
/
Student.h
File metadata and controls
59 lines (46 loc) · 1.25 KB
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
/*
Pham, Kidd (Team Leader)
Nguyen, Cindy
Dao, Kenneth
Rodriguez, Cele
Project: Grade Report
CS A250
Fall 2023
*/
#ifndef STUDENT_H
#define STUDENT_H
#include "Course.h"
#include <map>
#include <string>
class Student
{
public:
Student() : studentID(0), firstName("N/A"), lastName("N/A"),
numberOfCourses(0), tuitionWasPaid(false) {}
void setStudent(const Student&);
void setStudentInfo(int, const std::string&,
const std::string&, bool, const std::multimap<Course, char>&);
bool updatedCourse(char, const std::string&, int);
void getName(std::string&, std::string&) const;
int getID() const;
std::string getFirstName() const;
std::string getLastName() const;
int getNumberOfCourses() const;
int getUnitsCompleted() const;
std::multimap<Course, char> getCoursesCompleted() const;
bool isTuitionPaid() const;
bool isCourseCompleted(const std::string&, int) const;
double calculateGPA() const;
double billingAmount(double) const;
void printStudent() const;
void printStudentInfo(double) const;
~Student() {}
private:
int studentID;
std::string firstName;
std::string lastName;
int numberOfCourses;
bool tuitionWasPaid;
std::multimap<Course, char> coursesCompleted;
};
#endif