Jump to content

a grading system

- - - - -

  • Please log in to reply
5 replies to this topic

#1
elizabethmwashuma

elizabethmwashuma

    Newbie

  • Members
  • PipPip
  • 29 posts
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.

#2
CommittedC0der

CommittedC0der

    Speaks fluent binary

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,565 posts
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 = A
Hope 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.

#3
elizabethmwashuma

elizabethmwashuma

    Newbie

  • Members
  • PipPip
  • 29 posts
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
CommittedC0der

CommittedC0der

    Speaks fluent binary

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,565 posts
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:
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.

#5
elizabethmwashuma

elizabethmwashuma

    Newbie

  • Members
  • PipPip
  • 29 posts
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

#6
CommittedC0der

CommittedC0der

    Speaks fluent binary

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,565 posts
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.

Quote

ie like the above code you have given m
how do i save value selected
Im not sure what this means... maybe
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.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users