OCR town are holding an election with three candidates (A,B and C). An electronic booth will be used to allow people to vote.

Write an algorithm that allows voters to enter neither A,B or C. Keeps track of how many times a candidate has been voted for. As soon as one person has finished voting, allows the next person to vote. At any point allows the official to type in “END” which will print out the number of votes for each candidate and the total numbers of votes overall.