diff options
author | wwdillingham <wwdillingham@sugarlabs.org> | 2009-08-06 19:39:23 (GMT) |
---|---|---|
committer | wwdillingham <wwdillingham@sugarlabs.org> | 2009-08-06 19:39:23 (GMT) |
commit | fefcefd6fc8b647ab58d987c82818f386e87a9e3 (patch) | |
tree | 1b364fb18384d48f94861ae3a55a2ce595bb211c | |
parent | 5deb5de7680c0e7e3f7765dd4f65ab3224588c33 (diff) |
Pseudocoding
-rw-r--r-- | 4.N.10_Parser.php | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/4.N.10_Parser.php b/4.N.10_Parser.php index 818aebb..16117cc 100644 --- a/4.N.10_Parser.php +++ b/4.N.10_Parser.php @@ -80,6 +80,14 @@ for (i=0;i<=$numRecords;i++) //this if-statement allows us to determine if a student is on his/her second attempt if ($attempts[$question_id] == 1) { + //the code is looking here if and only if the parser is analyzing a question which he/she + //initially got wrong but has now gotten correct + //We can assume it was initally wrong because gcompris money cents would not have a second record of a question_id + // if it was correct initially. + + //TODO - determine whether wrong means previously overpaid or previously underpaid + + } } @@ -100,7 +108,7 @@ for (i=0;i<=$numRecords;i++) } //******************************Case: Underpaid*********************************** - //how many times the student underpaid + //how many times the student underpaid if($submitted_sum < $correct_sum) { $num_underpaid[$student_id]++; |