-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStudent.h
More file actions
81 lines (53 loc) · 1.77 KB
/
Student.h
File metadata and controls
81 lines (53 loc) · 1.77 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
#ifndef STUDENT_H
#define STUDENT_H
#include <iostream>
#include <cstdlib>
#include <fstream>
#include <string>
using namespace std;
class Student {
public:
/* A method to allow the student to login and view their grades
if they provide a correct username and password.
*/
bool login(string username, string password);
/* A method for getting the student's name so that a welcome message
can be displayed.
*/
string getStudentName();
/* A method for retrieving the username of a student */
string getUserName();
/* Get's the student's project grade. */
int getProjectGrade();
/* Get's the student's quiz grade. */
int getQuizGrade();
/* Get's the student's midterm grade. */
int getMidtermGrade();
/* Get's the student's final grade. */
int getFinalGrade();
/* Get's the student's overall, weighted grade */
double getOverallGrade();
/* Sets the student's name based on the given login credentials. */
void setStudentName(string firstName, string lastName);
/* Sets the student's project grade based on the given login credentials. */
void setProjectGrade(int grade);
/* Sets the student's quiz grade based on the given login credentials. */
void setQuizGrade(int grade);
/* Sets the student's midterm grade based on the given login credentials. */
void setMidtermGrade(int grade);
/* Sets the student's final grade based on the given login credentials. */
void setFinalGrade(int grade);
void setUserName(string user);
void setPassword(string pass);
bool isSet();
private:
string fullName;
string userName;
string password;
int projectGrade;
int quizGrade;
int midtermGrade;
int finalGrade;
bool set;
};
#endif