diff options
author | wwdillingham <wwdillingham@sugarlabs.org> | 2009-08-07 18:33:00 (GMT) |
---|---|---|
committer | wwdillingham <wwdillingham@sugarlabs.org> | 2009-08-07 18:33:00 (GMT) |
commit | 00b63755f001419ce0a6db19361f91b59cb3bbfd (patch) | |
tree | 9d9685579fa2a3150e2400efda76d815f65677bf /4.N.10_Parser.php~ | |
parent | c2f62f8670d611f32fd0c2711b708909819d75bc (diff) |
yes and no
Diffstat (limited to '4.N.10_Parser.php~')
-rw-r--r-- | 4.N.10_Parser.php~ | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/4.N.10_Parser.php~ b/4.N.10_Parser.php~ index 8f2f34c..9123494 100644 --- a/4.N.10_Parser.php~ +++ b/4.N.10_Parser.php~ @@ -155,7 +155,7 @@ for (i=0;i<=$numRecords;i++) $previous_response[$question_id] = "u" } - + }//end while() //*******************************************************Output**************************************************** // addition can be determined if a student gets > 70% of the questions correct on their first attempt. @@ -167,15 +167,25 @@ for (i=0;i<=$numRecords;i++) // * If for > 10% of the questions the student makes this mistake. He or she gets a "no" for addition and subtraction. + + //****************** Addition Yes / No *************** -foreach ($Class as $student_id) +foreach ($Class as $student) { - if( + if( $num_correct[$student] >= ( .7 * ($num_submissions)) + { + $understands_addition = "no" + } + else + { + $understands_addition = "yes" + } + } //end foreach - } + } fclose($fp); //close 4.n.10.dat |