final_project/Interface.cpp
// I'm normally not a fan of these kinds of functions but eh...
// subtract earned_score from target_score; return zero if earned_score is greater

I'm normally not a fan of these kinds of functions but eh
subtract earned_score from target_score; return zero if earned_score is greater
I ' m normally not a fan of these kinds of functions but eh subtract earned_score from target_score ; return zero if earned_score is greater
double subtract_scores(double target_score, double earned_score){
        double score = target_score - earned_score;
        if (score < 0.0) return 0.0;
        return score;
    }
double subtract_scores ( double target_score , double earned_score ) { double score = target_score - earned_score ; if ( score < 0.0 ) return 0.0 ; return score ; }
I'm normally not a fan of these kinds of functions but eh...
subtract earned_score from target_score; return zero if earned_score is greater
I ' m normally not a fan of these kinds of functions but eh ... subtract earned_score from target_score ; return zero if earned_score is greater