Re: two cards that open randomly
Posted: Tue May 01, 2012 8:39 am
HJay,
I'm glad you're bearing up well under all my questions. From the point of view of a programmer, computers are basically "stupid," i.e., they will only do exactly what you tell them to do. So it really pays to figure out exactly what you want (or more precisely what you need) to happen, in advance of doing the actual programming. Otherwise you find yourself needlessly rewriting parts of your program as you realize that you need this or that to happen at some point.
I think we're very close to starting the review what you've already coded to see what else needs to be revised or added. I believe that you've already finished the bulk of the program -- but we still have some work ahead.
The only outstanding question I have at this point relates to the recording and ultimately reporting of the students right and wrong answers. Because you want to record all the answers, you need code for this right from the very first card displayed. So it needs to be decided now.
I can think of multiple ways to record and print the results. The simplest, and to my mind, probably the least useful, would be to literally record and print the exact series of numbers shown and which number was chosen:
4 - 6 or 4 - Correct
7 - 7 or 3 - Correct
5 - 6 or 5 - Wrong
etc.
There could be a summary at the end, which could be broken up by each digit, or just an overall percentage of correct/incorrect answers
Perhaps a step up would be to sort the numbers beforehand:
0 - 0 or 2 - Correct
0 - 3 or 0 - Correct
0 - 5 or 0 - Correct
.
.
.
9 - 3 or 9 - Wrong
9 - 9 or 8 - Correct
Again followed by a summary.
If you don't need to see the exact sequence of numbers displayed, you could do a ten by ten grid (0 to 9 on both top and side), and at the intersections display the percentage correct for that combination.
Obviously, the next step up from here would be to show a graph of the results. Off hand, I can't think of any built-in commands for LiveCode that would aid in displaying a graph, so a graph might get a little tricky to code (although I'm sure it could be done). It's something that would need to be researched -- to see if someone else has already done it, in hopes that we could beg, borrow, or steal the code. (Smile.)
You should also decide if some way needs to be provided to enter the student's name on the print-out -- and perhaps the date and time, as well. (Or maybe some blank lines could be added, where the name and other info could be handwritten on the print-out.)
As soon as you settle on what you need in the way of reports, the final work can begin on your program.
I'm glad you're bearing up well under all my questions. From the point of view of a programmer, computers are basically "stupid," i.e., they will only do exactly what you tell them to do. So it really pays to figure out exactly what you want (or more precisely what you need) to happen, in advance of doing the actual programming. Otherwise you find yourself needlessly rewriting parts of your program as you realize that you need this or that to happen at some point.
I think we're very close to starting the review what you've already coded to see what else needs to be revised or added. I believe that you've already finished the bulk of the program -- but we still have some work ahead.
The only outstanding question I have at this point relates to the recording and ultimately reporting of the students right and wrong answers. Because you want to record all the answers, you need code for this right from the very first card displayed. So it needs to be decided now.
I can think of multiple ways to record and print the results. The simplest, and to my mind, probably the least useful, would be to literally record and print the exact series of numbers shown and which number was chosen:
4 - 6 or 4 - Correct
7 - 7 or 3 - Correct
5 - 6 or 5 - Wrong
etc.
There could be a summary at the end, which could be broken up by each digit, or just an overall percentage of correct/incorrect answers
Perhaps a step up would be to sort the numbers beforehand:
0 - 0 or 2 - Correct
0 - 3 or 0 - Correct
0 - 5 or 0 - Correct
.
.
.
9 - 3 or 9 - Wrong
9 - 9 or 8 - Correct
Again followed by a summary.
If you don't need to see the exact sequence of numbers displayed, you could do a ten by ten grid (0 to 9 on both top and side), and at the intersections display the percentage correct for that combination.
Obviously, the next step up from here would be to show a graph of the results. Off hand, I can't think of any built-in commands for LiveCode that would aid in displaying a graph, so a graph might get a little tricky to code (although I'm sure it could be done). It's something that would need to be researched -- to see if someone else has already done it, in hopes that we could beg, borrow, or steal the code. (Smile.)
You should also decide if some way needs to be provided to enter the student's name on the print-out -- and perhaps the date and time, as well. (Or maybe some blank lines could be added, where the name and other info could be handwritten on the print-out.)
As soon as you settle on what you need in the way of reports, the final work can begin on your program.