Professional Documents
Culture Documents
Arulll 1
Arulll 1
A MINIPROJECT REPORT
Submitted by
of
B.TECH
in
INFORMATION TECHNOLOGY
FEBRUARY 2024
ii
BONAFIDE CERTIFICATE
Certified that this project report titled “ONLINE VOTING SYSTEM” is the
bonafide work of KARI VIKASHINI G(2303737720522094) and ARUL
MURUGAN K(2303737720521009) who carried out the project under my
supervision. Certified further, that to the best of my knowledge the work reported
herein does not form part of any other project report or dissertation on the basis of
which a degree or award was conferred on an earlier occasion on this or any other
candidate.
SIGNATURE SIGNATURE
Dr.R.POONKUZHALI M.E., Ph.D V.P.DHIVYA B.E., M.E.
HEAD OF THE DEPARTMENT SUBJECT HANDLER
Professor Assistant Professor
Department of Information Technology Department of Information Technology
K.S. Rangasamy College of Technology K.S. Rangasamy College of Technology
Tiruchengode - 637 215 Tiruchengode - 637 215
iii
DECLARATION
Signature
____________________
KARI VIKASHINI G
____________________
ARUL MURUGAN K
Place : Tiruchengode
Date :
iv
LIST OF FIGURES
ABSTRACT
The Online Voting system is made for the people of the country residing around the
world and wants to vote for their representative. The election can be conducted in
two ways the paper ballot election and the automated ballot elections.The
automated ballot elections are called the electronic voting. The online voting system
is highly developed and the online polling system can be replaced by accurately and
directly voting online and immediate results. The online voting system is done by
the internet so it can be called the Internet Voting.
The online voting system project receives the information of the voters like
voter id, Mobile Number and candidates details.It help voters to cast vote through
online even if they are away from their country.
vi
TABLE OF CONTENTS
LIST OF FIGURES iv
ABSTRACT v
1 INTRODUCTION 1
2 TOOLS USED 2
2.1 C PROGRAMMING 2
3 DESIGN 5
3.1 FLOWCHART 5
3.2 ALGORITHM 6
4 CODING 7
CONCLUSION 14
1
CHAPTER 1
INTRODUCTION
CHAPTER 2
TOOL USED
2.1 C PROGRAMMING
BASIC C COMMANDS
int main() It is the main function from where C program execution begins.
getch(); This command is used for any character input from keyboard.
APPLICATION OF C PROGRAMMING
CHAPTER 3
DESIGN
3.1 FLOWCHART
START
INPUT VOTER ID
IF VOTER ID NO
IS VALID
INVALID VOTER
YES ID
NO
IF AGE>18
INVALID
VOTER YES
STOP
6
3.2 ALGORITHM
CHAPTER 4
CODING
#include <stdio.h>
#include <string.h>
#define MAX_CANDIDATES 10
#define MAX_VOTERS 100
// Define structures
struct Candidate {
char name[50];
int votes;
};
struct Voter {
char name[50];
int voted;
};
int main() {
struct Candidate candidates[MAX_CANDIDATES];
int numCandidates = 0;
int choice;
8
do {
printf("\n===== Online Voting System Menu =====\n");
printf("1. Add Candidate\n");
printf("2. Display Candidates\n");
printf("3. Cast Vote\n");
printf("4. Exit\n");
printf("Enter your choice: ");
scanf("%d", &choice);
switch (choice) {
case 1:
addCandidate(candidates, &numCandidates);
break;
case 2:
displayCandidates(candidates, numCandidates);
break;
case 3:
castVote(voters, &numVoters, candidates, numCandidates);
break;
case 4:
printf("Exiting...\n");
break;
default:
printf("Invalid choice. Please try again.\n");
}
} while (choice != 4);
return 0;
}
// Display candidates
displayCandidates(candidates, numCandidates);
int choice;
printf("Enter the number of your chosen candidate: ");
scanf("%d", &choice);
// Record vote
candidates[choice - 1].votes++;
// Record voter
strcpy(voters[*numVoters].name, name);
voters[*numVoters].voted = 1;
(*numVoters)++;
CHAPTER 5
PAGE 1:
PAGE 2:
PAGE 3:
CONCLUSION
The Online Voting system will manage the Voter’s information by which
voter can login and use his voting rights. The system will incorporate all features
of Voting system . Notably, the absence of a login system allows for seamless
access to all available features without constraints, making it a convenient choice
for users. In this user who is above 18 year’s can cast vote to any party only single
time. Voter can use his\her voting right online without any difficulty.It is too easy to
use, he/she can cast vote easily with the help of their Voter ID. Overall, the Simple
Online Voting System in C project provides a valuable resource for individuals
seeking a basic yet functional tool for handling voting system.