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

Username:   Password: 
 RegisterRegister   
 School Violence Survey
Index -> Programming, Turing -> Turing Submissions
View previous topic Printable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
didsbub




PostPosted: Fri Dec 09, 2005 10:40 am   Post subject: School Violence Survey

A violence in schools survey for grade 10 computers


Violence In Schools Survey.t
 Description:

Download
 Filename:  Violence In Schools Survey.t
 Filesize:  10.29 KB
 Downloaded:  217 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Fri Dec 09, 2005 10:57 am   Post subject: (No subject)

I can't view statistics before filling out my answers, it just crashes.

And once I pick an choice, I can't change it Confused
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
didsbub




PostPosted: Fri Dec 09, 2005 12:28 pm   Post subject: (No subject)

The point of this program is for a bunch of people to take the survey before viewing the statistics. I disabled the buttons so you could only answer each question once.
sylvester-27




PostPosted: Fri Dec 09, 2005 12:47 pm   Post subject: (No subject)

you shouldn't do that. you should put the disable option in comments so they have a choice
didsbub




PostPosted: Fri Dec 09, 2005 12:49 pm   Post subject: (No subject)

Why would I do that???
I only want them to answer each question once
Tony




PostPosted: Fri Dec 09, 2005 12:55 pm   Post subject: (No subject)

what if I've accidentally picked an option, but I really ment to click on another?
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
didsbub




PostPosted: Fri Dec 09, 2005 2:09 pm   Post subject: (No subject)

Good point!!!
nastynika




PostPosted: Tue Dec 13, 2005 10:57 am   Post subject: (No subject)

thats what the reset answers button is for
Sponsor
Sponsor
Sponsor
sponsor
timmytheturtle




PostPosted: Tue Dec 13, 2005 11:00 am   Post subject: (No subject)

then you would have to re-choose all the questions
nastynika




PostPosted: Tue Dec 13, 2005 1:48 pm   Post subject: (No subject)

what are u too lazy that you just cant re-answer 5 questions
didsbub




PostPosted: Tue Dec 13, 2005 4:01 pm   Post subject: (No subject)

You just have to make sure your selecting the right answers, its not that hard. It's either a yes or no
Albrecd




PostPosted: Tue Dec 13, 2005 5:12 pm   Post subject: (No subject)

Sylvester Said:
Quote:
you should put the disable option in comments so they have a choice


Didsbub Replied
Quote:
Why would I do that???
I only want them to answer each question once


If you get rid of the Disable as Sylvester said, the users would still only be able to answer once to each question.
wtd




PostPosted: Sat Dec 17, 2005 7:03 pm   Post subject: (No subject)

code:
var radioButton : array 1 .. 3 of int
var radioButton2 : array 1 .. 3 of int
var radioButton3 : array 1 .. 3 of int
var radioButton4 : array 1 .. 3 of int
var radioButton5 : array 1 .. 3 of int


If you're going to do things this way, why isn't "radioButton" "radioButton1"?

Or, what about using a multi-dimensional array?

code:
var radioButtons : array 1 .. 5, 1 .. 3 of int


Your code could also seriously use some empty lines.

I see things like:

code:
if answer = "yes" then
end if


And I just scratch my head. Why have this?

code:
for cnt : 1 .. 1


What is "cnt"? Is it "count"? If so, what is it counting, and why was it abbreviated?

You have "label1", "label2", etc. Why not have these as an array?

Actually, these variables never get used again, so why bother having them at all?
Display posts from previous:   
   Index -> Programming, Turing -> Turing Submissions
View previous topic Tell A FriendPrintable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 13 Posts ]
Jump to:   


Style:  
Search: