Difference between revisions of "Grades, Easy"

From Progzoo
Jump to navigation Jump to search
Line 99: Line 99:
 
<p class="imper">
 
<p class="imper">
 
Print the number of students who have failed the module SD1a.
 
Print the number of students who have failed the module SD1a.
</p>
+
</p>  
 
</blurb>
 
</blurb>
 
<shell lang="java" import="shellsGrades.xml#null"/>
 
<shell lang="java" import="shellsGrades.xml#null"/>

Revision as of 23:14, 6 December 2007

Each student takes four modules: RAD, SD1A, PS and IIS. The passing grade is 40% in every module.

The input data grades10.txt contains one line per student. The line begins with the matriculation number and the name. The marks for each of the subjects are given in the sequence RAD, SD1a, PS and IIS. Each of these fields is separated by the tab character.

http://progzoo.net/grades10.txt

RAD pass list

Print the names of the students who have passed the RAD module.



[Font] [Default] [Show] [Resize] [History] [Profile]

Average grade

For each student print the name followed by the average grade over the four modules.



[Font] [Default] [Show] [Resize] [History] [Profile]

Semester pass list

Print the names of the students who have passed all four modules.



[Font] [Default] [Show] [Resize] [History] [Profile]

Matric 04

Print the names of the students who have a matriculation number that starts with 04.



[Font] [Default] [Show] [Resize] [History] [Profile]

Count SD1a fails

Print the number of students who have failed the module SD1a.



[Font] [Default] [Show] [Resize] [History] [Profile]