Question: Need Help with Data Structure Project / / Implementation file for the ComputerScienceStudent class #include #include ComputerScienceStudent.h using namespace std; / / Use my

Need Help with Data Structure Project
// 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::setMathHours(int mh)
{
if(mh >=0 && mh <= MATH_HOURS)// Check if mh between 0 and 20
mathHours = mh;
else if(mh > MATH_HOURS)// Check if mh is greater than 20
mathHours = MATH_HOURS;
else
mathHours =0; // Set mathHours to 0 if mh is less than 0
}
//** Complete this section using the example above.
//**************************************************************************
// The ComputerScienceStudent::setCsHours function validates the computer *
// science hours then sets it the value. *
//**************************************************************************
void ComputerScienceStudent::setCsHours(int 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::setGenEdHours(int 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. *
//***********************************************<

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!