Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

38 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Team information

Breaking Code (Mini Voting System)

Name Roll no.
Sanchit Garg B23CY1019
Vaibhav Garg B23CM1046
Prashasta Srivastava B23EE1057
Shlok Kanani B23CS1068

How to execute the code

This code in written in C language

Step 1: Download VS code
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.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages