Hi everyone, I am working on a window that will calculate an average grade from 3 grades typed in by user then display it's appropriate grade letter. This is what I have so far and well it isn't working. Can anyone point me into the right direction as to what I am doing wrong. It is making me nuts :) Right now when I run to app and type in 10 for each grade, it returns 1010 and displays B as the grade.
Thank you to all who can assist me.
Private Sub btnDisplay_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnDisplay.Click Dim dbltotalaverage As Double dbltotalaverage = Val(txtTestscore1.Text + txtTestscore2.Text + txtTestscore3.Text) / 3 lblthree.Text = dbltotalaverage.ToString If dbltotalaverage <= 90 Then txtgrade.Text = "A" ElseIf dbltotalaverage >= 80 Then txtgrade.Text = "B" ElseIf dbltotalaverage >= 70 Then txtgrade.Text = "C" ElseIf dbltotalaverage >= 60 Then txtgrade.Text = "D" Else txtgrade.Text = "F" End If End Sub End Class