ComputingGrade.cpp
// Will be called by "compute()" to get the final exam's value & weight from the user

Will be called by "compute()" to get the final exam's value & weight from the user
Will be called by " compute () " to get the final exam ' s value & weight from the user
void computingSession::finalEntity(){
    gradeEntity finalExam;
    char finalTaken;
    std::cout << "Have you taken the final yet? Please enter \"Y\" or \"N\": ";
    std::cin >> finalTaken;
    checkLetterEntry(finalTaken);
    float tempGrade;
    if (finalTaken == 'Y' || finalTaken =='y'){
        std::cout << "What'd you get on the final?: ";
        std::cin >> tempGrade;
        if (classSetup == 1)
            checkPointVal(std::cin, tempGrade);
        else
            checkGradeVal(std::cin, tempGrade);
        finalExam.addGrade(tempGrade);
    }
    else{
        finalExam.addGrade(zero);
    }
    if (classSetup == 1){
        setEntityPointVal('f');
        float pointWeight = entityPointVals[3]/totalPoints;
        finalExam.setWeight(pointWeight);
    }
    else{
        float finalWeight;
        std::cout << "What is the weight of the final? Please enter as a percentage value up to 2 decimal values: ";
        std::cin >> finalWeight;
        checkForLargerThanTotal(std::cin, finalWeight);
        finalExam.setWeight(finalWeight);
    }
    g.push_back(finalExam);
    g[3].calcEntityValue();
}
void computingSession :: finalEntity ( ) { gradeEntity finalExam ; char finalTaken ; std :: cout << " \" \" \" \" " ; std :: cin >> finalTaken ; checkLetterEntry ( finalTaken ) ; float tempGrade ; if ( finalTaken == ' ' || finalTaken == ' ' ) { std :: cout << " " ; std :: cin >> tempGrade ; if ( classSetup == 1 ) checkPointVal ( std :: cin , tempGrade ) ; else checkGradeVal ( std :: cin , tempGrade ) ; finalExam . addGrade ( tempGrade ) ; } else { finalExam . addGrade ( zero ) ; } if ( classSetup == 1 ) { setEntityPointVal ( ' ' ) ; float pointWeight = entityPointVals [ 3 ] / totalPoints ; finalExam . setWeight ( pointWeight ) ; } else { float finalWeight ; std :: cout << " " ; std :: cin >> finalWeight ; checkForLargerThanTotal ( std :: cin , finalWeight ) ; finalExam . setWeight ( finalWeight ) ; } g . push_back ( finalExam ) ; g [ 3 ] . calcEntityValue ( ) ; }
Will be called by "compute()" to get the final exam's value & weight from the user
Will be called by " compute () " to get the final exam ' s value & weight from the user
// If the class is based on a total number of points earned, then:
 // Otherwise:
