Computer Science I Project #6, Study Guides, Projects, Research of Computer Science

The details of project #6 for cs23021 computer science i course, which requires students to re-implement their solution to project #5 using a class called cs1_scores and incorporating specific changes. The project includes inputting maximum values for scores, implementing member functions of the cs1_scores class, and overloading the '<<' operator for outputting students' normalized scores.

Typology: Study Guides, Projects, Research

Pre 2010

Uploaded on 08/01/2009

koofers-user-p74
koofers-user-p74 🇺🇸

9 documents

1 / 1

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
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)

Partial preview of the text

Download Computer Science I Project #6 and more Study Guides, Projects, Research Computer Science in PDF only on Docsity!

CS23021 Computer Science I

Project

Due by 11:59pm on Thursday, December 7, 2006

Re-implement your solution to Project #5 but use 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 implemented as member function of the CS1_Scores class.
  3. You must implement a function that overloads the “<<” operator for outputting the students normalized scores Example: The following input 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. 9 8 6 6 8 7.5 8 20 35 40 42.5 40 62 72 127. would represent the following data: Student 1 7 quiz scores 9 9.33 8 10 5.5 8 10 5 project scores 20 47.5 47 45 47. 2 exam scores 83 87 1 lab score 142. 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. Your program should then 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)