CS302 Final Grades - Spring, 2017

James S. Plank



The grading scale is as follows: Your lab score was divided by 1000 and multiplied by 47 percent. Your number of lab attendances was divided by 14 and multiplied by 3 percent.

To convert the midterm and final to a score, I use the following procedure:

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 midterm scores are converted with:

  test_convert(rscore, 100, 65, 50, 40, 30);

and the final scores are convered with:
  test_convert(rscore, 95, 77, 62, 47, 37);

I counted the midterm and final 25% each.

Final tally: 9 A+'s, 13 A's, 7 A-'s, 11 B+'s, 5 B's, 5 B-'s, 7 C+'s, 2 C's, 5 C-'s, 2 D+'s 2 D, multiple F's.