Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWesley Dillingham <WWdillingham@sugarlabs.org>2009-08-06 17:58:00 (GMT)
committer Wesley Dillingham <WWdillingham@sugarlabs.org>2009-08-06 17:58:00 (GMT)
commitafc2d9d1f656df3e1b9b6b96f6ab3fc39a803535 (patch)
treeaca67a9d498099f81d447f3d05e8f41b66191683
parente8ef809d026bc96681183bba7d1ffc26975a1563 (diff)
number of times overpaid
-rw-r--r--4.N.10_Parser.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/4.N.10_Parser.php b/4.N.10_Parser.php
index fb8d42a..e08432a 100644
--- a/4.N.10_Parser.php
+++ b/4.N.10_Parser.php
@@ -65,12 +65,17 @@ for (i=0;i<=$numRecords;i++)
$whose_question[$question_id] = $student_id;
- //How many correct submissions are there
+ //How many correct submissions are there -
if ($submitted_sum == $correct_sum)
{
$num_correct[$student_id]++;
}
-
+
+ //How many times does each student overpay - important for determining subraction understanding
+ if ($submitted_sum > $correct_sum)
+ {
+ $num_overpaid[$student_id]++;
+ }
}
}