Annotation of loncom/html/adm/help/tex/Answer_Display_Overview.tex, revision 1.2

1.1       lira        1: \label{Answer_Display_Overview}
1.2     ! lira        2: \index{answer display}
        !             3: Answers are typically not displayed to the student when they submit than answer to a problem. 
        !             4: When the problem is assigned in a course, a parameter for the `answer date' can be set that will show the students the answers when they revisit the problem after that date. The answer date is separate from the due date which is also set when the problem is assigned. Note that an xml tag `postanswerdate' is also available if you want to include more information along with the answer. The content in the xml tag is suppressed until after the answer date.
        !             5: 
        !             6: Suppose you want the answer displayed as soon as the student finishes the problem rather than waiting for 
        !             7: the answer date. For example, this may occur in a multipoint problem where you
        !             8: want the students to see the correct answer for one part before proceding to the next part. If you would like the 
        !             9: computer answer to be displayed after the student answer is correct, or the maximum number
        !            10: of tries has been reached, this can be achieved by setting the parameter \texttt{problemstatus} = answer. Using
        !            11: the colorful editor, the parameter can be inserted WITHIN the problem part, but BEFORE the response tag (e.g. 
        !            12: \texttt{numericalresponse}). For example:
        !            13: 
        !            14: \begin{verbatim}
        !            15: <part id="01">
        !            16: <parameter name="problemstatus" id="11" type="string_problemstatus" 
        !            17:   default="answer" description="Show Problem Status" />
        !            18: <numericalresponse answer="$c" id="01a">
        !            19: <!-- using no tolerance since exact integer is expected for answer -->
        !            20:     <textline readonly="no" spellcheck="none" />
        !            21: </numericalresponse>
        !            22: </part>
        !            23: \end{verbatim}
        !            24: 
        !            25: The options for the problemstatus are: ``yes'' - shows correct or incorrect only; 
        !            26: ``answer'' - shows computer answer as described above; ``no'' - 
        !            27: don't show correct/incorrect feedback; ``no\_feedback\_ever''- supresses all feedback.
1.1       lira       28: 
1.2     ! lira       29: If you want to provide additional explanation in addition to the answer as soons as 
        !            30: the maximum tries allowed for the part have been reached, include a conditional
        !            31: block in the problem part, and set the condition for the part to evaluate to
        !            32: true when the problem is either correct, no tries remain, or it is post-answer date.
        !            33: 
        !            34: To achieve this behavior, add a call to the LON-CAPA function  \&check\_status(`partid')
        !            35: for each part to the script block, and set a scalar to the value returned for each part, then use
        !            36: that scalar in the conditional block, e.g.,
        !            37: 
        !            38: \begin{verbatim}
        !            39: <script type="loncapa/perl">
        !            40: # for part: a
        !            41: $status_a = &check_status('a');
        !            42: # other computations
        !            43: </script>
        !            44: 
        !            45: <part id="a">
        !            46: <block condition="$status_a">
        !            47: <startouttext />
        !            48: <br />
        !            49: Some explanation text about the answer, $answer
        !            50: <endouttext />
        !            51: </block>
        !            52: </part>
        !            53: \end{verbatim}
1.1       lira       54: 

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>