ComputingGrade.cpp
// Will be called by "compute()" to get the homework grades & weight from the user

Will be called by "compute()" to get the homework grades & weight from the user
Will be called by " compute () " to get the homework grades & weight from the user
void computingSession::homeworkEntity(){
    gradeEntity homework;
    int tempNum;
    std::cout << "Awesome! Let's start inputting your homework grades!" << std::endl;
    std::cout << "First, would you please enter how many homework grades you've got to enter?: ";
    std::cin >> tempNum;
    check4PosInt(std::cin, tempNum);
    std::cout << std::endl;
    homework.set_gradeNum(tempNum);
    float tempGrade;
    std::cout << "Alright, then, please enter each grade individually, starting w/ the 1st 1: ";
    std::cin >> tempGrade;
    if (classSetup == 1)
        checkPointVal(std::cin, tempGrade);
    else
        checkGradeVal(std::cin, tempGrade);
    homework.addGrade(tempGrade);
    obtainGradesManually(tempGrade, homework);
    if (classSetup == 1){
        setEntityPointVal('h');
        float pointWeight = entityPointVals[0]/totalPoints;
        homework.setWeight(pointWeight);
    } 
    else {
        float homeworkWeight;
        std::cout << "What is the weight of the homeworks? Please enter as a percentage value up to 2 decimal places: ";
        std::cin >> homeworkWeight;
        checkGradeVal(std::cin, homeworkWeight);
        homework.setWeight(homeworkWeight);
    } 
    g.push_back(homework);
    g[0].calcEntityValue();
}
void computingSession :: homeworkEntity ( ) { gradeEntity homework ; int tempNum ; std :: cout << " " << std :: endl ; std :: cout << " " ; std :: cin >> tempNum ; check4PosInt ( std :: cin , tempNum ) ; std :: cout << std :: endl ; homework . set_gradeNum ( tempNum ) ; float tempGrade ; std :: cout << " " ; std :: cin >> tempGrade ; if ( classSetup == 1 ) checkPointVal ( std :: cin , tempGrade ) ; else checkGradeVal ( std :: cin , tempGrade ) ; homework . addGrade ( tempGrade ) ; obtainGradesManually ( tempGrade , homework ) ; if ( classSetup == 1 ) { setEntityPointVal ( ' ' ) ; float pointWeight = entityPointVals [ 0 ] / totalPoints ; homework . setWeight ( pointWeight ) ; } else { float homeworkWeight ; std :: cout << " " ; std :: cin >> homeworkWeight ; checkGradeVal ( std :: cin , homeworkWeight ) ; homework . setWeight ( homeworkWeight ) ; } g . push_back ( homework ) ; g [ 0 ] . calcEntityValue ( ) ; }
Will be called by "compute()" to get the homework grades & weight from the user
Will be called by " compute () " to get the homework grades & weight from the user
/*
    char painlessWay;

    std::cout << "Would you like to enter your homework grades through a .txt or .dat file? Please enter \"Y\" or \"N\": ";
    std::cin >> painlessWay;

    checkLetterEntry(painlessWay);
    */ // End of "if (classSetup == 1)..."
 // End of "else" statement
