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 17:44:48 (GMT)
committer wwdillingham <wwdillingham@sugarlabs.org>2009-08-07 17:44:48 (GMT)
commite0f6caa28b9f7da7db631c2d1536675f69483f01 (patch)
treef2c106c7df11a0c11fcb7c41c4eb67b911742c9b
parent5fd917ac7903ee8b3041c5591edb3456acddcc13 (diff)
tabulating 'strikes' against student
-rw-r--r--4.N.10_Parser.php7
-rw-r--r--4.N.10_Parser.php~26
2 files changed, 30 insertions, 3 deletions
diff --git a/4.N.10_Parser.php b/4.N.10_Parser.php
index 453009c..bf2e7a8 100644
--- a/4.N.10_Parser.php
+++ b/4.N.10_Parser.php
@@ -76,7 +76,7 @@ for (i=0;i<=$numRecords;i++)
if ($submitted_sum == $correct_sum)
{
$student_num_correct[$student_id]++;
- $question_num_correct[$question_id]++;
+ //$question_num_correct[$question_id]++; will only ever be one
@@ -92,7 +92,7 @@ for (i=0;i<=$numRecords;i++)
//determine subtraction
if ($previous_response[$question_id] == "o") // if you previously overpaid
{
-
+ $correct_subtraction[$student_id]++;
}
@@ -120,6 +120,7 @@ for (i=0;i<=$numRecords;i++)
}
elseif($previous_response[$question_id] == "o")
{
+ $strikes[$student_id]++;
}
}
@@ -140,7 +141,7 @@ for (i=0;i<=$numRecords;i++)
{
if($previous_response[$question_id] == "u")
{
-
+ $strikes[$student_id]++;
}
elseif($previous_response[$question_id] == "o")
{
diff --git a/4.N.10_Parser.php~ b/4.N.10_Parser.php~
index fa274ec..453009c 100644
--- a/4.N.10_Parser.php~
+++ b/4.N.10_Parser.php~
@@ -88,6 +88,14 @@ for (i=0;i<=$numRecords;i++)
//We can assume it was initally wrong because gcompris money cents would not have a second record of a question_id
// if it was correct initially.
//TODO - determine whether wrong means previously overpaid or previously underpaid
+
+ //determine subtraction
+ if ($previous_response[$question_id] == "o") // if you previously overpaid
+ {
+
+ }
+
+
}
@@ -143,9 +151,27 @@ for (i=0;i<=$numRecords;i++)
$previous_response[$question_id] = "u"
}
+
+
+//*******************************************************Output****************************************************
+// addition can be determined if a student gets > 70% of the questions correct on their first attempt.
+// subtraction can be determined if for > 70% of the questions the student initially over-paid, they immediately follow up with a correct payment.
+
+// 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 /ddition 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.
+
+
+foreach ($Class as $student_id)
+{
+
+
+} //end foreach
}
}
+fclose($fp); //close 4.n.10.dat
+
?>