[LON-CAPA-users] Answer display of the student's submission.
ABERTR at tcc.fl.edu
Fri Jun 5 08:53:30 EDT 2015
Thanks, Gerd and Doug! I also had a peek at some code contained in the videos from a year ago about integrating Geogebra into LonCapa (from Brad Moffat at Selwyn, I believe), and got it working.
Associate Professor of Mathematics
Tallahassee Community College
From: lon-capa-users-bounces at mail.lon-capa.org [lon-capa-users-bounces at mail.lon-capa.org] on behalf of Gerd Kortemeyer [kortemey at msu.edu]
Sent: Thursday, June 4, 2015 6:17 PM
To: Discussion list for LON-CAPA users
Cc: Mills, Douglas G
Subject: Re: [LON-CAPA-users] Answer display of the student's submission.
> On Jun 4, 2015, at 4:37 PM, Mills, Douglas G <dmills at illinois.edu> wrote:
> One way I've done this is to check in the script at the head of the
> problem to see if the question has been answered correctly and if so, set
> the correct answer to the student answer.
I assume this is customresponse or mathresponse.
The method that Doug describes actually always works.
Make some variable for your displayed answer, say $answer, and use that.
$answer=“A correct answer is 42.”;
$answer=“Your correct answer is “.&submission(1,11).”.”;
<customresponse answerdisplay=“$answer” id="11">
Gerd Kortemeyer, Ph.D.
Associate Professor of Physics
Director, LON-CAPA Project
Michigan State University
LON-CAPA-users mailing list
LON-CAPA-users at mail.lon-capa.org
More information about the LON-CAPA-users