Write a voting program. To start, write the program for just two candidates. Store the number of votes in a file so that if the program is closed and then restarted the votes are not lost. Allow the user to cast a vote and also allow the user to display the current vote results.
After completing the program for two candidates, modify your program so that the user can change the candidates’ names. Then allow the user to choose the number of candidates, up to a maximum of five.
Additionally, protect the polling station with a password. After the user votes, do not accept another vote until after the password is entered. This will allow a poll monitor (who knows the password) to ensure that a voter only votes one time before the next person uses the polling station. Do not allow the user to display the vote tally unless the correct password is entered. Finally, create an option to allow the password to be changed (provided the user knows the existing password).
-Make sure your program does not crash. Pop up appropriate error boxes for incorrect input.
-Make your output “read only” so that the user cannot change the output results.
- i personally use microsoft visual studio 2008
- set the password for the program to "admin"
~please finish as soon as possible this is urgent~