Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwwdillingham <wwdillingham@sugarlabs.org>2009-08-07 20:58:57 (GMT)
committer wwdillingham <wwdillingham@sugarlabs.org>2009-08-07 20:58:57 (GMT)
commit66e13ac9d8d3999a4f98a3c88be412c0c2060c45 (patch)
treeb63ed2b7f47d7f43c6013f23506ff30cd85e97e4
parent7deab5085ad59efafcaa850909c2bab5e43e0799 (diff)
changed .10 to .70
-rw-r--r--4.N.10_Parser.php10
-rw-r--r--4.N.10_Parser.php~19
2 files changed, 24 insertions, 5 deletions
diff --git a/4.N.10_Parser.php b/4.N.10_Parser.php
index d36f07a..8a3c497 100644
--- a/4.N.10_Parser.php
+++ b/4.N.10_Parser.php
@@ -187,19 +187,25 @@ foreach ($Class as $student)
//*************Subtraction Yes/No *************
- if($incorrect_subtraction[$student] / $correct_subtraction[$student] <= .10)
+ if($incorrect_subtraction[$student] / ($correct_subtraction[$student] + $incorrect_subtractions[$student]) <= .70)
{
$understands_subtraction = "y"; //we cannot use bool as there is a third case of "undetermined" with subtraction.
}
elseif($incorrect_subtraction[$student] == NULL || $incorrect_subtraction[$student] == 0)
{
- $understands_subtraction = "u"
+ $understands_subtraction = "u" //undetermined
}
else
{
$understands_subtraction = "n"
}
+/*************** Strikes *******************
+*
+* If a student overpays and then increases their payment, or underpays, followed by an even lower payment
+* it can be inferred the student does not understand the concepts of addition or subtraction with money.
+* If for > 10% of the questions the student makes this mistake. He or she gets a "no" for addition and subtraction.
+*/
} //end foreach
diff --git a/4.N.10_Parser.php~ b/4.N.10_Parser.php~
index 2900d83..d36f07a 100644
--- a/4.N.10_Parser.php~
+++ b/4.N.10_Parser.php~
@@ -176,18 +176,31 @@ foreach ($Class as $student)
{
if( $num_correct[$student] >= ( .7 * ($num_submissions))
{
- $understands_addition = "yes"
+ $understands_addition = true;
}
else
{
- $understands_addition = "no"
+ $understands_addition = false;
}
//*************Subtraction Yes/No *************
- if($subtraction_correct[$student] >= .10 * $
+ if($incorrect_subtraction[$student] / $correct_subtraction[$student] <= .10)
+ {
+ $understands_subtraction = "y"; //we cannot use bool as there is a third case of "undetermined" with subtraction.
+ }
+ elseif($incorrect_subtraction[$student] == NULL || $incorrect_subtraction[$student] == 0)
+ {
+ $understands_subtraction = "u"
+ }
+ else
+ {
+ $understands_subtraction = "n"
+ }
+
+
} //end foreach