Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

Exercise #2

Public Class Form1


Dim Hours As Decimal
Dim Rate As Decimal

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)


Handles Button1.Click
Hours = TextBoxNum1.Text
Rate = TextBoxNum2.Text
Label4.Text = Hours * Rate
If RadioButton1.Checked Then
Label4.Text = Hours * Rate
Label5.Text = "EXEMPT FROM TAXES"
ElseIf RadioButton2.Checked Then
Label4.Text = (Hours * Rate) - ((Hours * Rate) * 0.18)
End If
End Sub
End Class

You might also like