diff options
-rw-r--r-- | 4.N.10_Parser.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/4.N.10_Parser.php b/4.N.10_Parser.php index febab18..fb8d42a 100644 --- a/4.N.10_Parser.php +++ b/4.N.10_Parser.php @@ -60,6 +60,16 @@ for (i=0;i<=$numRecords;i++) $correct_sum = $tok[2]; $submitted_sum = $tok[3]; $correct = $tok[4]; + + //Need to associate question_id with student + $whose_question[$question_id] = $student_id; + + + //How many correct submissions are there + if ($submitted_sum == $correct_sum) + { + $num_correct[$student_id]++; + } } } |