Student.h 2 KB
Newer Older
1 2 3 4 5 6 7 8 9 10
// ***********************************************************************
// NOTE:    I had to put this together to get the Teacher class working.
//          Feel free to use this file or not, but please note that the
//          Teacher.h/.cpp files depend on these exact functions and
//          function names, so please use these names in the final class.
//          
//          Thanks! -Andrew
// ***********************************************************************

#include <string>
Eddy Marinez's avatar
Eddy Marinez committed
11
#include "Questions.h"
12

Andrew Binder's avatar
Big fix  
Andrew Binder committed
13 14 15 16 17
using namespace std;

#ifndef STUDENT_H
#define STUDENT_H

18 19 20
class Student {
    public:
        //Default constructor for only a username
Eddy Marinez's avatar
Eddy Marinez committed
21
        Student();
Eddy Marinez's avatar
Eddy Marinez committed
22
        Student(string userNameIn);
23 24
        
        // Default constructor for a username and level
Eddy Marinez's avatar
Eddy Marinez committed
25
        Student(string userNameIn, int levelIn);
Jared Sexton's avatar
Jared Sexton committed
26
        
27
        // Accessors
Eddy Marinez's avatar
Eddy Marinez committed
28 29
        int getLevel();
        string getUserName();
Eddy Marinez's avatar
this  
Eddy Marinez committed
30
        const bool getMenuActive();
31
        
Eddy Marinez's avatar
Eddy Marinez committed
32
        //Student functions.
Eddy Marinez's avatar
Eddy Marinez committed
33 34 35 36 37 38 39 40 41
        void displayMenu(); //Display menu; show the current level, option to practice or log out.
        
       //menu options
        void practice(); //Practice: referenced with the questiones.h file, ask questions until they ge 3-5 right.
                         //Practice: present the option to enter testing mode.
                         //Practice:  if yes. enter testing mode as bellow, if no. continue practicing for another 3-5 questions.
        void testingStage(); //Testing Stage: same difficulty questions, and they will be given a set number of them (10, 15, 20)
                             //Testing Stage: congratulate if they get enough right. increment dificulty level.
                             //Testing Stage: exit testing mode and go back to menu.
Eddy Marinez's avatar
Eddy Marinez committed
42
        
43
        // Mutators
Eddy Marinez's avatar
Eddy Marinez committed
44
        void setLevel(int levelIn);
45
        
Eddy Marinez's avatar
Eddy Marinez committed
46
        void setUserName(string userNameIn);
47 48
        
    private:
Eddy Marinez's avatar
thing  
Eddy Marinez committed
49
        bool studentMenuActive = 1;
50 51
        string userName;
        int level = 1;
Jared Sexton's avatar
Jared Sexton committed
52
        Questions questionAsk;
53
};
Andrew Binder's avatar
Big fix  
Andrew Binder committed
54 55

#endif //STUDENT_H