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 18:09:43 (GMT)
committer Wesley Dillingham <WWdillingham@sugarlabs.org>2009-08-06 18:09:43 (GMT)
commit16f3904b14293c8a0b7ada647cbc198460da6bf3 (patch)
tree2e3853aea7451a5de460a2b6657754487494cf25
parent0b153d87c36893dab13d10bc8972e147c3935969 (diff)
$num_underpaid
-rw-r--r--4.N.10_Parser.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/4.N.10_Parser.php b/4.N.10_Parser.php
index 92eeda9..0b47bea 100644
--- a/4.N.10_Parser.php
+++ b/4.N.10_Parser.php
@@ -79,7 +79,12 @@ for (i=0;i<=$numRecords;i++)
{
$num_overpaid[$student_id]++;
}
-
+
+ //how many times the student underpaid
+ if($submitted_sum < $correct_sum)
+ {
+ $num_underpaid[$student_id]++;
+ }
}
}