ComputingGrade.cpp
// Checks for point values larger than totalPoints

Checks for point values larger than totalPoints
Checks for point values larger than totalPoints
void computingSession::checkForLargerThanTotal (std::istream &input, float &pointVal){
    checkCinFloat(input, pointVal);
    if (pointVal <= 0){
        checkPointVal(input, pointVal);
    }
    else {
        while (pointVal > totalPoints){
            std::cout << "Your value is larger than the total points you entered! Please re-enter that value: ";
            std::cin >> pointVal;
            std::cout << std::endl;
            checkCinFloat(input, pointVal);
        }
    }
}
void computingSession :: checkForLargerThanTotal ( std :: istream & input , float & pointVal ) { checkCinFloat ( input , pointVal ) ; if ( pointVal <= 0 ) { checkPointVal ( input , pointVal ) ; } else { while ( pointVal > totalPoints ) { std :: cout << " " ; std :: cin >> pointVal ; std :: cout << std :: endl ; checkCinFloat ( input , pointVal ) ; } } }
Checks for point values larger than totalPoints
Checks for point values larger than totalPoints