diff options
author | wwdillingham <wwdillingham@sugarlabs.org> | 2009-08-07 20:02:22 (GMT) |
---|---|---|
committer | wwdillingham <wwdillingham@sugarlabs.org> | 2009-08-07 20:02:22 (GMT) |
commit | de030dab878a000feca739984bb79200acb99513 (patch) | |
tree | d342de00e15708d54f9103b92760a53abb640986 | |
parent | 00b63755f001419ce0a6db19361f91b59cb3bbfd (diff) |
incorrect_subtraction[]
-rw-r--r-- | 4.N.10_Parser.php | 11 | ||||
-rw-r--r-- | 4.N.10_Parser.php~ | 4 |
2 files changed, 11 insertions, 4 deletions
diff --git a/4.N.10_Parser.php b/4.N.10_Parser.php index 4d7c6ba..2900d83 100644 --- a/4.N.10_Parser.php +++ b/4.N.10_Parser.php @@ -95,7 +95,7 @@ for (i=0;i<=$numRecords;i++) //determine subtraction if ($previous_response[$question_id] == "o") // if you previously overpaid { - $correct_subtraction[$student_id]++; + $correct_subtraction[$student_id]++; //The amount of times a student invoked subtractions correctly } @@ -124,6 +124,7 @@ for (i=0;i<=$numRecords;i++) elseif($previous_response[$question_id] == "o") { $strikes[$student_id]++; + $incorrect_subtraction[$student_id] } } @@ -148,6 +149,7 @@ for (i=0;i<=$numRecords;i++) } elseif($previous_response[$question_id] == "o") { + $incorrect_subtraction[$student_id]++; } @@ -180,7 +182,12 @@ foreach ($Class as $student) { $understands_addition = "no" } - + + +//*************Subtraction Yes/No ************* + + + if($subtraction_correct[$student] >= .10 * $ } //end foreach diff --git a/4.N.10_Parser.php~ b/4.N.10_Parser.php~ index 9123494..4d7c6ba 100644 --- a/4.N.10_Parser.php~ +++ b/4.N.10_Parser.php~ @@ -174,11 +174,11 @@ foreach ($Class as $student) { if( $num_correct[$student] >= ( .7 * ($num_submissions)) { - $understands_addition = "no" + $understands_addition = "yes" } else { - $understands_addition = "yes" + $understands_addition = "no" } |