2014-08-31 09:33:27 +00:00
|
|
|
#ifndef GRADE_COURSE_H
|
|
|
|
#define GRADE_COURSE_H
|
|
|
|
|
|
|
|
/* This Code Made By Sagi Dayan
|
|
|
|
* SagiDayan@gmail.com
|
|
|
|
*
|
|
|
|
* Minor changes has been made by Liran Ben Gida
|
|
|
|
* LiranBG@gmail.com
|
|
|
|
*/
|
|
|
|
#include "../course.h"
|
|
|
|
#include <string>
|
|
|
|
#include <iostream>
|
|
|
|
#include <list>
|
|
|
|
|
|
|
|
#define COURSE_FIELDS 7
|
|
|
|
#define NO_GRADE_YET 101;
|
|
|
|
|
|
|
|
|
|
|
|
class gradeCourse : public Course {
|
|
|
|
|
|
|
|
public:
|
|
|
|
enum CourseScheme
|
|
|
|
{
|
|
|
|
SERIAL,
|
|
|
|
NAME,
|
|
|
|
TYPE,
|
|
|
|
POINTS,
|
|
|
|
HOURS,
|
|
|
|
GRADE,
|
|
|
|
ADDITION
|
|
|
|
};
|
|
|
|
|
|
|
|
gradeCourse(int serial, std::string name, std::string type, double points,double hours, double grade, std::string additions);
|
|
|
|
~gradeCourse();
|
|
|
|
|
|
|
|
double getHours() const {return this->hours;}
|
|
|
|
double getGrade() const ;
|
|
|
|
std::string getAddidtions() const {return this->additions;}
|
|
|
|
|
|
|
|
void setHours(double hours);
|
|
|
|
void setGrade(double grade);
|
|
|
|
void setAdditions(std::string additions);
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
double hours;
|
|
|
|
double grade;
|
|
|
|
std::string additions;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|