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

Username:   Password: 
 RegisterRegister   
 GUI Quiz Points System Help!
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Newspaper




PostPosted: Sun Jun 03, 2012 12:57 pm   Post subject: GUI Quiz Points System Help!

Hi guys.

I am making a quiz for my final project which has 3 difficulties. I am using GUI. Each time a response is selected (A,B,C or D) it displays a message saying weather it was right or wrong. What I am having trouble with is getting the points tallied up because each time you get it wrong you lose a point from your total available points of 3 per question. There are 10 questions per difficulty. The wrong or right is in an if statement

E.g

if blah blah then
wrong
avPoints := avPoints - 1
elsif
correct
totalpoints := avPoints + totalPoints
etc.

I was wondering how I would get that to add up once it is correct and then add that to each question untill a grand total out of 30 is accumulated.

Thanks
Sponsor
Sponsor
Sponsor
sponsor
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 1 of 1  [ 1 Posts ]
Jump to:   


Style:  
Search: