Page 1 of 1

hi, how do you count the score for a quiz?

Posted: Sun Jan 15, 2006 11:32 am
by Anonymous
I have to make a quiz using turing... I'm new to this stuff so I'm just wondering on how you could know the score for that quiz... I would be so grateful if you could help me...

Thanks.

Archived topic from Iceteks, old topic ID:4096, old post ID:33596

hi, how do you count the score for a quiz?

Posted: Mon Jan 16, 2006 12:40 pm
by Death
Just make a counter. Set a condition where if the answer is correct you add 1 to the counter and if the answer is wrong, don't add anything to the counter:

if answer = true then
counter:= counter + 1
elsif answer = false then
counter:= counter + 0
end if

Do that for each question and at the end, just display the counter to show how many questions you got right. That counter:= counter + 0 part isn't necessary, I just added that to show that nothing needs to go in that condition seeing as counter:= counter + 0 does not change anything.

Archived topic from Iceteks, old topic ID:4096, old post ID:33607

hi, how do you count the score for a quiz?

Posted: Mon Jan 16, 2006 5:23 pm
by Anonymous
oh thanks so much!

Archived topic from Iceteks, old topic ID:4096, old post ID:33611