Академический Документы
Профессиональный Документы
Культура Документы
Console.WriteLine("The Child is regsitered with id " & Cid(x) & " with the
age is" & age(x) & " And The Name of a child is " & Name(x))
x = x + 1
Id = Id + 1
Next count
Do
For R = 0 To 19
REGISTERID(R) = 0
Next
Do
End If
Console.WriteLine("Do you want to add more participant y/n")
check = Console.ReadLine
Loop Until check = "n"
For time = 0 To 19
If REGISTERID(time) <> 0 Then
Console.WriteLine("enter start hour")
shour = Console.ReadLine
Console.WriteLine("enter start minute")
smin = Console.ReadLine
Console.WriteLine("enter start second")
ssec = Console.ReadLine
sduration = (shour * 3600) + (smin * 60) + ssec
Console.WriteLine("enter finish hour")
fhour = Console.ReadLine
Console.WriteLine("enter finsih minute")
fmin = Console.ReadLine
Console.WriteLine("enter finish second")
fsec = Console.ReadLine
fduration = (fhour * 3600) + (fmin * 60) + fsec
duration = fduration - sduration
If duration > Pb(time) Then Pb(time) = duration
noofruns(time) = noofruns(time) + 1
End If
Next
End If
If age(run) >= 4 And age(run) <= 6 Then
If Pb(run) > fast4 Then
fast4 = Pb(run)
n4 = Name(run)
End If
ElseIf age(run) >= 7 And age(run) <= 10 Then
If Pb(run) > fast7 Then
fast7 = Pb(run)
n7 = Name(run)
End If
End If
Next
Console.WriteLine("the fastest child in the category of 4 to 6 is" & n4 & "And
His Time is " & fast4)
Console.WriteLine("the fastest child in the category of 7 to 10 is" & n7 & "And
His Time is " & fast7)
Console.WriteLine("the fastest child in the category of 11 to 14 is" & n11 & "And
His Time is " & fast11)
Console.ReadKey()
End Sub