Skip to content

Instantly share code, notes, and snippets.

@warham2012
Created October 15, 2013 17:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save warham2012/6995160 to your computer and use it in GitHub Desktop.
Save warham2012/6995160 to your computer and use it in GitHub Desktop.
Public Class Form1
Dim numericalGrade As Integer = 0
Dim creditHrs As Double = 0
Dim qualPoints As Double = 0
Dim counter As Integer = 0
Public Sub btnRecord_Click(sender As Object, e As EventArgs) Handles btnRecord.Click
totalValues()
End Sub
Public Sub btnCalculate_Click(sender As Object, e As EventArgs) Handles btnCalculate.Click
calculateQualPoints()
End Sub
Public Sub totalValues()
counter += 1
txtNumericalGrade.Text += numericalGrade
txtCreditHrs.Text += creditHrs
End Sub
Public Sub calculateQualPoints()
qualPoints = (numericalGrade * creditHrs) / counter
txtQualPoints.Text = qualPoints
End Sub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment