Solved

Posted on 2004-11-22
Medium Priority
234 Views
I have an input of a numericupdowncontrol and two of groupsof radiobuttons:
And my output grade is(textbox)(button Compute)
A=> 90
B =[80..89]
C =[70..79]
D =[60..69]
F =[0..59]
I can calculate the first group of radio buttons usingt if and then button click procedure but cant add the second group of radio buttonsto the final answer.also the grade  how do you code if final grade = 80..89 then etc. thanks i  i really appreciate your help
0
Question by:Barako2
• 8
• 4

LVL 6

Expert Comment

ID: 12648958
0

LVL 86

Expert Comment

ID: 12649102
Yes...since this is definitely a homework assignment we need to see what work you have done already.

~IM
0

Author Comment

ID: 12649191
Button click Event
i can calculate it using atextbox as an input but dont know a numeric up down control
Test Score = TextBox1.Text
If radio Button1 checked = True Then
If RadioButton2 checked = True Then
If RadioButton3 checked = True Then
I think this is wrong

0

LVL 6

Accepted Solution

platinumbay earned 2000 total points
ID: 12649872
Is this what you are trying to do?

End If
End If
End If
End If
'etc...

Case Is >= 90
Case Is >= 80
Case Is >= 70
Case Is >= 60
Case Else
End Select
End Function
0

Author Comment

ID: 12650470
yeah somewhat like that but i cant add the other group of radio buttons by the way i forgot the labels
Extra credit
None = 0 points
Average = 3 points
Above average = 5 points
Penalties
On Time= 0 penalty
2 days late= 5 point penalty
0

LVL 6

Expert Comment

ID: 12651166
What do you mean you can't add the other group of radio buttons?
0

Author Comment

ID: 12651276
since each group of radio buttons is in a group box.
Tips:Declare global variables by placingthe Dim statement outside all methods
*gdbExtraCredit: to remember how much extra-credit should be given
*gdbLate: remember how much late penalty should be taken off depending on wheteher its on time, 1-2 days late or more than 2 days late
*For each radio button, code a sub that handles the checkedchanged event
for example:
Private sub
gdblate = -5
>Use a group of radiobutton controls to determine the grade on extra credit
>Use a second group of radio buttons to determine whether a student handed in the assignment on time with the default on time . the other choices are 1-2 days late (5 point penalty)
and more than 2 days late( automatic score of zero)
> display the final total grade in a read-only textbox control. Use global variables to keep track of which radio button control is checked before determining the final grade.

0

Author Comment

ID: 12651843
When i debug the program i cant select aradio button in the second group
0

LVL 6

Expert Comment

ID: 12651896
Can you show us your code?  It is hard to guess what your project looks like.  Does the second group have a different name from the first group?
0

Author Comment

ID: 12651991
i tried your code its the same thing. Yes groupbox1 and groupbox2
0

Author Comment

ID: 12652009
If you want ill e-mail you the user interface so you can see how it works
0

Author Comment

ID: 12652180
Thanks i Finally figured it out
0

Author Comment

ID: 12652186
There was extra code thats why the second group of buttonscant be accessed. Thank you very much platinumBay . Ill accept your answer.
0

## Featured Post

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's aâ€¦
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.