[LON-CAPA-users] Can a problem be used to upload a Letter Grade?

Mark Lucas lon-capa-users@mail.lon-capa.org
Tue, 15 Dec 2009 12:09:28 -0500


--Apple-Mail-10--878073162
Content-Type: text/plain;
	charset=US-ASCII;
	format=flowed;
	delsp=yes
Content-Transfer-Encoding: 7bit

Alison,

I use a bit of perl to display letter grades. You upload a number that  
then is represented
to the student as a grade. Here is the text of one of the sample  
problems. I do not know of
a simple way to upload a textual value directly.

The only option that I know of for providing personalized feedback en  
masse is by sending
out a message from a file. There is a scheme by which you can prepend  
a student's username
to the beginning of the line and have that text only go to that student.

Mark

<problem>
<parameter name="handgrade" id="11" default="yes" type="string_yesno"  
description="Hand Grade" />
<script type="loncapa/perl">
$weight=&EXT('resource.0.weight');
if ((!defined($weight)) || ($weight eq '')) { $weight=1; }
$awarded=&EXT('user.resource.resource.0.awarded');
if (!defined($awarded)) { $awarded=0; }

$index = $weight*$awarded;
%grades = ( 1=>"A", 2=>"A-", 3=>"B+", 4=>"B", 5=>"B-", 6=>"C+", 7=>"C",
             8=>"C-", 9=>"D+", 10=>"D", 11=>"D-", 12=>"F", 13=>"FN",  
14=>"FN",
             15=>"WP", 16=>"WF", 17=>"Incomplete",0=>"(Not Available)");
$lettergrade = $grades{$index};
</script>
<startouttext />
<p>You earned a letter grade of <display>$lettergrade</display> for  
the course.</p>

<p>I am careful with posting grades, but sometimes I make an error. If  
there is a discrepancy between this grade and the grade from the  
registrar, the
grade from the registrar is the definitive grade. Please inquire about  
the letter grade and I will check where the mistake is, but a mistake  
on my part does not mean you
get to choose your grade.</p>
<endouttext />
<block condition="0"><numericalresponse id="score" /></block>
</problem>



On Dec 14, 2009, at 10:59 AM, Alison A Baski/FS/VCU wrote:

>
> Hello,
> I am trying to use LON-CAPA to distribute end-of-semester grades and  
> was wondering if a problem can be coded for uploading a letter grade.
> The numerical scores are already loaded, but it would be nice to  
> also upload the letter grade.
> Thanks,
> Alison
>

-- 
Mark Lucas 								email: lucasm@ohiou.edu
252D Clippinger Lab						phone: (740)597-2984
Department of Physics and Astronomy		fax: (740)593-0433
Ohio University
Athens, OH 45701


--Apple-Mail-10--878073162
Content-Type: text/html;
	charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

<html><body style=3D"word-wrap: break-word; -webkit-nbsp-mode: space; =
-webkit-line-break: after-white-space; ">Alison,<div><br></div><div>I =
use a bit of perl to display letter grades. You upload a number that =
then is represented&nbsp;</div><div>to the student as a grade. Here is =
the text of one of the sample problems. I do not know of</div><div>a =
simple way to upload a textual value =
directly.</div><div><br></div><div>The only option that I know of for =
providing personalized feedback en masse is by sending</div><div>out a =
message from a file. There is a scheme by which you can prepend a =
student's username</div><div>to the beginning of the line and have that =
text only go to that =
student.&nbsp;</div><div><br></div><div>Mark</div><div><br></div><div><div=
>&lt;problem&gt;</div><div>&lt;parameter name=3D"handgrade" id=3D"11" =
default=3D"yes" type=3D"string_yesno" description=3D"Hand Grade" =
/&gt;</div><div>&lt;script =
type=3D"loncapa/perl"&gt;</div><div>$weight=3D&amp;EXT('resource.0.weight'=
);</div><div>if ((!defined($weight)) || ($weight eq '')) { $weight=3D1; =
}</div><div>$awarded=3D&amp;EXT('user.resource.resource.0.awarded');</div>=
<div>if (!defined($awarded)) { $awarded=3D0; =
}</div><div><br></div><div>$index =3D =
$weight*$awarded;</div><div>%grades =3D ( 1=3D&gt;"A", 2=3D&gt;"A-", =
3=3D&gt;"B+", 4=3D&gt;"B", 5=3D&gt;"B-", 6=3D&gt;"C+", =
7=3D&gt;"C",</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp;8=3D&gt;"C-", 9=3D&gt;"D+", 10=3D&gt;"D", 11=3D&gt;"D-", =
12=3D&gt;"F", 13=3D&gt;"FN", 14=3D&gt;"FN",</div><div>&nbsp;&nbsp; =
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;15=3D&gt;"WP", 16=3D&gt;"WF", =
17=3D&gt;"Incomplete",0=3D&gt;"(Not Available)");</div><div>$lettergrade =
=3D =
$grades{$index};</div><div>&lt;/script&gt;</div><div>&lt;startouttext =
/&gt;</div><div>&lt;p&gt;You earned a letter grade of =
&lt;display&gt;$lettergrade&lt;/display&gt; for the =
course.&lt;/p&gt;</div><div><br></div><div>&lt;p&gt;I am careful with =
posting grades, but sometimes I make an error. If there is a discrepancy =
between this grade and the grade from the registrar, the</div><div>grade =
from the registrar is the definitive grade. Please inquire about the =
letter grade and I will check where the mistake is, but a mistake on my =
part does not mean you</div><div>get to choose your =
grade.&lt;/p&gt;</div><div>&lt;endouttext /&gt;</div><div>&lt;block =
condition=3D"0"&gt;&lt;numericalresponse id=3D"score" =
/&gt;&lt;/block&gt;</div><div>&lt;/problem&gt;</div><div><br></div></div><=
div><br></div><div><br><div><div>On Dec 14, 2009, at 10:59 AM, Alison A =
Baski/FS/VCU wrote:</div><br =
class=3D"Apple-interchange-newline"><blockquote type=3D"cite"><br><font =
size=3D"2" face=3D"sans-serif">Hello,</font> <br><font size=3D"2" =
face=3D"sans-serif">I am trying to use LON-CAPA to distribute =
end-of-semester grades and was wondering if a problem can be coded for =
uploading a letter grade.</font> <br><font size=3D"2" =
face=3D"sans-serif">The numerical scores are already loaded, but it =
would be nice to also upload the letter grade.</font> <br><font size=3D"2"=
 face=3D"sans-serif">Thanks,</font> <br><font size=3D"2" =
face=3D"sans-serif">Alison</font> <br> <br></blockquote></div><br><div =
apple-content-edited=3D"true"> <div style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space; =
"><div>--&nbsp;<br>Mark Lucas<span =
class=3D"Apple-converted-space">&nbsp;</span><span =
class=3D"Apple-tab-span" style=3D"white-space: pre; ">				=
				</span>email:&nbsp;<a =
href=3D"mailto:lucasm@ohiou.edu">lucasm@ohiou.edu</a><br>252D Clippinger =
Lab<span class=3D"Apple-tab-span" style=3D"white-space: pre; ">			=
			</span>phone: (740)597-2984<br>Department of =
Physics and Astronomy<span class=3D"Apple-tab-span" style=3D"white-space: =
pre; ">		</span>fax: (740)593-0433<br>Ohio University<br>Athens, =
OH 45701</div></div> </div><br></div></body></html>=

--Apple-Mail-10--878073162--