Posted: Wed May 12, 2004 4:17 pm Post subject: (No subject)
delos...here is the data.t it has TFTFTF as the correct answer...and then each student id and his own TFTF answer and i must match student id answer with the main TFTFTF answer.. like what the question asks.
Posted: Wed May 12, 2004 6:07 pm Post subject: (No subject)
Come on guys, I really need help...:0
Thanks
Egyptian Mafia
Posted: Wed May 12, 2004 7:25 pm Post subject: (No subject)
Ok, I got it to work...I need help on the last part. Come on guys, just the last part. Here is the last part.
The grade should be determined as follows : if the score is equal to Best or Best-1 give A if it is Best-2 give B and Best-3 give C otherwise F. Modify he test scoring program to allow for multiple choice questions having A through E. Compute the average number of correct answers, the range of scores Largest number to smallest number correct and the average grades assigned. A=4.0 C=2.0 and F=0.0
Thanks a lot guys Proggies are attached once again.
Posted: Wed May 12, 2004 8:18 pm Post subject: (No subject)
You will need to do this:
- store all scores in an array
- sort the array in descending order (Bubble Sort will be easiest)
- then, match the ID #s with their scores with the sorted score list, and from there assign a ranking.
- to convert to ABCDE, just add extra conditions instead of just TF...but then looking at the way you've set up your checking, it won't be as difficult...good job there.
Egyptian Mafia
Posted: Wed May 12, 2004 9:35 pm Post subject: (No subject)
Delos, remember...you are talking to a dumb person when it comes to turing. Could you please should be codes like before.
Thanks.
Delos
Posted: Thu May 13, 2004 4:43 pm Post subject: (No subject)
Let's see...
"store all scores in an array"
- that cannot be at all difficult...use ':='...
"sort the array..."
- the Bubble Sort is very basic...you may already have learnt it...
This will explain it well.
"then, match the ID..."
- just use if's...
[pseudocode]
if ID1's score = topScore then
ID1's grade := 'A'
[/pseudocode]