[LON-CAPA-users] Can a problem be used to upload a Letter Grade? - THANKS FOR THE HELP!

Alison A Baski/FS/VCU lon-capa-users@mail.lon-capa.org
Tue, 15 Dec 2009 15:26:18 -0500


This is a multipart message in MIME format.
--=_alternative 0070456D8525768D_=
Content-Type: text/plain; charset="US-ASCII"

Hello,
Thanks to Mark and HK for the help in learning how to post letter grades. 
Have a great holiday!
Alison





Mark Lucas <lucasm@ohio.edu> 
Sent by: lon-capa-users-admin@mail.lon-capa.org
12/15/2009 12:17 PM
Please respond to
lon-capa-users@mail.lon-capa.org


To
lon-capa-users@mail.lon-capa.org
cc

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






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


--=_alternative 0070456D8525768D_=
Content-Type: text/html; charset="US-ASCII"


<br><font size=2 face="sans-serif">Hello,</font>
<br><font size=2 face="sans-serif">Thanks to Mark and HK for the help in
learning how to post letter grades. &nbsp;</font>
<br><font size=2 face="sans-serif">Have a great holiday!</font>
<br><font size=2 face="sans-serif">Alison</font>
<br>
<br>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Mark Lucas &lt;lucasm@ohio.edu&gt;</b>
</font>
<br><font size=1 face="sans-serif">Sent by: lon-capa-users-admin@mail.lon-capa.org</font>
<p><font size=1 face="sans-serif">12/15/2009 12:17 PM</font>
<table border>
<tr valign=top>
<td bgcolor=white>
<div align=center><font size=1 face="sans-serif">Please respond to<br>
lon-capa-users@mail.lon-capa.org</font></div></table>
<br>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td><font size=1 face="sans-serif">lon-capa-users@mail.lon-capa.org</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td><font size=1 face="sans-serif">Re: [LON-CAPA-users] Can a problem be
used to upload a Letter Grade?</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=3>Alison,</font>
<br>
<br><font size=3>I use a bit of perl to display letter grades. You upload
a number that then is represented </font>
<br><font size=3>to the student as a grade. Here is the text of one of
the sample problems. I do not know of</font>
<br><font size=3>a simple way to upload a textual value directly.</font>
<br>
<br><font size=3>The only option that I know of for providing personalized
feedback en masse is by sending</font>
<br><font size=3>out a message from a file. There is a scheme by which
you can prepend a student's username</font>
<br><font size=3>to the beginning of the line and have that text only go
to that student. </font>
<br>
<br><font size=3>Mark</font>
<br>
<br><font size=3>&lt;problem&gt;</font>
<br><font size=3>&lt;parameter name=&quot;handgrade&quot; id=&quot;11&quot;
default=&quot;yes&quot; type=&quot;string_yesno&quot; description=&quot;Hand
Grade&quot; /&gt;</font>
<br><font size=3>&lt;script type=&quot;loncapa/perl&quot;&gt;</font>
<br><font size=3>$weight=&amp;EXT('resource.0.weight');</font>
<br><font size=3>if ((!defined($weight)) || ($weight eq '')) { $weight=1;
}</font>
<br><font size=3>$awarded=&amp;EXT('user.resource.resource.0.awarded');</font>
<br><font size=3>if (!defined($awarded)) { $awarded=0; }</font>
<br>
<br><font size=3>$index = $weight*$awarded;</font>
<br><font size=3>%grades = ( 1=&gt;&quot;A&quot;, 2=&gt;&quot;A-&quot;,
3=&gt;&quot;B+&quot;, 4=&gt;&quot;B&quot;, 5=&gt;&quot;B-&quot;, 6=&gt;&quot;C+&quot;,
7=&gt;&quot;C&quot;,</font>
<br><font size=3>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 8=&gt;&quot;C-&quot;,
9=&gt;&quot;D+&quot;, 10=&gt;&quot;D&quot;, 11=&gt;&quot;D-&quot;, 12=&gt;&quot;F&quot;,
13=&gt;&quot;FN&quot;, 14=&gt;&quot;FN&quot;,</font>
<br><font size=3>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 15=&gt;&quot;WP&quot;,
16=&gt;&quot;WF&quot;, 17=&gt;&quot;Incomplete&quot;,0=&gt;&quot;(Not Available)&quot;);</font>
<br><font size=3>$lettergrade = $grades{$index};</font>
<br><font size=3>&lt;/script&gt;</font>
<br><font size=3>&lt;startouttext /&gt;</font>
<br><font size=3>&lt;p&gt;You earned a letter grade of &lt;display&gt;$lettergrade&lt;/display&gt;
for the course.&lt;/p&gt;</font>
<br>
<br><font size=3>&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</font>
<br><font size=3>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</font>
<br><font size=3>get to choose your grade.&lt;/p&gt;</font>
<br><font size=3>&lt;endouttext /&gt;</font>
<br><font size=3>&lt;block condition=&quot;0&quot;&gt;&lt;numericalresponse
id=&quot;score&quot; /&gt;&lt;/block&gt;</font>
<br><font size=3>&lt;/problem&gt;</font>
<br>
<br>
<br>
<br><font size=3>On Dec 14, 2009, at 10:59 AM, Alison A Baski/FS/VCU wrote:</font>
<br>
<br><font size=2 face="sans-serif"><br>
Hello,</font><font size=3> </font><font size=2 face="sans-serif"><br>
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><font size=3>
</font><font size=2 face="sans-serif"><br>
The numerical scores are already loaded, but it would be nice to also upload
the letter grade.</font><font size=3> </font><font size=2 face="sans-serif"><br>
Thanks,</font><font size=3> </font><font size=2 face="sans-serif"><br>
Alison</font><font size=3> <br>
</font>
<br>
<br><font size=3>-- <br>
Mark Lucas &nbsp;email: </font><a href=mailto:lucasm@ohiou.edu><font size=3 color=blue><u>lucasm@ohiou.edu</u></font></a><font size=3><br>
252D Clippinger Lab phone: (740)597-2984<br>
Department of Physics and Astronomy fax: (740)593-0433<br>
Ohio University<br>
Athens, OH 45701</font>
<br>
<br>
--=_alternative 0070456D8525768D_=--