ComputingGrade.cpp
// Will be called in order to set/reset the points that homework counts

Will be called in order to set/reset the points that homework counts
Will be called in order to set / reset the points that homework counts
void computingSession::setEntityPointVal(char a){
    float pointVal;
    for (int i = 0; i < 5; i++){
        entityPointVals.push_back(0);
    }
    if (a == 'h'){
        std::cout << "Please enter the number of points that homework counts for: ";
        std::cin >> pointVal;
        checkPointVal(std::cin, pointVal);
        checkForLargerThanTotal(std::cin, pointVal);
        entityPointVals[0] = pointVal;
    }
    else if (a == 'q'){
        std::cout << "Please enter the number of points that quizzes count for: ";
        std::cin >> pointVal;
        checkPointVal(std::cin, pointVal);
        checkForLargerThanTotal(std::cin, pointVal);
        entityPointVals[1] = pointVal;
    }
    else if (a == 'e'){
        std::cout << "Please enter the number of points that exams counts for: ";
        std::cin >> pointVal;
        checkPointVal(std::cin, pointVal);
        checkForLargerThanTotal(std::cin, pointVal);
        entityPointVals[2] = pointVal;
    }
    else if (a == 'f'){
        std::cout << "Please enter the number of points that the final counts for: ";
        std::cin >> pointVal;
        checkPointVal(std::cin, pointVal);
        checkForLargerThanTotal(std::cin, pointVal);
        entityPointVals[3] = pointVal;
    }
    else if (a == 'm'){
        std::cout << "Please enter how many points that these grades count for: ";
        std::cin >> pointVal;
        checkPointVal(std::cin, pointVal);
        checkForLargerThanTotal(std::cin, pointVal);
        entityPointVals[4] = pointVal;
    }
}
void computingSession :: setEntityPointVal ( char a ) { float pointVal ; for ( int i = 0 ; i < 5 ; i ++ ) { entityPointVals . push_back ( 0 ) ; } if ( a == ' ' ) { std :: cout << " " ; std :: cin >> pointVal ; checkPointVal ( std :: cin , pointVal ) ; checkForLargerThanTotal ( std :: cin , pointVal ) ; entityPointVals [ 0 ] = pointVal ; } else if ( a == ' ' ) { std :: cout << " " ; std :: cin >> pointVal ; checkPointVal ( std :: cin , pointVal ) ; checkForLargerThanTotal ( std :: cin , pointVal ) ; entityPointVals [ 1 ] = pointVal ; } else if ( a == ' ' ) { std :: cout << " " ; std :: cin >> pointVal ; checkPointVal ( std :: cin , pointVal ) ; checkForLargerThanTotal ( std :: cin , pointVal ) ; entityPointVals [ 2 ] = pointVal ; } else if ( a == ' ' ) { std :: cout << " " ; std :: cin >> pointVal ; checkPointVal ( std :: cin , pointVal ) ; checkForLargerThanTotal ( std :: cin , pointVal ) ; entityPointVals [ 3 ] = pointVal ; } else if ( a == ' ' ) { std :: cout << " " ; std :: cin >> pointVal ; checkPointVal ( std :: cin , pointVal ) ; checkForLargerThanTotal ( std :: cin , pointVal ) ; entityPointVals [ 4 ] = pointVal ; } }
Will be called in order to set/reset the points that homework counts
Will be called in order to set / reset the points that homework counts