| @@ 3696-3706 (lines=11) @@ | ||
| 3693 | ||
| 3694 | $correctAnswer = $listCorrectAnswers['tabwords'][$i]; |
|
| 3695 | $isAnswerCorrect = 0; |
|
| 3696 | if (FillBlanks::isGoodStudentAnswer( |
|
| 3697 | $studentAnswer, |
|
| 3698 | $correctAnswer |
|
| 3699 | ) |
|
| 3700 | ) { |
|
| 3701 | // gives the related weighting to the student |
|
| 3702 | $questionScore += $answerWeighting[$i]; |
|
| 3703 | // increments total score |
|
| 3704 | $totalScore += $answerWeighting[$i]; |
|
| 3705 | $isAnswerCorrect = 1; |
|
| 3706 | } |
|
| 3707 | $listCorrectAnswers['studentanswer'][$i] = $studentAnswer; |
|
| 3708 | $listCorrectAnswers['studentscore'][$i] = $isAnswerCorrect; |
|
| 3709 | } |
|
| @@ 3723-3732 (lines=10) @@ | ||
| 3720 | for ($j = 0; $j < count($listTeacherAnswerTemp); $j++) { |
|
| 3721 | $correctAnswer = $listTeacherAnswerTemp[$j]; |
|
| 3722 | if (!$found) { |
|
| 3723 | if (FillBlanks::isGoodStudentAnswer( |
|
| 3724 | $studentAnswer, |
|
| 3725 | $correctAnswer |
|
| 3726 | ) |
|
| 3727 | ) { |
|
| 3728 | $questionScore += $answerWeighting[$i]; |
|
| 3729 | $totalScore += $answerWeighting[$i]; |
|
| 3730 | $listTeacherAnswerTemp[$j] = ""; |
|
| 3731 | $found = true; |
|
| 3732 | } |
|
| 3733 | } |
|
| 3734 | } |
|
| 3735 | $listCorrectAnswers['studentanswer'][$i] = $studentAnswer; |
|