Question: Need Help with Data Structure Project ( To Do Sections ) / / Implementation file for the ComputerScienceStudent class #include #include ComputerScienceStudent.h using namespace
Need Help with Data Structure Project To Do Sections
Implementation file for the ComputerScienceStudent class
#include
#include "ComputerScienceStudent.h
using namespace std;
Use my example below for validating the hours of Math taken to do
the other two validations.
The ComputerScienceStudent::setMathHours function validates the math
hours then sets it the value.
void ComputerScienceStudent::setMathHoursint mh
ifmh && mh MATHHOURS Check if mh between and
mathHours mh;
else ifmh MATHHOURS Check if mh is greater than
mathHours MATHHOURS;
else
mathHours ; Set mathHours to if mh is less than
Complete this section using the example above.
The ComputerScienceStudent::setCsHours function validates the computer
science hours then sets it the value.
void ComputerScienceStudent::setCsHoursint csh
TO DO: Place your code here
Complete this section using my example above.
The ComputerScienceStudent::setGenEdHours function validates the
general education hours then sets it the value.
void ComputerScienceStudent::setGenEdHoursint geh
TO DO: Place your code here
Complete this section by writing the implementation of the function
getData below.
The ComputerScienceStudent::getData function collects all the input
data from the user for the data member variables in both GeneralStudent
and ComputerScienceStudent classes and then use only the appropriate
member functions to set the data member variables.
void ComputerScienceStudent::getData
TO DO: Place your code here
Complete this section by writing the implementation of the function
displayData below
The ComputerScienceStudent::displayData function displays all the
data members values and the remaining hours using the data member
variables or the appropriate accessor functions.
Note: although you can access directly the data member variables here,
I would like you to use only the accessor functions to access all the
data members values and remaining hours.
void ComputerScienceStudent::displayData
TO DO: Place your code here
DO NOT modify the getRemainingHours function below.
The ComputerScienceStudent::getRemainingHours function returns the
number of hours remaining to be taken.
