Hallo zusammen leider melde ich mich bei euch um einen Schulauftrag zu lösen ich probiere seit gut 2 Wochen mit meine Schulkameraden folgende Aufgabe zu lösen leider haben wir es immer noch nicht hingekriegt :-( Wir wollten es selber lösen aber haben keine Ahnung wie wir es lössen sollen weil Abgabetermin auch heute ist ca. um 16 - 17 Uhr wollte ich mich hier bei euch melden wir würden uns sehr freuen wenn ihr uns helfen würdet. :-(
....und verbleiben mit freundlichen Grüssen
Suppose that a text file named scores.txt contains the mid-term grades of students taking CSE203. Number of students that took the mid-term exam is unavailable. There is one line of data for each student. Each line contains (a) the students SID, (b) 5 integer values indicating the student’s grade on a question, and (c) the overall grade of the student. These values are separated by space (“ ”).
For example the line below of the file indicates that the student with SID 201CSE0001 took 5, 10, 15, 20, 10 points respectively on questions 1 through 5. Therefore the total exam score of 201CSE0001 is 5+10+15+20+10 = 60.
201CSE0001 5 10 15 20 10 60
Write a program that appends scores.txt with the following 3 lines containing summary statistics: AVG <avg. on Q1> <avg. on Q2> <avg. on Q3> <avg. on Q4> <avg. on Q5> <avg. MT grade>
MAX <max. on Q1> <max. on Q2> <max. on Q3> <max. on Q4> <max. on Q5> <max. MT grade> MIN <min. on Q1> <min. on Q2> <min. on Q3> <min. on Q4> <min. on Q5> <min. MT grade>
If scores.txt contains:
201CSE0001 0 10 15 20 10 55
201CSE0002 10 10 10 20 10 60
201CSE0003 20 20 20 10 20 90
201CSE0004 5 7 3 5 6 26
You will add at the end of the file the following lines:
AVG 8.75 11.75 12 13.75 11.5 57.75
MAX 20 20 20 20 20 90
MIN 0 7 3 5 6 26
....und verbleiben mit freundlichen Grüssen
Suppose that a text file named scores.txt contains the mid-term grades of students taking CSE203. Number of students that took the mid-term exam is unavailable. There is one line of data for each student. Each line contains (a) the students SID, (b) 5 integer values indicating the student’s grade on a question, and (c) the overall grade of the student. These values are separated by space (“ ”).
For example the line below of the file indicates that the student with SID 201CSE0001 took 5, 10, 15, 20, 10 points respectively on questions 1 through 5. Therefore the total exam score of 201CSE0001 is 5+10+15+20+10 = 60.
Write a program that appends scores.txt with the following 3 lines containing summary statistics: AVG <avg. on Q1> <avg. on Q2> <avg. on Q3> <avg. on Q4> <avg. on Q5> <avg. MT grade>
MAX <max. on Q1> <max. on Q2> <max. on Q3> <max. on Q4> <max. on Q5> <max. MT grade> MIN <min. on Q1> <min. on Q2> <min. on Q3> <min. on Q4> <min. on Q5> <min. MT grade>
If scores.txt contains:
201CSE0001 0 10 15 20 10 55
201CSE0002 10 10 10 20 10 60
201CSE0003 20 20 20 10 20 90
201CSE0004 5 7 3 5 6 26
You will add at the end of the file the following lines:
AVG 8.75 11.75 12 13.75 11.5 57.75
MAX 20 20 20 20 20 90
MIN 0 7 3 5 6 26