Public Class Form1 Private Sub Button1_Click(ByVal sender As - TopicsExpress



          

Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim IncentivePay As Double Dim GrossPay As Double Dim BasicPay As Double Dim RegularPayRate As Double Dim IncentivePayRate As Double ListBox1.Items.Add(EC.Text) ListBox1.Items.Add(EN.Text) If RB1.Checked = True Then ListBox1.Items.Add("Shift: Morning") ListBox1.Items.Add("120.50") RegularPayRate = 120.5 BasicPay = Val(HW.Text) * RegularPayRate ListBox1.Items.Add("Basic Pay") ListBox1.Items.Add(BasicPay) If Val(HW.Text) < 50 Then IncentivePayRate = 0 IncentivePay = IncentivePayRate * Val(HW.Text) ElseIf Val(HW.Text) >= 50 And Val(HW.Text) = 60 And Val(HW.Text) 69 Then IncentivePayRate = 0.75 * RegularPayRate IncentivePay = IncentivePayRate * Val(HW.Text) ListBox1.Items.Add("IncentivePayRate") ListBox1.Items.Add(IncentivePay) ListBox1.Items.Add("GrossPay") GrossPay = Val(HW.Text) + IncentivePay ListBox1.Items.Add(GrossPay) End If End If If RB2.Checked = True Then ListBox1.Items.Add("Shift: Midday") ListBox1.Items.Add("110.75") RegularPayRate = 110.75 BasicPay = Val(HW.Text) * RegularPayRate ListBox1.Items.Add(BasicPay) If Val(HW.Text) < 50 Then IncentivePayRate = 0 IncentivePay = IncentivePayRate * Val(HW.Text) ListBox1.Items.Add("IncentivePayRate") ListBox1.Items.Add(IncentivePay) ElseIf Val(HW.Text) >= 50 And Val(HW.Text) = 60 And Val(HW.Text) 69 Then IncentivePayRate = 0.75 * RegularPayRate IncentivePay = IncentivePayRate * Val(HW.Text) ListBox1.Items.Add("IncentivePayRate") ListBox1.Items.Add(IncentivePay) GrossPay = Val(HW.Text) + IncentivePay ListBox1.Items.Add("GrossPay") ListBox1.Items.Add(GrossPay) End If End If If RB3.Checked = True Then ListBox1.Items.Add("Shift: Night") ListBox1.Items.Add("130.50") RegularPayRate = 110.75 BasicPay = Val(HW.Text) * RegularPayRate ListBox1.Items.Add(BasicPay) If Val(HW.Text) < 50 Then IncentivePayRate = 0 IncentivePay = IncentivePayRate * Val(HW.Text) ListBox1.Items.Add("IncentivePayRate") ListBox1.Items.Add(IncentivePay) ElseIf Val(HW.Text) >= 50 And Val(HW.Text) = 60 And Val(HW.Text) 69 Then IncentivePayRate = 0.75 * RegularPayRate IncentivePay = IncentivePayRate * Val(HW.Text) ListBox1.Items.Add("IncentivePayRate") ListBox1.Items.Add(IncentivePay) End If ListBox1.Items.Add("GrossPay") GrossPay = Val(HW.Text) + IncentivePay ListBox1.Items.Add(GrossPay) End If End Sub Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click EC.Clear() EN.Clear() HW.Clear() ListBox1.Items.Clear() RB1.Checked = False RB2.Checked = False RB3.Checked = False End Sub Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click MessageBox.Show("GoodBye!") End End Sub End Class
Posted on: Tue, 09 Jul 2013 01:20:36 +0000

Trending Topics



Recently Viewed Topics




© 2015