CS23021 Computer Science I
Project #6
Due by 11:59pm on Thursday, December 7, 2006
Re-implement your solu tion to Project #5 but u se a class called CS1_ Scores instead of a structure for holding a
student’s scores. You must also incorporate the following changes into this project:
1) The maximum values for each of the scores is to be input as the first set of scores.
2) The functions created for project #5 (must now be im plemented as member function of the CS1_ Scores
class.
3) You must imp lement a function that overloads the “ <<” operator for outputting the students normalized
scores
Exa mple:
The following in put values:
10 10 10 10 10 10 10 20 50 50 50 50 100 100 150
9 9.33 8 10 5.5 8 10 20 47.5 47 45 47.5 83 87 142.5
9 8 6 6 8 7.5 8 20 35 40 42.5 40 62 72 127.5
would represent the f ollow ing data:
Student 1
7 quiz scores 9 9 .33 8 10 5 .5 8 10
5 project scores 20 47 .5 47 45 47 .5
2 exam scores 83 87
1 lab score 142.5
Student 2
7 quiz scores 9 8 6 6 8 7.5 8
5 project scores 20 35 40 42 .5 40
2 exam scores 62 72
1 lab score 127.5
Your program s hou ld t hen print out:
1 2 3 4 5 6 7 8
1234567890123456789012345678901234567890123456789012345678901234567890123456789012
No. ----------Quizzes---------- ------Projects----- -Exams- -Lab- -Total- Grade
1 2 3 4 5 6 7 1 2 3 4 5 1 2
--- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
1. 90 93 80 100 55 80 100 100 95 94 90 95 83 87 83 ?? ?
2. 90 80 60 60 80 75 80 100 70 80 85 70 62 72 85
.
.
.
Avg: 85 . . .
(Note: the first two lines shown below in red are to help you visualize the exact formatting requirements for the
output and should not be printed out by your program)