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 18:06:02 (GMT)
committer wwdillingham <wwdillingham@sugarlabs.org>2009-08-07 18:06:02 (GMT)
commit278fe880b0591f18acc4116bdbfa4bd0d0f73ec9 (patch)
treecd5f3fd3e9a83818ac88725a946ed758593e3f0b
parente0f6caa28b9f7da7db631c2d1536675f69483f01 (diff)
num_questions[]
-rw-r--r--4.N.10_Parser.php9
-rw-r--r--4.N.10_Parser.php~7
2 files changed, 11 insertions, 5 deletions
diff --git a/4.N.10_Parser.php b/4.N.10_Parser.php
index bf2e7a8..8f2f34c 100644
--- a/4.N.10_Parser.php
+++ b/4.N.10_Parser.php
@@ -70,12 +70,15 @@ for (i=0;i<=$numRecords;i++)
//Need to determine which attempt this is for this particular question
$attempts[$question_id]++;
+
+ //determine total number of submissions of a student
+ $num_submissions[$student_id]++; //$num_incorrect[] = (num_submissions[] - num_correct[])
//*****************************Case: Correct Submission ******************************
//How many correct submissions are there - important for determining percentages for yes/no
if ($submitted_sum == $correct_sum)
{
- $student_num_correct[$student_id]++;
+ $num_correct[$student_id]++;
//$question_num_correct[$question_id]++; will only ever be one
@@ -160,12 +163,14 @@ for (i=0;i<=$numRecords;i++)
// 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.
+//****************** Addition Yes / No ***************
foreach ($Class as $student_id)
{
-
+ if(
} //end foreach
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")
{