Wednesday, July 9, 2008

In class individual exercise

"CGS 1060 Grader" Program

Input:

  1. Enter your objective test scores, -1 to stop.
  2. Enter your project scores, -1 to stop.
  3. Enter your performance scores, -1 to stop.

Output:

Letter grade (A-F)

Rules:

  • First average the performance tests, objective tests, and project scores.
  • Objective tests are worth 20% of the final grade.
  • Performance tests are worth 60% of the final grade.
  • Project grades are worth 20% of the final grade.
  • A = 100-90
  • B = 80-89
  • C=70-79
  • D=60-69
  • F=0-59
  • There are at most five objective tests, five projects, and four performance exams.

No comments: