This document contains code for a project that calculates the projected hours needed for college classes and assignments. The code was created by Penny Rodgers on November 30th, 2014. It declares variables to store the number of classes and assignments, converts the textbox values to integers, performs calculations to determine the total hours based on 2 hours per assignment and 3 hours per class, and displays the results.
This document contains code for a project that calculates the projected hours needed for college classes and assignments. The code was created by Penny Rodgers on November 30th, 2014. It declares variables to store the number of classes and assignments, converts the textbox values to integers, performs calculations to determine the total hours based on 2 hours per assignment and 3 hours per class, and displays the results.
This document contains code for a project that calculates the projected hours needed for college classes and assignments. The code was created by Penny Rodgers on November 30th, 2014. It declares variables to store the number of classes and assignments, converts the textbox values to integers, performs calculations to determine the total hours based on 2 hours per assignment and 3 hours per class, and displays the results.
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