diff options
author | wwdillingham <WWdillingham@sugarlabs.org> | 2009-08-06 19:11:49 (GMT) |
---|---|---|
committer | wwdillingham <WWdillingham@sugarlabs.org> | 2009-08-06 19:11:49 (GMT) |
commit | 5deb5de7680c0e7e3f7765dd4f65ab3224588c33 (patch) | |
tree | 77e58b716232757fbf7707df4f6023c7343d9c55 | |
parent | a155ff0ccba3dfa1291c48bf982b224a75f1d1e8 (diff) |
commenting, sectioning pay cases
-rw-r--r-- | 4.N.10_Parser.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/4.N.10_Parser.php b/4.N.10_Parser.php index 2cae2ee..818aebb 100644 --- a/4.N.10_Parser.php +++ b/4.N.10_Parser.php @@ -71,7 +71,7 @@ for (i=0;i<=$numRecords;i++) //Need to determine which attempt this is for this particular question $attempts[$question_id]++; - + //*****************************Case: Correct Submission ****************************** //How many correct submissions are there - important for determining percentages for yes/no if ($submitted_sum == $correct_sum) { @@ -82,9 +82,9 @@ for (i=0;i<=$numRecords;i++) { } - } + //*****************************CASE: OVERPAID****************************** //How many times does each student overpay - important for determining subraction understanding if ($submitted_sum > $correct_sum) { @@ -93,10 +93,13 @@ 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) { + + } } + //******************************Case: Underpaid*********************************** //how many times the student underpaid if($submitted_sum < $correct_sum) { |