ComputingGrade.cpp
// Checks for grades smaller than 0 or larger than 100%

Checks for grades smaller than 0 or larger than 100%
Checks for grades smaller than 0 or larger than 100%
void computingSession::checkGradeVal(std::istream &input, float &grade){
    checkCinFloat(input, grade);
    while (grade < 0 || grade > 100){
        std::cout << "Please only enter a value between 0 & 100 inclusive: ";
        std::cin >> grade;
        std::cout << std::endl;
        checkCinFloat(input, grade);
    }
}
void computingSession :: checkGradeVal ( std :: istream & input , float & grade ) { checkCinFloat ( input , grade ) ; while ( grade < 0 || grade > 100 ) { std :: cout << " " ; std :: cin >> grade ; std :: cout << std :: endl ; checkCinFloat ( input , grade ) ; } }
Checks for grades smaller than 0 or larger than 100%
Checks for grades smaller than 0 or larger than 100%