Project Report: "Project On Online Voting System"
Project Report: "Project On Online Voting System"
NIIT
PROJECT REPORT
“PROJECT ON
ONLINE VOTING
SYSTEM”
Nitin Bhasin
2013
PROJECT REPORT ON
PROJECT REPORT
ON
ONLINE
VOTING SYSTEM
NIIT
NIIT
ACKNOWLEDGEMEN
T
My first sincere appreciation and gratitude goes to Mr. Pawan Kumar Mahi
(Group Leader) for her guidance, constructive comments, valuable suggestions
and inspirations. During making of my Project he helped me a lot.
All the work done in coming up with this system is dedicated to my family
for being with/part of me in the whole process especially my dear dad and mum
who stood by me in all situations even at the times of financial need.
Finally, I wish to say thanks to all Faculties of NIIT for helping me a lot.
NIIT
NIIT
DEFINITION OF TERMS
OVS - Online Voting System
NIIT
NIIT
INDEx
Abstract
Background Of Study
Significance Of Study
Objective of Project
Project Justification
Scope of Study
General Requirements
ER Diagram
Database Architecture
Database Tables
Database Queries
Conclusion
NIIT
NIIT
Appendix(Snapshots)
ABSTRACT
The word “vote” means to choose from a list, to elect or to determine. The main
goal of voting (in a scenario involving the citizens of a given country) is to come
up with leaders of the people’s choice.
Most countries, Kenya not an exception have problems when it comes to voting.
Some of the problems involved include ridging votes during election, insecure or
inaccessible polling stations, inadequate polling materials and also inexperienced
personnel.
This online voting/polling system seeks to address the above issues. It should be
noted that with this system in place, the users, citizens in this case shall be given
ample time during the voting period. They shall also be trained on how to vote
online before the election time.
who have citizenship of Kenya and whose age is above 18 years of age and any
sex can give his\her vote online without going to any physical polling station.
NIIT
NIIT
There is a database which is maintained in which all the names of voters with
complete information is stored.
In “ONLINE VOTING SYSTEM” a voter can use his\her voting right online without
any difficulty. He\She has to be registered first for him/her to vote. Registration
is mainly done by the system administrator for security reasons. The system
Administrator registers the voters on a special site of the system visited by him
only by simply filling a registration form to register voter. Citizens seeking
registration are expected to contact the system administrator to submit their
details. After the validity of them being citizens of India has been confirmed by
the system administrator by comparing their details submitted with those in
existing databases such as those as the Registrar of Persons, the citizen is then
registered as a voter.
After registration, the voter is assigned a secret Voter ID with which he/she can
use to log into the system and enjoy services provided by the system such as
voting. If invalid/wrong details are submitted, then the citizen is not registered
to vote.
BACKGROUND OF STUDY
The Online voting system (OVS) also known as e-voting is a term encompassing
several different types of voting embracing both electronic means of counting
votes. Electronic voting technology can include punched cards, optical scan
voting systems and specialized voting kiosks (including self contained direct-
recording electronic voting systems or DRE). It can also involve transmission of
ballots and votes via telephones, private computer networks, or the internet.
NIIT
NIIT
This system is geared towards increasing the voting percentage in Kenya since it
has been noted that with the old voting method {the Queue System}, the voter
turnout has been a wanting case. With system in place also, if high security is
applied, cases of false votes shall be reduced.
With the “ONLINE VOTING SYSTEM”, a voter can use his\her voting right online
without any difficulty. He\She has to register as a voter first before being
authorized to vote. The registration should be done prior to the voting date to
enable data update in the database.
However, not just anybody can vote. For one to participate in the elections,
he/she must have the requirements. For instance, he/she must be a registered
citizen i.e. must be 18 and above years old. As already stated, the project ‘Online
Voting' provides means for fast and convenient voting and access to this system
is limited only to registered voters.
Internet voting systems are appealing for several reasons which include; People
are getting more used to work with computers to do all sorts of things, namely
sensitive operations such as shopping and home banking and they allow people
to vote far from where they usually live, helping to reduce absenteeism rate.
NIIT
NIIT
SIGNIFICANCE OF STUDY
The main purposes of OVS include:
Check to ensure that the members who are registered are the only ones to
vote. Cases of “Dead People” voting are also minimized.
Online voting system (OVS) will require being very precise or cost cutting
to produce an effective election management system.
Therefore crucial points that this (OVS) emphasizes on are listed below.
iii. Less capital, less effort, and less labor intensive, as the primary cost
and effort will focus primarily on creating, managing, and running a
secure online portal.
iv. Increased number of voters as individual will find it easier and more
convenient to vote, especially those abroad.
NIIT
NIIT
Validating the system to ensure that only legible voters are allowed to
vote.
Project justification
The ONLINE VOTING SYSTEM-INDIA shall reduce the time spend making
long queues at the polling stations during voting. It shall also enable the
voters to vote from any part of the globe as explained since this is an
online application available on the internet. Cases of vote miscounts shall
also be solved since at the backend of this system resides a well developed
database using MYSQL that can provide the correct data once it’s correctly
queried. Since the voting process shall be open as early as possible, the
voters shall have ample time to decide when and whom to vote for.
SCOPE OF STUDY
It is focused on studying the existing system of voting in Kenya and to
make sure that the peoples vote is counts, for fairness in the elective
positions. This is also will produce:
• Less effort and less labor intensive, as the primary cost and focus primary
on creating, managing, and running a secure web voting portal.
NIIT
NIIT
1. Paper-based voting: The voter gets a blank ballot and use a pen or a
marker to indicate he want to vote for which candidate. Hand-counted
ballots is a time and labor consuming process, but it is easy to
manufacture paper ballots and the ballots can be retained for
verifying, this type is still the most common way to vote.
4. Punch card: The voter uses metallic hole-punch to punch a hole on the
blank ballot. It can count votes automatically, but if the voter’s
NIIT
NIIT
Recent years, a considerable number of countries has adopted E-voting for their
official elections. These countries include; America, Belgium, Japan and Brazil.
NIIT
NIIT
Requirements:
1) Registration of the voter is done by ELECTION COMMISION OF INDIA.
2. Too much paper work: The process involves too much paper work and
paper storage which is difficult as papers become bulky with the
population size.
3. Errors during data entry: Errors are part of all human beings; it is very
unlikely for humans to be 100 percent efficient in data entry.
NIIT
NIIT
4. Loss of registration forms: Some times, registration forms get lost after
being filled in with voters’ details, in most cases these are difficult to
follow-up and therefore many remain unregistered even though they are
voting age nationals and interested in exercising their right to vote.
5. Short time provided to view the voter register: This is a very big problem
since not all people have free time during the given short period of time to
check and update the voter register.
6. Above all, a number of voters end up being locked out from voting.
SOFTWARE REQUIREMENTS:
i. MYSQL DBMS- It allows combination, extraction, manipulation and
organization of data in the voters’ database. It is platform independent
and therefore can be implemented and used across several such as
Windows, Linux server and is compatible with various hardware
mainframes. It is fast in performance, stable and provides business value
at a low cost.
iii. JAVA coding-This is for advanced user who find PHP codes easy to work
with.
NIIT
NIIT
HARDWARE REQUIREMENTS:
• Microsoft Windows XP Professional SP3/Vista SP1/Windows 7
Professional:
Memory: 512 MB
• Ubuntu 9.10:
Memory: 512 MB
NIIT
NIIT
(BLOCK DIAGRAM)
NIIT
NIIT
resource. The back-end application may interact directly with the front-end or,
perhaps more typically, is a program called from an intermediate program that
mediates front-end and back-end activities. These terms acquire more special
meanings in particular areas:-
(1) For software applications, front end is the same as user interface.
(2) In client/server applications, the client part of the program is often
calledAdministrator Voter
the front end and the server part is called the back end.
(3) Compilers, the programs that translate source code into object code,
are often composed of two parts: a front end and a back end. The front end is
responsible for checking syntax and detecting errors, whereas the back end
performs the actual translation into object code.
NIIT
ElectionElection
Administrator Commissioner
Commissioner
NIIT
ER Diagram:
Process
Check Results
NIIT
NIIT
NIIT
Architecture:
One Tier Architecture:
All users run their programs from a single machine. The ease with which
deployment and even development occurs makes this model very attractive. The
cost of the central machine makes this architecture prohibitive for most
companies, especially as system costs and return on investment (ROI) are looked
at carefully nowadays.
NIIT
NIIT
• Voter
• Candidate
Admin Table:-
Voter Table:-
NIIT
NIIT
Candidate Table:-
NIIT
NIIT
Database queries:
create database nitin
UserName Password
Admin
Administrator nitin Page
Voter Id
Sample Voter Id
123456
Voter Id
NIIT
NIIT
CONCLUSION
This 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. It provides the tools for maintaining voter’s vote to every
party and it count total no. of votes of every party. There is a DATABASE which is
maintained by the ELECTION COMMISION OF INDIA in which all the names of
voter with complete information is stored.
NIIT
NIIT
APPENDIX :
SNAPSHOTS
NIIT
NIIT
package project1;
import java.awt.Color;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;
import javax.swing.*;
public Project1()
{
f=new JFrame("WELCOME");
l=new JLabel("Login As:");
b1=new JButton("Voter");
b2=new JButton("Election Commisioner");
b3=new JButton("EXIT");
b4=new JButton("INFO");
ic=new ImageIcon("C:\\Users\\OM SAI
RAM\\Desktop\\project_pics\\Democracy_quote.jpg");
NIIT
NIIT
j=new JLabel(ic);
NIIT
NIIT
j.add(b4);
f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
try
{
String path="jdbc:mysql://localhost/";
String place="nitin";
Class.forName("com.mysql.jdbc.Driver");
Connection
con=DriverManager.getConnection(path+place,"niti","1234");
Statement stmt=con.createStatement();
ResultSet rs=stmt.executeQuery("Select count(*) from candidate");
rs.next();
count=rs.getInt(1);
if(count==0)
{
b1.setEnabled(false);
}
else
{
b1.setEnabled(true);
}
f.setVisible(true);
con.close();
}
catch(Exception ae)
{
JOptionPane.showMessageDialog(f,ae.getMessage());
}
NIIT
NIIT
{
Project1 p=new Project1();
p.launch();
@Override
public void actionPerformed(ActionEvent e)
{
if((e.getSource().equals(b1)))
{
}
if(e.getSource().equals(b3))
{
f.dispose();
}
if(e.getSource().equals(b2))
{
Admin a=new Admin();
a.launch();
f.dispose();
}
if((e.getSource().equals(b4)))
{
NIIT
NIIT
f.dispose();
}
}
}
NIIT
NIIT
NIIT
NIIT
NIIT
NIIT
NIIT
NIIT
NIIT
NIIT
NIIT
NIIT
NIIT