Project Report: Online Voting System
Project Report: Online Voting System
Project Report: Online Voting System
PROJECT REPORT
ON
ONLINE
VOTING SYSTEM
ACKNOWLEDGEMENT
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.
DEFINITION OF TERMS
OVS - Online Voting System
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
➢ 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.
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. 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.
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.
SIGNIFICANCE OF STUDY
The main purposes of OVS include:
➢ Provision of improved voting services to the voters through fast, timely and
convenient voting.
➢ 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.
❖ 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.
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
perforation is incomplete, the result is probably determined wrongfully.
5. Optical voting machine: After each voter fills a circle correspond to their
favorite candidate on the blank ballot, this machine selects the darkest
mark on each ballot for the vote then computes the total result. This kind
of machine counts up ballots rapidly. However, if the voter fills over the
circle, it will lead to the error result of optical-scan.
Recent years, a considerable number of countries has adopted E-voting for their
official elections. These countries include; America, Belgium, Japan and Brazil.
Requirements:
1) Registration of the voter is done by ELECTION COMMISION OF INDIA.
3) Registration of the Voter depends upon the information filled by the user.
1. Expensive and Time consuming: The process of collecting data and entering
this data into the database takes too much time and is expensive to conduct,
for example, time and money is spent in printing data capture forms, in
preparing registration stations together with human resources, and there
after advertising the days set for registration process including sensitizing
voters on the need for registration, as well as time spent on entering this
data to the database.
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.
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.
v. Web browsers: Mozilla Firefox, Google chrome, Opera and Internet Explorer
HARDWARE REQUIREMENTS:
• Microsoft Windows XP Professional SP3/Vista SP1/Windows 7
Professional:
• Processor: 800MHz Intel Pentium III or equivalent
• Memory: 512 MB
• Ubuntu 9.10:
• Memory: 512 MB
(BLOCK DIAGRAM)
Administrator Voter
Login
Login Process
Election
Commissioner
ER Diagram:
Election
Commissioner
Voter Registration Candidates
Process
Delete Candidate
Check Results
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.
Data Base Tables:-
Admin Table:-
Voter Table:-
Candidate Table:-
UserName Password
Admin
Administrator nitin Page
Voter Id
Sample Voter Id
123456
Voter Id
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.
SNAPSHOTS
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");
j=new JLabel(ic);
}
public void launch()
{
j.setSize(400,400);
f.setSize(400,400);
f.setLocation(400, 200);
f.setLayout(null);
l.setBounds(150, 100, 200, 30);
b1.setBounds(50, 150, 250, 30);
b1.addActionListener(this);
b2.setBounds(50, 200,250, 30);
b2.addActionListener(this);
b3.setBounds(270,330, 100, 30);
b3.addActionListener(this);
b4.setBounds(150,330, 100, 30);
b4.addActionListener(this);
Font font = new Font("SEGOE PRINT", Font.BOLD,20);
l.setFont(font);
Color color=new Color(240,40,60);
l.setForeground(color);
b1.setFont(font);
b2.setFont(font);
b3.setFont(font);
b4.setFont(font);
f.add(j);
j.add(l);
j.add(b1);
j.add(b2);
j.add(b3);
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());
}
}
@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)))
{
}
}
}