APU is going to organize an election of a new president for student representative council. Write a program (a voting machine) to handle the election. The program should add each candidate to the system as he or she is nominated. After the nomination process is completed, students should be able to approach the computer one at a time and select on the candidate of their choice. Each student is only allowed to vote for 1 candidate with their ID number. If the ID number is found, an appropriate message should be displayed to inform the student that they are not allowed to vote the second time.
When the voting process is finish, the number of votes received by each candidate should be displayed in a bar chart. Also, the name of the candidate with the highest number of votes should be displayed as the winner.
What I have tried:
i have to do this program without database and sql server. actually the lecturer wants me to it using arrays. i used listbox to add the candidates lstcandidate.Items.Add(txtname.Text)
but apart from this im clueless of how to conduct the voting procedure. can someone help.