Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 True and False Program
Index -> Programming, Turing -> Turing Help
Goto page Previous  1, 2
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Egyptian Mafia




PostPosted: 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.

Thanks a lot man. Smile Appreciate your help.



data.t
 Description:

Download
 Filename:  data.t
 Filesize:  717 Bytes
 Downloaded:  70 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
Egyptian Mafia




PostPosted: Wed May 12, 2004 6:07 pm   Post subject: (No subject)

Come on guys, I really need help...:0

Thanks Smile
Egyptian Mafia




PostPosted: 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 Smile Proggies are attached once again.



data.t
 Description:

Download
 Filename:  data.t
 Filesize:  291 Bytes
 Downloaded:  75 Time(s)


true+false.t
 Description:

Download
 Filename:  true+false.t
 Filesize:  1.27 KB
 Downloaded:  76 Time(s)

Delos




PostPosted: 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




PostPosted: 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. Smile
Delos




PostPosted: 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]
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 2 of 2  [ 21 Posts ]
Goto page Previous  1, 2
Jump to:   


Style:  
Search: