| @@ 3671-3681 (lines=11) @@ | ||
| 3668 | ||
| 3669 | $correctAnswer = $listCorrectAnswers['tabwords'][$i]; |
|
| 3670 | $isAnswerCorrect = 0; |
|
| 3671 | if (FillBlanks::isGoodStudentAnswer( |
|
| 3672 | $studentAnswer, |
|
| 3673 | $correctAnswer |
|
| 3674 | ) |
|
| 3675 | ) { |
|
| 3676 | // gives the related weighting to the student |
|
| 3677 | $questionScore += $answerWeighting[$i]; |
|
| 3678 | // increments total score |
|
| 3679 | $totalScore += $answerWeighting[$i]; |
|
| 3680 | $isAnswerCorrect = 1; |
|
| 3681 | } |
|
| 3682 | $listCorrectAnswers['studentanswer'][$i] = $studentAnswer; |
|
| 3683 | $listCorrectAnswers['studentscore'][$i] = $isAnswerCorrect; |
|
| 3684 | } |
|
| @@ 3702-3711 (lines=10) @@ | ||
| 3699 | ); $j++) { |
|
| 3700 | $correctAnswer = $listTeacherAnswerTemp[$j]; |
|
| 3701 | if (!$found) { |
|
| 3702 | if (FillBlanks::isGoodStudentAnswer( |
|
| 3703 | $studentAnswer, |
|
| 3704 | $correctAnswer |
|
| 3705 | ) |
|
| 3706 | ) { |
|
| 3707 | $questionScore += $answerWeighting[$i]; |
|
| 3708 | $totalScore += $answerWeighting[$i]; |
|
| 3709 | $listTeacherAnswerTemp[$j] = ""; |
|
| 3710 | $found = true; |
|
| 3711 | } |
|
| 3712 | } |
|
| 3713 | } |
|
| 3714 | $listCorrectAnswers['studentanswer'][$i] = $studentAnswer; |
|