Sub TimeIN_TimeOut()
Dim timeIn(4), timeOut(4) As DateTime
Dim days As String() = {"Monday", "Tuesday", "Wednesday", "Thursday", "Friday"}
Dim totalHours, subTotal(4) As Double
For x As Integer = 0 To 4
WriteLine()
Write("Enter Time-In for {0}:", days(x))
timeIn(x) = ReadLine()
Write("Enter Time-Out for {0}:", days(x))
timeOut(x) = ReadLine()
subTotal(x) += timeOut(x).Subtract(timeIn(x)).TotalHours
totalHours += subTotal(x)
Next
WriteLine()
WriteLine()
WriteLine("__________________________________________________")
WriteLine("Total work Hours from {0} to {1}:{2}", days(0), days(4), totalHours)
End Sub