From kortemey at msu.edu Wed May 2 10:29:25 2018 From: kortemey at msu.edu (Kortemeyer, Gerd) Date: Wed, 2 May 2018 14:29:25 +0000 Subject: [LON-CAPA-users] LON-CAPA Conference and Workshop Registration Open Message-ID: <5F4505AB-4F80-43E9-AE3A-4C95E2FDF594@msu.edu> Hi, Registration for the 2018 LON-CAPA Conference and Workshop is now available, http://support.loncapa.org/events/conf2018/ We would like to thank Purdue University for their generous support. - Gerd. From glhardin at purdue.edu Thu May 3 08:56:25 2018 From: glhardin at purdue.edu (Harding, Gene L) Date: Thu, 3 May 2018 12:56:25 +0000 Subject: [LON-CAPA-users] LON-CAPA Conference and Workshop Registration Open In-Reply-To: <5F4505AB-4F80-43E9-AE3A-4C95E2FDF594@msu.edu> References: <5F4505AB-4F80-43E9-AE3A-4C95E2FDF594@msu.edu> Message-ID: Hi Gerd, It would probably be helpful to add Purdue Memorial Union hotel contact info to the Accommodations page: (800) 320-6291 https://union.purdue.edu/hotel/ There is contact info for the other hotels, but not the Union. Best regards, Gene L. Harding, PE Associate Professor of ECET 574-520-4190 -----Original Message----- From: LON-CAPA-users On Behalf Of Kortemeyer, Gerd Sent: Wednesday, May 2, 2018 10:29 AM To: Discussion list for LON-CAPA users Subject: [LON-CAPA-users] LON-CAPA Conference and Workshop Registration Open Hi, Registration for the 2018 LON-CAPA Conference and Workshop is now available, http://support.loncapa.org/events/conf2018/ We would like to thank Purdue University for their generous support. - Gerd. _______________________________________________ LON-CAPA-users mailing list LON-CAPA-users at mail.lon-capa.org http://mail.lon-capa.org/mailman/listinfo/lon-capa-users From glhardin at purdue.edu Fri May 11 20:00:16 2018 From: glhardin at purdue.edu (Harding, Gene L) Date: Sat, 12 May 2018 00:00:16 +0000 Subject: [LON-CAPA-users] Conditional Block Issue Message-ID: <75c2af3f079c46319e0795c6761ca37b@wppexc10.purdue.lcl> Hi, I am trying to display something (a gnuplot) only if the student has exceeded the maxtries for a problem and not gotten it correct. I used the following code in the perl script to check the problem status and set a flag ($status_a) to zero only if maxtries is exceeded: # Check status: 'undef'=not attempted; 0=wrong but tries left; 1=correct; 2=maxtries exceeded; 3=after answer date $status_a = &check_status('a'); if ($status_a ne 2) {$status_a=0;} # If maxtries not reached, set to 0 so conditional block does not execute Then I put the gnuplot code inside a conditional block: Frequency (MHz) Amplitude (V) @f @tails @zeros @mag I thought conditional blocks were skipped if the condition was zero, and executed for nonzero values, but the block is executing even when $status_a is zero. Can anyone see what I am doing wrong? Is there a better/easier way to do this? Thanks for any help/advice you can provide. Best regards, Gene L. Harding, PE Associate Professor of ECET 574-520-4190 -------------- next part -------------- An HTML attachment was scrubbed... URL: From raeburn at msu.edu Fri May 11 20:10:39 2018 From: raeburn at msu.edu (Stuart Raeburn) Date: Fri, 11 May 2018 20:10:39 -0400 Subject: [LON-CAPA-users] Conditional Block Issue In-Reply-To: <75c2af3f079c46319e0795c6761ca37b@wppexc10.purdue.lcl> References: <75c2af3f079c46319e0795c6761ca37b@wppexc10.purdue.lcl> Message-ID: <20180511201039.203128h46o35amf3@mail.msu.edu> Hello Gene, Without looking in detail at your code, one thing jumped out at me when glancing at your code. In the text included in your e-mail to the users list you have: I don't know whether that's just a typo in your e-mail, but in your LON-CAPA code you'd want: Stuart Raeburn LON-CAPA Academic Consortium Quoting "Harding, Gene L" : > Hi, > > I am trying to display something (a gnuplot) only if the student has > exceeded the maxtries for a problem and not gotten it correct. I used > the following code in the perl script to check the problem status and > set a flag ($status_a) to zero only if maxtries is exceeded: > # Check status: 'undef'=not attempted; 0=wrong but tries left; > 1=correct; 2=maxtries exceeded; 3=after answer date > $status_a = &check_status('a'); > if ($status_a ne 2) {$status_a=0;}? # If maxtries not reached, set to > 0 so conditional block does not execute > > Then I put the gnuplot code inside a conditional block: > > font="9" height="500" border="on" samples="100" > ? ? ? ? ? bgcolor="xffffff" fgcolor="x000000" alttag="Spectrum Plot" > transparent="off" major_ticscale="2" plottype="Cartesian"> > ? ? ? end="$xtic_stop" increment="$xtic_incr" start="0" /> > ? ? ? increment="2" start="0" /> > ? ? ? xmax="$x_max" /> > ? ? ?Frequency (MHz) > ? ? ?Amplitude (V) > ? ? ? arrowstyle="filled" color="x000000" pointtype="4" > ? ? ? ? ? ? linewidth="1" arrowhead="head" arrowlength="$arwhd" pointsize="1"> > > ? ? ? ? ?@f > ? ? ? ? ?@tails > ? ? ? ? ?@zeros > ? ? ? ? ?@mag > ? ? ? > > > > I thought conditional blocks were skipped if the condition was zero, > and executed for nonzero values, but the block is executing even when > $status_a is zero. Can anyone see what I am doing wrong? Is there a > better/easier way to do this? > > Thanks for any help/advice you can provide. > > Best regards, > > Gene L. Harding, PE > Associate Professor of ECET > 574-520-4190 > > From ytliu at illinois.edu Fri May 11 20:13:58 2018 From: ytliu at illinois.edu (Liu, Yuk Tung) Date: Sat, 12 May 2018 00:13:58 +0000 Subject: [LON-CAPA-users] Conditional Block Issue In-Reply-To: <75c2af3f079c46319e0795c6761ca37b@wppexc10.purdue.lcl> References: <75c2af3f079c46319e0795c6761ca37b@wppexc10.purdue.lcl> Message-ID: <36F9D2FBD21D0143B375FD06E3E279DF36D0B540@CITESMBX3.ad.uillinois.edu> Hi Gene, Perhaps your problem is that you have instead of . You are missing the $ sign. Yuk Tung Liu E-Learning Specialist Department of Statistics UIUC ________________________________ From: LON-CAPA-users [lon-capa-users-bounces at mail.lon-capa.org] on behalf of Harding, Gene L [glhardin at purdue.edu] Sent: Friday, May 11, 2018 7:00 PM To: Discussion list for LON-CAPA users Subject: [LON-CAPA-users] Conditional Block Issue Hi, I am trying to display something (a gnuplot) only if the student has exceeded the maxtries for a problem and not gotten it correct. I used the following code in the perl script to check the problem status and set a flag ($status_a) to zero only if maxtries is exceeded: # Check status: 'undef'=not attempted; 0=wrong but tries left; 1=correct; 2=maxtries exceeded; 3=after answer date $status_a = &check_status('a'); if ($status_a ne 2) {$status_a=0;} # If maxtries not reached, set to 0 so conditional block does not execute Then I put the gnuplot code inside a conditional block: Frequency (MHz) Amplitude (V) @f @tails @zeros @mag I thought conditional blocks were skipped if the condition was zero, and executed for nonzero values, but the block is executing even when $status_a is zero. Can anyone see what I am doing wrong? Is there a better/easier way to do this? Thanks for any help/advice you can provide. Best regards, Gene L. Harding, PE Associate Professor of ECET 574-520-4190 -------------- next part -------------- An HTML attachment was scrubbed... URL: From glhardin at purdue.edu Fri May 11 22:08:47 2018 From: glhardin at purdue.edu (Harding, Gene L) Date: Sat, 12 May 2018 02:08:47 +0000 Subject: [LON-CAPA-users] Conditional Block Issue In-Reply-To: <20180511201039.203128h46o35amf3@mail.msu.edu> References: <75c2af3f079c46319e0795c6761ca37b@wppexc10.purdue.lcl> <20180511201039.203128h46o35amf3@mail.msu.edu> Message-ID: Oh, wow, that's all it was. Thank you Stuart and Yuk for spotting it. Sorry to email the listserv with such a dumb mistake! Best regards, Gene L. Harding, PE Associate Professor of ECET 574-520-4190 -----Original Message----- From: LON-CAPA-users On Behalf Of Stuart Raeburn Sent: Friday, May 11, 2018 8:11 PM To: lon-capa-users at mail.lon-capa.org Subject: Re: [LON-CAPA-users] Conditional Block Issue Hello Gene, Without looking in detail at your code, one thing jumped out at me when glancing at your code. In the text included in your e-mail to the users list you have: I don't know whether that's just a typo in your e-mail, but in your LON-CAPA code you'd want: Stuart Raeburn LON-CAPA Academic Consortium Quoting "Harding, Gene L" : > Hi, > > I am trying to display something (a gnuplot) only if the student has > exceeded the maxtries for a problem and not gotten it correct. I used > the following code in the perl script to check the problem status and > set a flag ($status_a) to zero only if maxtries is exceeded: > # Check status: 'undef'=not attempted; 0=wrong but tries left; > 1=correct; 2=maxtries exceeded; 3=after answer date $status_a = > &check_status('a'); if ($status_a ne 2) {$status_a=0;}? # If maxtries > not reached, set to > 0 so conditional block does not execute > > Then I put the gnuplot code inside a conditional block: > > font="9" height="500" border="on" samples="100" > ? ? ? ? ? bgcolor="xffffff" fgcolor="x000000" alttag="Spectrum Plot" > transparent="off" major_ticscale="2" plottype="Cartesian"> > ? ? ? end="$xtic_stop" increment="$xtic_incr" start="0" /> > ? ? ? increment="2" start="0" /> > ? ? ? xmax="$x_max" /> > ? ? ?Frequency (MHz) > ? ? ?Amplitude (V) > ? ? ? arrowstyle="filled" color="x000000" pointtype="4" > ? ? ? ? ? ? linewidth="1" arrowhead="head" arrowlength="$arwhd" pointsize="1"> > > ? ? ? ? ?@f > ? ? ? ? ?@tails > ? ? ? ? ?@zeros > ? ? ? ? ?@mag > ? ? ? > > > > I thought conditional blocks were skipped if the condition was zero, > and executed for nonzero values, but the block is executing even when > $status_a is zero. Can anyone see what I am doing wrong? Is there a > better/easier way to do this? > > Thanks for any help/advice you can provide. > > Best regards, > > Gene L. Harding, PE > Associate Professor of ECET > 574-520-4190 > > _______________________________________________ LON-CAPA-users mailing list LON-CAPA-users at mail.lon-capa.org http://mail.lon-capa.org/mailman/listinfo/lon-capa-users From glhardin at purdue.edu Sat May 12 11:08:19 2018 From: glhardin at purdue.edu (Harding, Gene L) Date: Sat, 12 May 2018 15:08:19 +0000 Subject: [LON-CAPA-users] Plot Response Question Message-ID: <4024212edb0c48c28624e7b5b83f9cf3@wppexc10.purdue.lcl> Hi, I am trying to code a plot response problem in which the student task is to plot six vectors on a frequency spectrum display. I would like to give 1/6 credit for each vector that is plotted correctly. I am new to using Geogebra in this fashion. I first tried using the LON-CAPA plot response approach, but was not successful in getting the partial credit assignment to work. I then moved to the embedded applet approach described in the 2014 online video. I tried to create six problem parts, each graded separately, but Geogebra seems to limit me to one problem part per plot. Then I tried making everything one problem part with multiple numeric responses, but LON-CAPA seems to want an all-or-nothing answer; no partial credit. I tried computing the total score and "return"ing it in ASSIGNED_SCORE like a custom response problem, but could not get that to work. Then I tried adding a custom response to the end of the problem part to return ASSIGNED_SCORE, but now the response is always "Some items were not submitted" instead of "Correct" or "...partially correct." I was trying to avoid using a custom response because the author guide says "this response type is generally discouraged," but have not been able to figure out a way so far. Do I need to just do a custom response, or is there a way to code this without that approach? Is there a way to have multiple problem parts on a single Geogebra plot? I think I am really close to getting this problem to work, but cannot quite get all of the pieces to work together nicely. Thank you for any help/advice you can provide. Best regards, Gene L. Harding, PE Associate Professor of ECET 574-520-4190 -------------- next part -------------- An HTML attachment was scrubbed... URL: From glhardin at purdue.edu Fri May 18 17:54:22 2018 From: glhardin at purdue.edu (Harding, Gene L) Date: Fri, 18 May 2018 21:54:22 +0000 Subject: [LON-CAPA-users] Custom Response Partial Credit Message-ID: <9c6932e55ccc46978a29aa3f5c7defa4@wppexc10.purdue.lcl> Hi, I rewrote the problem I have been working on so that it is now a custom response, but am having trouble getting it to properly grade the problem submission. This is the code for grading inside the answer block: if ($total_score == 1) { return 'EXACT_ANS'; } elsif ($total_score > 0) { return ('ASSIGNED_SCORE',$total_score); } else { return 'INCORRECT'; } return ('ASSIGNED_SCORE',$total_score); I have tried it with and without the second return statement, but either way the Correct/Partially Correct/Incorrect grading seems almost random. $total_score is computed in a perl script higher up in the program, and I am outputting it to verify that it is being computed correctly. I also have a retrypartial parameter at the top of the program because I want the students to be able to take three tries at it on the practice version: Can anyone see what I am doing wrong? Thanks for any help/advice you can provide. Best regards, Gene L. Harding, PE Associate Professor of ECET 574-520-4190 -------------- next part -------------- An HTML attachment was scrubbed... URL: From bond13 at purdue.edu Fri May 18 19:44:42 2018 From: bond13 at purdue.edu (Jacob Bond) Date: Fri, 18 May 2018 23:44:42 +0000 Subject: [LON-CAPA-users] Custom Response Partial Credit In-Reply-To: <9c6932e55ccc46978a29aa3f5c7defa4@wppexc10.purdue.lcl> References: <9c6932e55ccc46978a29aa3f5c7defa4@wppexc10.purdue.lcl> Message-ID: Hi Gene, You're right that the last return statement shouldn't be there. Also, there is a subtlety about returning 'INCORRECT' in a partial credit problem. If a student submits an answer that gets 1/2 credit, then changes it to an answer that gets 0 credit, returning 'INCORRECT' will leave the student with 1/2 credit. Perhaps this is what you want, but if not, if ($total_score == 1) {return 'EXACT_ANS';} else {return ('ASSIGNED_SCORE', $total_score);} will suffice (if you know $total_score is between 0 and 1, inclusive). (Also, it's possible that you can forget about the if statement entirely, in case LON-CAPA knows that ('ASSIGNED_SCORE', 1) is the same as 'EXACT_ANS', but I've never bothered testing this.) As for the real issue, it's tough to say what might be going wrong without seeing the rest of the code, but you might try computing $total_score locally in the answer block and see if that fixes anything. If you want to check what credit the student has received, this will set $partial_credit to what credit the student has received, or 0 if the student hasn't attempted the problem yet (ID should be replaced by the part ID of the problem part): $partial_credit = &stored_data('awarded', ID) ? &stored_data('awarded', ID) : 0.0; Best, Jacob ________________________________ From: LON-CAPA-users on behalf of Harding, Gene L Sent: Friday, May 18, 2018 5:54:22 PM To: Discussion list for LON-CAPA users Subject: [LON-CAPA-users] Custom Response Partial Credit Hi, I rewrote the problem I have been working on so that it is now a custom response, but am having trouble getting it to properly grade the problem submission. This is the code for grading inside the answer block: if ($total_score == 1) { return 'EXACT_ANS'; } elsif ($total_score > 0) { return ('ASSIGNED_SCORE',$total_score); } else { return 'INCORRECT'; } return ('ASSIGNED_SCORE',$total_score); I have tried it with and without the second return statement, but either way the Correct/Partially Correct/Incorrect grading seems almost random. $total_score is computed in a perl script higher up in the program, and I am outputting it to verify that it is being computed correctly. I also have a retrypartial parameter at the top of the program because I want the students to be able to take three tries at it on the practice version: Can anyone see what I am doing wrong? Thanks for any help/advice you can provide. Best regards, Gene L. Harding, PE Associate Professor of ECET 574-520-4190 -------------- next part -------------- An HTML attachment was scrubbed... URL: From glhardin at purdue.edu Fri May 18 22:27:33 2018 From: glhardin at purdue.edu (Harding, Gene L) Date: Sat, 19 May 2018 02:27:33 +0000 Subject: [LON-CAPA-users] Custom Response Partial Credit In-Reply-To: References: <9c6932e55ccc46978a29aa3f5c7defa4@wppexc10.purdue.lcl> Message-ID: <416786f7879548ab9146f9bf2a2b2e57@wppexc10.purdue.lcl> Hi Jacob, Thank you. I have managed to get it to respond correctly (red incorrect of total_score==0, tan partial credit if 0 On Behalf Of Jacob Bond Sent: Friday, May 18, 2018 7:45 PM To: Discussion list for LON-CAPA users Subject: Re: [LON-CAPA-users] Custom Response Partial Credit Hi Gene, You're right that the last return statement shouldn't be there. Also, there is a subtlety about returning 'INCORRECT' in a partial credit problem. If a student submits an answer that gets 1/2 credit, then changes it to an answer that gets 0 credit, returning 'INCORRECT' will leave the student with 1/2 credit. Perhaps this is what you want, but if not, if ($total_score == 1) {return 'EXACT_ANS';} else {return ('ASSIGNED_SCORE', $total_score);} will suffice (if you know $total_score is between 0 and 1, inclusive). (Also, it's possible that you can forget about the if statement entirely, in case LON-CAPA knows that ('ASSIGNED_SCORE', 1) is the same as 'EXACT_ANS', but I've never bothered testing this.) As for the real issue, it's tough to say what might be going wrong without seeing the rest of the code, but you might try computing $total_score locally in the answer block and see if that fixes anything. If you want to check what credit the student has received, this will set $partial_credit to what credit the student has received, or 0 if the student hasn't attempted the problem yet (ID should be replaced by the part ID of the problem part): $partial_credit = &stored_data('awarded', ID) ? &stored_data('awarded', ID) : 0.0; Best, Jacob ________________________________ From: LON-CAPA-users > on behalf of Harding, Gene L > Sent: Friday, May 18, 2018 5:54:22 PM To: Discussion list for LON-CAPA users Subject: [LON-CAPA-users] Custom Response Partial Credit Hi, I rewrote the problem I have been working on so that it is now a custom response, but am having trouble getting it to properly grade the problem submission. This is the code for grading inside the answer block: if ($total_score == 1) { return 'EXACT_ANS'; } elsif ($total_score > 0) { return ('ASSIGNED_SCORE',$total_score); } else { return 'INCORRECT'; } return ('ASSIGNED_SCORE',$total_score); I have tried it with and without the second return statement, but either way the Correct/Partially Correct/Incorrect grading seems almost random. $total_score is computed in a perl script higher up in the program, and I am outputting it to verify that it is being computed correctly. I also have a retrypartial parameter at the top of the program because I want the students to be able to take three tries at it on the practice version: Can anyone see what I am doing wrong? Thanks for any help/advice you can provide. Best regards, Gene L. Harding, PE Associate Professor of ECET 574-520-4190 -------------- next part -------------- An HTML attachment was scrubbed... URL: From bond13 at purdue.edu Sat May 19 00:13:22 2018 From: bond13 at purdue.edu (Jacob Bond) Date: Sat, 19 May 2018 04:13:22 +0000 Subject: [LON-CAPA-users] Custom Response Partial Credit In-Reply-To: <416786f7879548ab9146f9bf2a2b2e57@wppexc10.purdue.lcl> References: <9c6932e55ccc46978a29aa3f5c7defa4@wppexc10.purdue.lcl> , <416786f7879548ab9146f9bf2a2b2e57@wppexc10.purdue.lcl> Message-ID: Hi Gene, It looks like stored_data('tries', ID) should get you what you want. Best, Jacob ________________________________ From: LON-CAPA-users on behalf of Harding, Gene L Sent: Friday, May 18, 2018 10:27:33 PM To: Discussion list for LON-CAPA users Subject: Re: [LON-CAPA-users] Custom Response Partial Credit Hi Jacob, Thank you. I have managed to get it to respond correctly (red incorrect of total_score==0, tan partial credit if 0 On Behalf Of Jacob Bond Sent: Friday, May 18, 2018 7:45 PM To: Discussion list for LON-CAPA users Subject: Re: [LON-CAPA-users] Custom Response Partial Credit Hi Gene, You're right that the last return statement shouldn't be there. Also, there is a subtlety about returning 'INCORRECT' in a partial credit problem. If a student submits an answer that gets 1/2 credit, then changes it to an answer that gets 0 credit, returning 'INCORRECT' will leave the student with 1/2 credit. Perhaps this is what you want, but if not, if ($total_score == 1) {return 'EXACT_ANS';} else {return ('ASSIGNED_SCORE', $total_score);} will suffice (if you know $total_score is between 0 and 1, inclusive). (Also, it's possible that you can forget about the if statement entirely, in case LON-CAPA knows that ('ASSIGNED_SCORE', 1) is the same as 'EXACT_ANS', but I've never bothered testing this.) As for the real issue, it's tough to say what might be going wrong without seeing the rest of the code, but you might try computing $total_score locally in the answer block and see if that fixes anything. If you want to check what credit the student has received, this will set $partial_credit to what credit the student has received, or 0 if the student hasn't attempted the problem yet (ID should be replaced by the part ID of the problem part): $partial_credit = &stored_data('awarded', ID) ? &stored_data('awarded', ID) : 0.0; Best, Jacob ________________________________ From: LON-CAPA-users > on behalf of Harding, Gene L > Sent: Friday, May 18, 2018 5:54:22 PM To: Discussion list for LON-CAPA users Subject: [LON-CAPA-users] Custom Response Partial Credit Hi, I rewrote the problem I have been working on so that it is now a custom response, but am having trouble getting it to properly grade the problem submission. This is the code for grading inside the answer block: if ($total_score == 1) { return 'EXACT_ANS'; } elsif ($total_score > 0) { return ('ASSIGNED_SCORE',$total_score); } else { return 'INCORRECT'; } return ('ASSIGNED_SCORE',$total_score); I have tried it with and without the second return statement, but either way the Correct/Partially Correct/Incorrect grading seems almost random. $total_score is computed in a perl script higher up in the program, and I am outputting it to verify that it is being computed correctly. I also have a retrypartial parameter at the top of the program because I want the students to be able to take three tries at it on the practice version: Can anyone see what I am doing wrong? Thanks for any help/advice you can provide. Best regards, Gene L. Harding, PE Associate Professor of ECET 574-520-4190 -------------- next part -------------- An HTML attachment was scrubbed... URL: