Hi, im working on a Computing A Level project, it involves making a virtual Ballot Box.
One of the things the Ballot Box is required to do is to choose the winner by determining which candidate has received the highest number of votes.
Has anyone got ANY IDEA how i could do this? Im unbelievably stuck!?
Im writing it as a VB console application, here is how im storing the total votes for each candidate:
' Candidate Array
Dim total_cand As Integer
Dim Candidate(2, 10) As String
The 1st dimension of the array stores the Candidates name, and the 2nd stores the total votes they have received.
Any help would be greatly appreciated! :)