diff --git a/Grade.h b/Grade.h new file mode 100644 index 0000000..997e24b --- /dev/null +++ b/Grade.h @@ -0,0 +1,20 @@ +#ifndef GRADE_H +#define GRADE_H + +class Grade { +private: + int studentId; + int courseId; + float value; + +public: + Grade(int studentId, int courseId, float value); + + int getStudentId() const; + int getCourseId() const; + float getValue() const; + + void setValue(float value); +}; + +#endif \ No newline at end of file diff --git a/Professor.cpp b/Professor.cpp new file mode 100644 index 0000000..2b3b798 --- /dev/null +++ b/Professor.cpp @@ -0,0 +1,6 @@ +#include "Professor.h" + +Professor::Professor(int id, const std::string& username, const std::string& password) + : User(id, username, password) { + role = Role::PROF; +} \ No newline at end of file diff --git a/Professor.h b/Professor.h new file mode 100644 index 0000000..b0eec82 --- /dev/null +++ b/Professor.h @@ -0,0 +1,14 @@ +#ifndef PROFESSOR_H +#define PROFESSOR_H + +#include "User.h" +#include + +class Professor : public User { +public: + Professor(int id, const std::string& username, const std::string& passwordHash); + + void displayMenu() const override; +}; + +#endif \ No newline at end of file diff --git a/Student.cpp b/Student.cpp new file mode 100644 index 0000000..edf96ca --- /dev/null +++ b/Student.cpp @@ -0,0 +1,8 @@ +#include "Student.h" + +Student::Student(int id, const std::string& username, const std::string& password, const std::string& email) + : User(id, username, password), email(email) { + role = Role::STUDENT; +} + +std::string Student::getEmail() const { return email; } \ No newline at end of file diff --git a/Student.h b/Student.h new file mode 100644 index 0000000..a2e7317 --- /dev/null +++ b/Student.h @@ -0,0 +1,19 @@ +#ifndef STUDENT_H +#define STUDENT_H + +#include "User.h" +#include + +class Student : public User { +private: + std::string email; + +public: + Student(int id, const std::string& username, const std::string& passwordHash, const std::string& email); + + std::string getEmail() const; + + void displayMenu() const override; +}; + +#endif \ No newline at end of file