Created
October 15, 2013 17:17
-
-
Save warham2012/6995160 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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