Student.h 1.93 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();
30
        
Eddy Marinez's avatar
Eddy Marinez committed
31
        //Student functions.
Eddy Marinez's avatar
Eddy Marinez committed
32 33 34 35 36 37 38 39 40
        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
41
        
42
        // Mutators
Eddy Marinez's avatar
Eddy Marinez committed
43
        void setLevel(int levelIn);
44
        
Eddy Marinez's avatar
Eddy Marinez committed
45
        void setUserName(string userNameIn);
46 47 48 49
        
    private:
        string userName;
        int level = 1;
Jared Sexton's avatar
Jared Sexton committed
50
        Questions questionAsk;
51
};
Andrew Binder's avatar
Big fix  
Andrew Binder committed
52 53

#endif //STUDENT_H