|
| 1 | +## DESCRIPTION |
| 2 | +## Accessing Feedback |
| 3 | +## ENDDESCRIPTION |
| 4 | + |
| 5 | +DOCUMENT(); |
| 6 | + |
| 7 | +loadMacros(qw( |
| 8 | + PGstandard.pl |
| 9 | + PGML.pl |
| 10 | + PGcourse.pl |
| 11 | +)); |
| 12 | + |
| 13 | +$random = random(100, 900); |
| 14 | +$answer = Real($random)->cmp( |
| 15 | + checker => sub { |
| 16 | + my ($c, $s, $a) = @_; |
| 17 | + Value::Error("The correct answer is $random.") |
| 18 | + unless ($s == $random); |
| 19 | + return 1; |
| 20 | + } |
| 21 | +); |
| 22 | + |
| 23 | +BEGIN_PGML |
| 24 | +## Feedback |
| 25 | + |
| 26 | +When you Submit an answer, a feedback button appears near the answer blank. |
| 27 | + |
| 28 | +* If you answer correctly, you see a green checkmark[@ |
| 29 | + MODES( |
| 30 | + HTML => ': <button class="ww-feedback-btn btn btn-sm btn-success" disabled aria-label="Correct">' |
| 31 | + . '<i class="correct"></i>' |
| 32 | + . '</button>', |
| 33 | + TeX => '' |
| 34 | + )@]*. |
| 35 | +* If you answer incorrectly, you see a red alert[@ |
| 36 | + MODES( |
| 37 | + HTML => ': <button class="ww-feedback-btn btn btn-sm btn-danger" disabled aria-label="Incorrect">' |
| 38 | + . '<i class="incorrect"></i>' |
| 39 | + . '</button>', |
| 40 | + TeX => '' |
| 41 | + )@]*. |
| 42 | +* If you earn partial credit, you see a yellow warning[@ |
| 43 | + MODES( |
| 44 | + HTML => ': <button class="ww-feedback-btn btn btn-sm btn-warning" disabled aria-label="Partially Correct">' |
| 45 | + . '<i class="partially-correct"></i>' |
| 46 | + . '</button>', |
| 47 | + TeX => '' |
| 48 | + )@]*. |
| 49 | + |
| 50 | +Each of these buttons is something you can click to see more information about the answer you tried. And if there is an |
| 51 | +actual feedback message, you will see a small circle in the upper right corner of the button[@ |
| 52 | + MODES( |
| 53 | + HTML => ': <button class="ww-feedback-btn btn btn-sm btn-danger with-message" ' |
| 54 | + . 'disabled aria-label="Incorrect with message">' |
| 55 | + . '<i class="incorrect"></i>' |
| 56 | + . '</button>', |
| 57 | + TeX => '' |
| 58 | + )@]*. |
| 59 | + |
| 60 | +For example, try answering the following with any answer. Almost certainly, you will be marked incorrect, but the |
| 61 | +feedback message will tell you the correct answer. What number am I thinking of? [_]{$answer}{4} |
| 62 | + |
| 63 | +If you type an answer and click to "Preview my Answers", you will see an info button[@ |
| 64 | + MODES( |
| 65 | + HTML => ': <button class="ww-feedback-btn btn btn-sm btn-info" disabled aria-label="Answer Preview"><i/>' |
| 66 | + . '</button>', |
| 67 | + TeX => '' |
| 68 | + ) |
| 69 | +@]* instead of the correct/incorrect buttons. |
| 70 | + |
| 71 | +In addition to automated feedback, your instructor can leave messages for you in WeBWorK. To see these messages, you |
| 72 | +must visit the problem for which a message has been left. The message will appear above the exercise. If your course |
| 73 | +uses essay questions, there is no automated feedback, and these messages from the instructor will be your only feedback. |
| 74 | + |
| 75 | +[@ MODES(HTML => 'When you are ready, click "Next Problem".', TeX => '') @] |
| 76 | +END_PGML |
| 77 | + |
| 78 | +ENDDOCUMENT(); |
0 commit comments