
July 30th, 2003, 10:30 AM
|
|
Junior Member
|
|
Join Date: Jul 2003
Location: Maryland
Posts: 3
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
Coding
Private Sub btnComputegrade_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnComputegrade.Click
If (txtTestscore.Text >= 100) Then
txtFinalgrade.Text = 100
ElseIf (txtTestscore.Text >= 90) Then
txtFinalgrade.Text = 90
ElseIf (txtTestscore.Text >= 80) Then
txtFinalgrade.Text = 80
ElseIf (txtTestscore.Text >= 70) Then
txtFinalgrade.Text = 70
Else
txtFinalgrade.Text = 60
End If
End Sub
This is the code that I have for my compute button. I need a code that would allow someone to put in test scores (numberic box) and then go to 2 group boxes for extra credit and choose one category for pts. none, average (3 pts), above average (5 pts). on time, 1 to 2 days late (-5 pts) 2 or more days late (automatic score of 0 to final grade). Then they would click on the compute button which the code is above and it would give final grade. Running into a problem or what to put for pts or no grade at all. Please help, have to turn this project in my saturday and also when I hit the reset button instead of resetting test scores and so on it resets the actual name of the labels. Don't know where I went wrong on that either.
|