diff options
-rw-r--r-- | 4.N.10_Parser.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/4.N.10_Parser.php b/4.N.10_Parser.php index e08432a..92eeda9 100644 --- a/4.N.10_Parser.php +++ b/4.N.10_Parser.php @@ -63,6 +63,9 @@ for (i=0;i<=$numRecords;i++) //Need to associate question_id with student $whose_question[$question_id] = $student_id; + + //Need to determine which attempt this is for this particular question + $attempts[$question_id]++; //How many correct submissions are there - @@ -75,7 +78,8 @@ for (i=0;i<=$numRecords;i++) if ($submitted_sum > $correct_sum) { $num_overpaid[$student_id]++; - } + } + } } |