<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;" dir="ltr">
<p>Hi Gene,</p>
<p><br>
</p>
<p>Yes, there is a way to do partial credit.  If you are already using a customresponse to grade the GeoGebra problems, then it won't be too difficult.  To assign partial credit, you need some kind of counter in your answer algorithm to determine how many the
 student got correct, then just do</p>
<p><br>
</p>
<p>return ('ASSIGNED_SCORE', $correct/$total);</p>
<p><br>
</p>
<p>There is an example problem for partial credit, in the templates it is under Free Form Problems and is called Custom Response with Partial Credit.</p>
<p><br>
</p>
<p>If you want students to be given multiple attempts, you need insert a "Parameters for a part" with this information:</p>
<p><br>
</p>
<p><span><parameter name="retrypartial" type="string_yesno" description="Partially correct is answerable" default="yes" /></span><br>
</p>
<p><span><br>
</span></p>
<p><span>Finally, if you do give them multiple attempts, you shouldn't do `return 'INCORRECT';` as in the example problem, because this will not overwrite their score with a 0.  So if they got one right, then moved it, and you did `return 'INCORRECT';`, they
 would still have a score of 0.166666667.  Instead, the algorithm needs to assign a score of 0, which would be taken care of by the above since `$correct` would be 0.</span></p>
<p><span><br>
</span></p>
<p><span>Jacob</span></p>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> lon-capa-users-bounces@mail.lon-capa.org <lon-capa-users-bounces@mail.lon-capa.org> on behalf of Harding, Gene L <glhardin@purdue.edu><br>
<b>Sent:</b> Wednesday, January 25, 2017 9:56:25 AM<br>
<b>To:</b> 'lon-capa-users@mail.lon-capa.org'<br>
<b>Subject:</b> [LON-CAPA-users] Function Plot Response Partial Credit Grading</font>
<div> </div>
</div>
<div>
<div class="WordSection1">
<p class="MsoNormal">Hi,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Sorry for another post, but the problems I have been constructing in recent weeks use areas that are new to me, such as gnuplot and Geogebra. I keep getting close, but not quite finishing some of the new problems.
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Right now I am building a quiz question that requires students to place six vectors on a single set of axes. I have figured out how to place the initial vectors for them to move into place, then separately evaluate the correctness of each
 vector. Is there a way to assign 1/6 of the grade for each vector, so if a student places some of them correctly but some incorrectly, they get partial credit on the problem instead of all/none? I thought I might be able to do this with some pre- or post-processing
 of the answer(s), but the standard LON-CAPA examples I have found have no comments in the code, and I have not been able to figure them out (if that is even the right approach…).<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Best regards,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Gene L. Harding, PE<o:p></o:p></p>
<p class="MsoNormal">Associate Professor of ECET<o:p></o:p></p>
<p class="MsoNormal">574-520-4190<o:p></o:p></p>
<p class="MsoNormal">Purdue University-South Bend<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</body>
</html>