Question: After you write and compile your source code, test your program by entering the following values in order: Employee 1: 10 Employee 2: 40 Employee

After you write and compile your source code, test your program by entering the following values in order:

Employee 1: 10 After you write and compile your source code, test your program

Employee 2: 40

Employee 3: 20

Employee 4: 15

Employee 5: 10

Employee 6: 30

The output should be like the following:

Employee 1 earned $150.00

Employee 2 earned $600.00

Employee 3 earned $300.00

Employee 4 earned $225.00

Employee 5 earned $150.00

Employee 6 earned $450.00

Total Payroll: $1,875.00

Lost track on how to code the total payroll, much appreciated.

1 Simple Payroll 5 6 Tetal Payroll Et Dear Blic Class Form1 O references 2 Private Sub btnCalculate_Click(sender As Object, e As EventArgs) Handles btnCalculate.click 3 Const decHOURLY_PAY_RATE As Decimal = 15D 4 Const intMAX_SUBSCRIPT As Integer = 5 Dim intCount As Integer Dim decTotal As Decimal 7 Dim dbleHoursArray(intMAX_SUBSCRIPT) As Double 8 Dim dec EmpPay As Decimal 9 MessageBox.Show("Please enter each employee's hours worked.") Csale Payrol 10 Do While intCount

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!