From de030dab878a000feca739984bb79200acb99513 Mon Sep 17 00:00:00 2001 From: wwdillingham Date: Fri, 07 Aug 2009 20:02:22 +0000 Subject: incorrect_subtraction[] --- 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" } -- cgit v0.9.1