ComputingGrade.cpp
// Will be used by compute() to obtain any additional grades that count towards the final grade

Will be used by compute() to obtain any additional grades that count towards the final grade
Will be used by compute () to obtain any additional grades that count towards the final grade
void computingSession::miscEntity(){
    gradeEntity misc;
    int tempNum;
    std::cout << "Alrighty then, how many additional grades are there?: ";
    std::cin >> tempNum;
    checkCinInt(std::cin, tempNum);
    std::cout << std::endl;
    misc.set_gradeNum(tempNum);
    float tempGrade;
    std::cout << "Great! Now please enter each grade, starting w/ the 1st 1: ";
    std::cin >> tempGrade;
    if (classSetup == 1)
        checkGradeVal(std::cin, tempGrade);
    else
        checkPointVal(std::cin, tempGrade);
    misc.addGrade(tempGrade);
    obtainGradesManually(tempGrade, misc);
    if (classSetup == 1){
        setEntityPointVal('m');
        float pointWeight = entityPointVals[4]/totalPoints;
        misc.setWeight(pointWeight);
    }
    else {
        float miscWeight;
        std::cout << "What is the weight of these grades? Please enter as a percentage value up to 2 decimal places: ";
        std::cin >> miscWeight;
        checkGradeVal(std::cin, miscWeight);
        misc.setWeight(miscWeight);
    }
    g.push_back(misc);
    g[4].calcEntityValue();
}
void computingSession :: miscEntity ( ) { gradeEntity misc ; int tempNum ; std :: cout << " " ; std :: cin >> tempNum ; checkCinInt ( std :: cin , tempNum ) ; std :: cout << std :: endl ; misc . set_gradeNum ( tempNum ) ; float tempGrade ; std :: cout << " " ; std :: cin >> tempGrade ; if ( classSetup == 1 ) checkGradeVal ( std :: cin , tempGrade ) ; else checkPointVal ( std :: cin , tempGrade ) ; misc . addGrade ( tempGrade ) ; obtainGradesManually ( tempGrade , misc ) ; if ( classSetup == 1 ) { setEntityPointVal ( ' ' ) ; float pointWeight = entityPointVals [ 4 ] / totalPoints ; misc . setWeight ( pointWeight ) ; } else { float miscWeight ; std :: cout << " " ; std :: cin >> miscWeight ; checkGradeVal ( std :: cin , miscWeight ) ; misc . setWeight ( miscWeight ) ; } g . push_back ( misc ) ; g [ 4 ] . calcEntityValue ( ) ; }
Will be used by compute() to obtain any additional grades that count towards the final grade
Will be used by compute () to obtain any additional grades that count towards the final grade