]Console.WriteLine("Total Hours : " & workerstotalhours = workershours(workersnumber, 0) + workershours(workersnumber, 1) + workershours(workersnumber, 2) + workershours(workersnumber, 3) + workershours(workersnumber, 4))
If workerstotalhours >= "44" Then
workerstotalhours = workerstotalhours * 15.66
If workerstotalhours >= "64" Then
MsgBox("You Have Overworked This Week")
Console.WriteLine(" Gross Income: £" & workerstotalhours & vbTab & " Tax: £")
Console.WriteLine("National Insurance: £" & vbTab & "Net Pay: £")
Else
Console.WriteLine(" Gross Income: £" & workerstotalhours & vbTab & " Tax: £")
Console.WriteLine("National Insurance: £" & vbTab & "Net Pay: £")
End If
ElseIf workerstotalhours <= "43" Or workerstotalhours >= "37" Then
workerstotalhours = workerstotalhours * 10.32
Console.WriteLine(" Gross Income: £" & workerstotalhours & vbTab & " Tax: £")
Console.WriteLine("National Insurance: £" & vbTab & "Net Pay: £")
ElseIf workerstotalhours <= "36" Then
workerstotalhours = workerstotalhours * 7.45
Console.WriteLine(" Gross Income: £" & workerstotalhours & vbTab & " Tax: £")
Console.WriteLine("National Insurance: £" & vbTab & "Net Pay: £")
Else
Console.WriteLine("*****Problem With Payment*****")
End If[/color]
The first piece of code is to work out the amount of hours that has been done and then to put it in to the variable workers total hours, but because its a multi dimensional array it wont allow me to do the sums that are in the second bit of code, I would be very happy if someone could help me, (all the dims are there just didn't copy and paste them)
This post has been edited by slymatt: 16 February 2011 - 01:07 PM

New Topic/Question
Reply




MultiQuote




|