Electronic voting machines (EVMs) are used to conduct elections in India. These machines provide straightforward and effortless features to voters to cast their votes in favour of candidates of their choice. When a voter presses a button adjacent to the name of the candidate, a beeping sound is made by the electronic voting machine, confirming successful casting of vote, and the vote count of that particular candidate increases by one.
In this project, a demo software program using MATLAB based graphical user interface (GUI) to demonstrate the working of an EVM is presented. A screenshot of the EVM using MATLAB GUI is
Five candidates are considered in this demo program. The GUI application program has been developed in R2014a version of MATLAB.
On running MATLAB program (EVM.m), when you select the button marked ‘Press Button’ adjacent to the name of the candidate in the GUI, a beep is heard, confirming successful casting of vote. Selection of the pushbutton executes a callback function in MATLAB, and the candidate’s vote count is incremented by one in the program. At the end of the voting process, the following information can be obtained by selecting ‘RESULTS’ on the GUI:
Code
Code
1. Total number of votes received by a candidate
2. Percentage of votes received by a candidate
3. Total number of voters who have cast their votes
A typical example of the program output screenshot is shown in