A mini project - University/College simple voting system using file handling.
- ELECTION.h
- Main.c
A header file that includes all the function which will the main.c file needs to access.
The main file to excutite all the functions accordind to the users input.
- Clone this repository
git clone https://github.com/iamevs/C-program-mini-project.git
-
locate to the folder where the repo extracted
-
comple and run the C program
gcc main.c -o election
.\election.exe
At first when compiling and run the program you will able to see the out as to choose the options like
- Student
- Admin
- Exit
- Enter the option as 2 and go ahead to the admin pannel
Username is Admin
Password id admin
Note : It is case sensitive
-
After a successfull Login choose the option to initate the election. (Option 1)
-
Enter the Year of election, The last two digits of the year will be the First two digits of the student's roll number.
Year : 2022
Student's roll number : 22XXXXXX.
- Enter the Branch Code, This Branch code should be of three characters. So this three characters will be the next three of the student's roll number.
Branch code : MBA
Student's Roll number : 22MBAXXX.
- Enter the Total number of students, so by this number will be the remaining of the student's roll number.
NO.of students : 127
Student's roll number : 22MBA001 to 22MBA127
- Enter the number of candidates, and enter their datails and Logout from the admin pannel.
-
Choose the option for the student panel.
-
Enter the proper Roll number as per the admin panel contents.
-
Choose the candidates (voting).
-
For the exit enter 0 and return.
- Ban a user Id and stop some particular student.
- Delete the illegal votes.