You are on page 1of 1

'Project Name:

'Purpose:
'Created by:

Hours projected for College classes and assignments


Demonstrate the use of a assignment statement
Penny Rodgers 11/30/2014

Option Explicit On
Option Strict On
Option Infer Off
Public Class mainForm
Private Sub Button2_Click(sender As Object, e As EventArgs) Handles extButton.Click
Close()
End Sub

Private Sub calButton_Click(sender As Object, e As EventArgs) Handles calButton.Click


'declare variable
Dim classes, assighn As Integer
'conversion of data tyoe
Integer.TryParse(numClassesTextBox.Text, classes)
Integer.TryParse(numAssignTextBox.Text, assighn)
'calculations
classes = (assighn * 2) + (classes * 3)
'displays a message of the end result
classesLabel.Text = "You can plan for up to " &
classes.ToString("") & "Hrs of study time this week."
End Sub
Private Sub mainForm_Load(sender As Object, e As EventArgs) Handles MyBase.Load
End Sub

End Class

You might also like