You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Step 2: If you are windows user download a gcc compiler
Step 3: Download the code and run it in VS code.
Step 4: Input the suitable data according to the instruction appearing on the terminal
Enviroment setup
Download VSCode or any other similar IDLE for C language
Download C compiler.
Dependencies
voting_data.txt
Currently working only on windows platform
Execution guidelines
Step1: User is presented with 2 choices
Case 1: User types 1 into the terminal-(Voting begins)
User is asked for his voter ID
E.g User enters his voter ID as 1 in the terminal (User presented with the list of candidates along with their corresponding serial number)
If user enters invalid voter ID, an error beep is sounded and "Invalid voter ID" message is shown.
If user chooses invalid option for his vote ,an error beep is sounded and "Invalid option" message is shown.
After entering the choice of candidate,confirmation beep sounds,the terminal clears,vote is added to the chosen candidate and terminal is cleared to initate voting for another voter.
Case 2: User types 2 into the terminal (Voting process ends after entering correct user name and password given to authorised people ).
username: breakingcode
password: random
if user enters wrong username or password,an "Authentication failed.Invalid username or password"
After entering correct username and password,voting process ends,final votes are calculated.Voter turnout is calculated and printed.Name of winner is printed along with the percentage of votes the winner received.