Dim LastMax as Integer = 30
Dim FVoteCount(4) as Integer
Console.WriteLine("Input number of candidates 2-4")
Console.WriteLine("Invalid number of candidates, please enter again")
Console.WriteLine("Input Candidate Name " & " " & i)
Name = Console.ReadLine()
Console.WriteLine("Input number of students in class, more than number of candidates and less than 30")
NClass = Console.ReadLine()
Do Until NClass <= 30 AND NClass > C
Console.WriteLine("Invalid, input number of students in class again")
NClass = Console.ReadLine()
Console.WriteLine("Enter candidate number to vote")
temp = Console.ReadLine()
Do Until temp <= C AND temp >= 1
Console.WriteLine("Invalid, input vote again")
temp = Console.ReadLine()
VCount(temp) = VCount(temp) + 1
For k as integer = 1 To C
If VCount(m) > Max And VCount(m) < LastMax Then
Elseif VCount(m) = Max and VCount(m) = 0 then
Console.WriteLine(FName(o) & ": " & FVoteCount(o))
If FVoteCount(0) = FVoteCount(1) then
Console.WriteLine("No Overall Winner")
Console.WriteLine("New Captain: " & FName(1))