hello, am trying to create a system that can grade a lecture according to his knowledge of subject, how he handle the class etc.....is there a way this can be implemented into a system...its the normal questionnaires on papers but i wanted to make a system from that...is it possible. also consider each question has about 5 options to choose from...strongly agree,agree,undecided,disagree and strongly disagree.
5 replies to this topic
#1
Posted 30 January 2011 - 04:19 PM
|
|
|
#2
Posted 30 January 2011 - 09:16 PM
Well could you implement a system so each choice gives a certain amount of points depending on how close it is to the answer? Like the correct question gives 5 points, the least correct gives 1 point. Then once the test it over and the points added up grade the test depending on the score. My attempt at Pseudocode(how that crap is that spelled? EDIT: got it! :D) code.
If answer = strongly agree then Score + 5 If answer = agree then Score + 4 If answer = undecided then Score + 3 If answer = disagree then Score + 2 If answer = strongly disagree then Score + 1 If Score > 25 then grade = D If Score > 50 then grade = C If Score > 75 then grade = B If Score > 90 then grade = AHope this helps ~ Committed.
A man can be defined by what he does when no one is looking.
Science is only an educated theory, which we cannot disprove.
Science is only an educated theory, which we cannot disprove.
#3
Posted 30 January 2011 - 09:23 PM
thanks....how do I implement that using radio buttons. and how do i save the value selected to a database so that i can finally grade the instructor...thanks
#4
Posted 30 January 2011 - 09:31 PM
Well I have a suspicion this is a school assignment? We wont do your work for you but we will gladly help you if you have any code.
To nudge you in the right direction:
And somebody else is gonna have to help you with databases thats not my area. ~ Committed. :)
To nudge you in the right direction:
if (radioButton1.Selected == true)[COLOR=green]//this would be the correct answer[/COLOR]
{
Score += 5;
}
else if (raidoButton2.Selected == true)
{
[COLOR=green]//I think you get the idea?[/COLOR]
}
And somebody else is gonna have to help you with databases thats not my area. ~ Committed. :)
A man can be defined by what he does when no one is looking.
Science is only an educated theory, which we cannot disprove.
Science is only an educated theory, which we cannot disprove.
#5
Posted 30 January 2011 - 09:55 PM
thanks...i get the idea...on the final bit of hints...wat if you have 5 qs in a single group box....how do ensure that each qs has a single radio button selected out of 5 radio buttons .....ie like the above code you have given m
how do i save value selected
how do i save value selected
#6
Posted 30 January 2011 - 10:04 PM
Im not sure I clearly understand. Do you mean how do you make sure only one radioButton is selected? The IDE should do this for you automatically.
Im not sure what this means... maybe
Good luck ~ Committed.
Quote
ie like the above code you have given m
how do i save value selected
how do i save value selected
radioButton1.Text?
Good luck ~ Committed.
A man can be defined by what he does when no one is looking.
Science is only an educated theory, which we cannot disprove.
Science is only an educated theory, which we cannot disprove.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account


Back to top









