To convert the midterms and finals to a score in that range, I use the following routine:
double A = 90.0;
double B = 80.0;
double C = 70.0;
double D = 60;
double test_convert(double score, double top, double a,
double b, double c, double d)
{
if (score >= a) {
return (score - a)/(top - a) * (100.0-A) + A;
} else if (score >= b) {
return (score - b)/(a - b) * (A-B) + B;
} else if (score >= c) {
return (score - c)/(b - c) * (B-C) + C;
} else if (score >= d) {
return (score - d)/(c - d) * (C-D) + D;
} else {
return (score)/d * (D);
}
} |
The first midterm scores are converted with:
test_convert(yourscore, 60, 43, 35, 29, 20);The second midterm scores are converted with:
test_convert(yourscore, 65, 50, 40, 30, 25);the first final scores are convered with:
test_convert(yourscore, 52, 41, 35, 27, 20);the makeup final scores are convered with:
test_convert(yourscore, 58, 50, 40, 32, 24);
Midterm 1 was 20%. Midterm 2 was 10%. The final was 20%. Labs were 50%. If you did the evaluation, you got 0.5% extra.
Final grade tally: