Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 37

A PROJECT REPORT ON

ONLINE VOTING SYSTEM

SUBMITTED TO THE SAVITRIBAI PHULE PUNE UNIVERSITY, PUNE


IN THE PARTIAL FULFILLMENT FOR THE AWARD OF THE DEGREE

OF

BACHELOR OF SCIENCE
IN
COMPUTER SCIENCE

BY

DARSHAN BHARAT PATIL EXAM SEAT NO: 6053

UNDER THE GUIDANCE OF

PROF. BALAJI GUDME


PROF. NAYAN PATIL

DEPARTMENT OF COMPUTER SCIENCE AND APPLICATION


S. M. JOSHI COLLEGE, HADAPSAR, PUNE-28
2023-24

I
RAYAT SHIKSHAN SANSTHA'S

S. M. JOSHI COLLLEGE HADAPSAR, PUNE -411028

DEPARTMENT OF COMPUTER SCIENCE


2023-24

CERTIFICATE
This is to certify that the project report entitled

ONLINE VOTING SYSTEM


SUBMITTED BY

Darshan Bharat Patil Exam Seat No: 6053

is a bonafide work carried out by them under the supervision Of Prof. Balaji Gudme
and it is approved for the partial fulfilment of the requirement of Savitribai Phule Pune
University for the award of the Degree of Bachelor of Science (Computer Science)

This project report has not been earlier submitted to any other Institute or University
for the award of any degree or diploma.

Prof. Balaji Gudme Hon. Sangeeta Y


Internal Guide
Department of Computer Science Department of Computer Sci

Dr. K. P. Kakde
External Examiner Principal
Date: S. M. Joshi College,
Hadapsar, Pune-28
Date:
Place:

II
ACKNOWLEDGEMENT

We feel great pleasure in expressing our deepest sense of gratitude and sincere thanks
to our guide Prof. Balaji Gudme and Prof. Nayan Patil for their valuable guidance
during the Project work, without which it would have been a difficult task. I have no
words to express my sincere thanks for valuable guidance, extreme assistance and
cooperation extended to all the Staff Members of our department.

This acknowledgement would be incomplete without expressing our special thanks to


Hon. Sangeeta Yadav, Head of the Department of B. Sc. (Computer Science) for her
support during the work.

We would like also like to extend our heartfelt gratitude to our Principal, Dr. K. P.
Kakde who provided a lot of valuable support, mostly being behind the veils of
college bureaucracy.

Last but not the least we would like to thank all the Teaching, Non-teaching staff
members of our Department, our Parents and our collegues those who helped us
directly or indirectly for completion of this project successfully.

Darshan Bharat Patil

III
Online Voting system

ABSTRACT

The advancement of technology has revolutionized various aspects of our lives,


including the way we conduct elections. Online voting systems have gained
prominence to make the voting process more convenient, efficient, and accessible.
This abstract provides an overview of the design and implementation of an online
voting system using Python and HTML, a project undertaken as part of advanced
programming practice.

The objective of this project is to create a secure, user-friendly, and reliable online
voting system that can be used for various types of elections, including government
elections, organizational elections, and more. The system is built using a combination
of Python for backend development and HTML for the frontend interface

Rayat Shikshan Sansthas, S. M. Joshi College, Hadapsar, Pune - B.Sc Computer Science – 2023-24
4
Online Voting system

LIST OF FIGURES

Fig No Name Page No


4.1 USE CASE DIAGRAM 20
4.2 CLASS DIAGRAM 21
4.3 E-R DIAGRAM 22
4.4 DATA FLOW DIAGRAM 23
4.5 BLOCK DIAGRAM 24

Rayat Shikshan Sansthas, S. M. Joshi College, Hadapsar, Pune - B.Sc Computer Science – 2023-24
5
Online Voting system

CONTENTS

CERTIFICATE II
ACKNOWLEDGEMENT III
ABSTRACT IV
LIST OF FIGURES V

TABLE OF CONTENTS

CHAPTER NO TITLE PAGE NO

1. INTRODUCTION 8

1.1 PURPOSE OF PROJECT 9


1.2 BACKGROUND STUDY 9
1.3 OVERVIEW 10
1.4 PROBLEM STATEMENT 11
1.5 AIM AND OBJECTIVE 12

2. LITERATURE SURVEY 13

3. PROJECT ANALYSIS AND REQUIREMENT 14

3.1 EXISTING SYSTEM 16


3.2 HARDWARE SYSTEM 16
3.3 SOFTWARE SYSTEM 17

4. SYSTEM ANALYSIS AND DESIGN 19

4.1 USE CASE DIAGRAM 20


4.2 CLASS DIAGRAM 21

Rayat Shikshan Sansthas, S. M. Joshi College, Hadapsar, Pune - B.Sc Computer Science – 2023-24
6
Online Voting system

4.3 E-R DIAGRAM 22


4.4 DATA FLOW DIAGRAM 23
4.5 BLOCK DIAGRAM 24
4.6 REQUIREMENTS ANALYSIS AND 25
SPECIFICATION

5. FUTURE SCOPE AND LIMITATION 26

6 OUTPUT 29

7 CONCLUSION 34

8 BIBLIOGRAPHY AND REFERENCES 36

Rayat Shikshan Sansthas, S. M. Joshi College, Hadapsar, Pune - B.Sc Computer Science – 2023-24
7
Online Voting system

CHAPTER 1
INTRODUCTION

Rayat Shikshan Sansthas, S. M. Joshi College, Hadapsar, Pune - B.Sc Computer Science – 2023-24
8
Online Voting system

INTRODUCTION

Elections allow the populace to choose their representatives and express their
preferences for how they will be governed. Naturally, the integrity of the election
process is fundamental to the integrity of democracy itself. The election system must
be sufficiently robust to withstand a variety of fraudulent behaviors and must be
sufficiently transparent and comprehensible that voters and candidates can accept the
results of an election. Unsurprisingly, history is littered with examples of elections
being manipulated in order to influence their outcome.

1.1 Purpose of Project

• “Voting system” organizes record of vote

• It reduces the paper work and semi automates the procedure of voting system.

• It makes the record storing, Updating, Deleting process easier.

1.2 Scope of Project

• Voter will be able to vote from anywhere for his/her Constituency.

• Vote counting will become easy and fast.

No Vote will be rejected.

1.3 Background Study

In every democratic setting with persons of differing and inconsistent opinions,


decisions must be made between several options. This happens in business
environment, educational environment, social organizations, and mostly in
governance. One of the ways of making such a decision is through voting. Voting is a

Rayat Shikshan Sansthas, S. M. Joshi College, Hadapsar, Pune - B.Sc Computer Science – 2023-24
9
Online Voting system

formal process of expressing individual opinions for or against some motion. In the
governance sector of many organisations this process is always used as a means of
selecting or electing a leader. One of the key areas where voting is applied is in
election. Election is the formal process of selecting a person for public office or of
accepting or rejecting a political proposition by voting.

1.4 Voting System Overview

Voting as a term encompasses a broad range of voting systems that apply elements in
one or more steps of the cycle. There are many levels to voting in a broad sense
which could be collation, verification, internet voting, remote online voting e.t.c.
Following the definition of a system as anything that takes an input and gives an
output, an voting system is any system that can offers both electronic and online
voting. It could also incorporate registration, verification, collation, remote online
voting and real-time result display. A voting system generally comprises the
following for it to work efficiently:

• An interactive voting user interface on a device which provides a friendly


environment for voters to authenticate and cast their votes, it also serves as a
means of collection the individual votes and storing them in the local and
central database.
• An administrative dashboard for voter registration, details update and
coordination and monitoring.
• A database management system for the storage of election, voting and voters
data.

• A result display interface.

Voting system serves to reduce the cumulative costs of running and increase voters
participation in election system as it offers voters an easy and convenient way to vote
and most importantly, it is a panacea to the issue of long distances covered by voters to
a specific destination for their votes to be counted, and also it combats the issues of
ballot box snatching which is rampart in the conventional election process.

Rayat Shikshan Sansthas, S. M. Joshi College, Hadapsar, Pune - B.Sc Computer Science – 2023-24
10
Online Voting system

1.5 Problem Statement

The present voting system applicable has proved inefficient as the voters’ registration
process is slow, the manual collation of results takes time and gives room for result
manipulation, also the inaccessible nature of election venues which includes the long
distances to be covered by voters’ to their registered location increases voters’ apathy
towards the election processes, and finally the issues of ballot box snatching and
damage and other election violence and issues associated with the traditional ballot
paper voting all defiles the purpose of voting in election process as a formal process of
expressing individual opinions for or against some motion.

1.6 Aim and Objectives

In the quest to design a successful system to tackle the issues stated in the problem
statement, the aim and objectives of the project are outlined below.

Aim
The aim of this project is to design and implement a low-cost automated real-time
voting system.

Objectives

Project Objectives includes

1. A detailed study of the election processes as it pertains to voting.

Rayat Shikshan Sansthas, S. M. Joshi College, Hadapsar, Pune - B.Sc Computer Science – 2023-24
11
Online Voting system

2. Design and develop a software platform for voter registration, election


voting, real-time election results collation and monitoring and mostly for
voters remote access to elections.
3. Design and develop an administration dashboard for the election
administrators

Rayat Shikshan Sansthas, S. M. Joshi College, Hadapsar, Pune - B.Sc Computer Science – 2023-24
12
Online Voting system

CHAPTER 2
LITERATURE SURVEY

Rayat Shikshan Sansthas, S. M. Joshi College, Hadapsar, Pune - B.Sc Computer Science – 2023-24
13
Online Voting system

LITERATURE SURVEY

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.

Online voting is an electronic way of choosing leaders via a web driven application.
The advantage of online voting over the common “queue method” is that the voters
have the choice of voting at their own free time and there is reduced congestion. It also
minimizes on errors of vote counting. The individual votes are submitted in a database
which can be queried to find out who of the aspirants for a given post has the highest
number of votes.

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.

Rayat Shikshan Sansthas, S. M. Joshi College, Hadapsar, Pune - B.Sc Computer Science – 2023-24
14
Online Voting system

CHAPTER 3
PROJECT ANALYSIS

Rayat Shikshan Sansthas, S. M. Joshi College, Hadapsar, Pune - B.Sc Computer Science – 2023-24
15
Online Voting system

PROJECT ANALYSIS

3.1 Existing System

 The voter has to visit the booths to vote a candidate so there is wastage of time.
 The voter has to manually register into the voter List. Also vote counting has to be
done manually.
 All the information of the voter or candidate is to be filling in manually.
 Voter must be present in his/her constituency to give his/her vote.
 The existing system of Election is running manually.
 There are electronic voting machines used which increases the cost of carrying out the
election.

3.2 Proposed System

 Maintain all information of all the candidates and votes.


 Check whether voter have voted or not.
 Increase the voting percentage.
 To make voting an easy process by avoiding problems like o Security o Booth
capturing

3.3 Hardware System Configuration

 System: Pentium I3 Process


 Hard disk: 500GB
 Monitor: Standard LED Monitor

Rayat Shikshan Sansthas, S. M. Joshi College, Hadapsar, Pune - B.Sc Computer Science – 2023-24
16
Online Voting system

 Input Devices: Keyboard


 Ram: 4GB

3.4 Software System Configuration

 Operating system: Window7


 coding language: Python
 Framework: Django
 Tools: Python PyCharm
 Database:SQLITE3

HTML

HTML (Hypertext Markup Language) was developed to address the need to easily display
content via a web-browser. It is a 'markup language (unlike a typical programming language),
in that its commands (tags) are designed to assist in the formatting and layout of textual data.
It by definition is a 'static' language, in that the content displayed using the standard HTML
language will always look the same it will not change over time or by who accessed it. Due to
this major limiting factor of the language in this modern world of dynamic. data-driven
websites, a variety of extensions to HTML and related programming languages have been
developed JavaScript, Microsoft's ASP (Active Server Pages), Java Applets and Applications,
PHP, others

Python

Python is used for server-side web development, software development, mathematics, and
system scripting, and is popular for Rapid Application Development and as a scripting or glue
language to tie existing components because of its high-level, built-in data structures, dynamic
typing, and dynamic binding. Program maintenance costs are reduced with Python due to the

Rayat Shikshan Sansthas, S. M. Joshi College, Hadapsar, Pune - B.Sc Computer Science – 2023-24
17
Online Voting system

easily learned syntax and emphasis on readability. Additionally, Python's support of modules
and packages facilitates modular programs and reuse of code. Python is an open source
community language, so numerous independent programmers are continually building
libraries and functionality for it.

SQLite

SQLite is an in-process library that implements a self-contained, serverless, zero-


configuration, transactional SQL database engine. It is a popular choice as an embedded
database for local/client storage in application software such as web browsers. It is also used
in many other applications that need a lightweight, embedded database.

SQLite is ACID-compliant and implements most of the SQL standards, using a dynamically
and weakly typed SQL syntax that does not guarantee domain integrity.

To use SQLite in a C/C++ program, you can use the sqlite3 API, which provides a
lightweight, simple, self-contained, high-reliability, full-featured, and SQL database engine.
The API is implemented as a library of C functions that can be called from your program.
One of the main benefits of using SQLite is that it is very easy to get started with. To create
a new database in SQLite, you simply need to create a new file on your filesystem and
connect to it using the sqlite3 API

Rayat Shikshan Sansthas, S. M. Joshi College, Hadapsar, Pune - B.Sc Computer Science – 2023-24
18
Online Voting system

CHAPTER 4
REQUIREMENT
ANALYSIS AND DIAGRAM

Rayat Shikshan Sansthas, S. M. Joshi College, Hadapsar, Pune - B.Sc Computer Science – 2023-24
19
Online Voting system

REQUIREMENT ANALYSIS AND DIAGRAMS

4.1 Use Case Diagram:

A Use case is a description of set of sequence of actions. Graphically it is rendered as an


ellipse with solid line including only its name. Use case diagram is a behavioural diagram that
shows a set of use cases and actors and their relationship. It is an association between the use
cases and actors. An actor represents a real-world object. Primary Actor – Sender, Secondary
Actor Receiver

Fig.4.1Use Case Diagram

Rayat Shikshan Sansthas, S. M. Joshi College, Hadapsar, Pune - B.Sc Computer Science – 2023-24
20
Online Voting system

4.2 Class Diagram:

Class Diagrams are widely used to describe the types of objects in a system and their
relationships. Class Diagrams model class structure, and contents using design elements such
as classes, packages and objects. Classes are composed of three things:

They are as follows:

 Name
 Attributes
 Operations

Fig.4.2 Class Diagram

Rayat Shikshan Sansthas, S. M. Joshi College, Hadapsar, Pune - B.Sc Computer Science – 2023-24
21
Online Voting system

4.3 E-R Diagram

ER Diagram stands for Entity Relationship Diagram, also known as ERD is a diagram that
displays the relationship of entity sets stored in a database. In other words, ER diagrams help
to explain the logical structure of databases. ER diagrams are created based on three basic
concepts: entities, attributes and relationships.

Fig.4.3E-R Diagram

Rayat Shikshan Sansthas, S. M. Joshi College, Hadapsar, Pune - B.Sc Computer Science – 2023-24
22
Online Voting system

4.4 Block Diagram

Fig 4.4Block Diagram

Rayat Shikshan Sansthas, S. M. Joshi College, Hadapsar, Pune - B.Sc Computer Science – 2023-24
23
Online Voting system

4.5 Data Flow Diagram

Fig4.5. Data Flow Diagram

Rayat Shikshan Sansthas, S. M. Joshi College, Hadapsar, Pune - B.Sc Computer Science – 2023-24
24
Online Voting system

4.5 Requirements Analysis And Specification

The requirements for an voting system to be developed to model the election at the
Federal level and provide a remedy to voters’ apathy is itemized below as:

1. The system should contain four subsystem as listed below:

 An electronic device with fingerprint and smart card reader for authentication
and software for vote casting and internet access for vote sending.
 A software platform for administrative management purpose.
 A software platform for result display. iv. A database application for storage of
election data.

2. The system should allow voters to be able to register against their place of origin
from any place of residence or convenience.

3. The system should permit voters to be able to vote for their place of origin from any
place of residence or convenience.

4. The registration and collection of voters card should be done at once.

5. The system should collect voters fingerprints for authentication purpose.

6. The system software platform should be accessible to all.

7. The system administrative dashboard for admintrators should have access control.

8. The system electronic device should have a local database for verification purpose.

9. The system electronic device should have a built-in battery storage capability.

10. The votes should be transmitted over a secured wireless protoco

Rayat Shikshan Sansthas, S. M. Joshi College, Hadapsar, Pune - B.Sc Computer Science – 2023-24
25
Online Voting system

CHAPTER 5
FUTURE SCOPE AND
LIMITATION

Rayat Shikshan Sansthas, S. M. Joshi College, Hadapsar, Pune - B.Sc Computer Science – 2023-24
26
Online Voting system

FUTURE SCOPE AND LIMITATION

Future Scope

Over the years, there have been many issues relating to electronic voting and
electronic voting systems. Various companies and software specialist have tried to develop a
system that will address electronic voting issues, but all have been unable to develop and
optimal system, or even anywhere near optimal. Society has not been able to develop a
universal, secure, user friendly and private electronic voting system.

Many electronic systems have been developed, but all have fallen short one way or
another. Often with some segment of society being left out. By continuous research, Dr.
Gilbert and his (Prime III) team have developed a unique system known nowhere else in the
world.

They have developed the Prime III electronic voting system which is somewhat of
an untouchable system compared to others, and it is the only system that is universal enough
to capture votes from all persons in society. The two main voting procedures that have been
used by developers in electronic voting are Mark-Sense ballots where the user shades in
their vote and the other is Direct Recording Elections (DRE’s) which allows users to vote
via touch (Kohno, Stubblefield & Rubin). Both have fallen short in being universal, in a
sense that mark-sense ballots can only be used for sighted voters or those with hands, and
issues also arise when the scanner is unable to detect the darkest mark (Kohno, Stubblefield
& Rubin). In reference to the DRE’s, again the issue arises if the user is blind or does not
have any hands. There are also many other issues with these systems such as security
vulnerabilities. There are other smaller systems, however many have not been developed
enough to be used in general elections.

Rayat Shikshan Sansthas, S. M. Joshi College, Hadapsar, Pune - B.Sc Computer Science – 2023-24
27
Online Voting system

Limitations of our project:

 To make use of this project one should have basic knowledge of handling a computer and
internet

. If the internet connection fails it can fail the project.

Rayat Shikshan Sansthas, S. M. Joshi College, Hadapsar, Pune - B.Sc Computer Science – 2023-24
28
Online Voting system

CHAPTER 6
OUTPUT

Rayat Shikshan Sansthas, S. M. Joshi College, Hadapsar, Pune - B.Sc Computer Science – 2023-24
29
Online Voting system

OUTPUT

6.1 Admin Login

Fig.6.1Admin login

6.2 Admin Page:

Fig.6.2Admin page

Rayat Shikshan Sansthas, S. M. Joshi College, Hadapsar, Pune - B.Sc Computer Science – 2023-24
30
Online Voting system

6.3 Voter Login

Fig 6.3Voter Login

6.4 Voter Registration:

Fig 6.4Voter Registration

Rayat Shikshan Sansthas, S. M. Joshi College, Hadapsar, Pune - B.Sc Computer Science – 2023-24
31
Online Voting system

6.5 Voting Page

Fig 6.5 Voter Page

6.6 Candidate Detail Page

Fig 6.6 Candidate Detail Page

Rayat Shikshan Sansthas, S. M. Joshi College, Hadapsar, Pune - B.Sc Computer Science – 2023-24
32
Online Voting system

6.7 Result Page

Fig 6.7 Result Page

6.8 Home Page

Fig 6.8 Home Page

Rayat Shikshan Sansthas, S. M. Joshi College, Hadapsar, Pune - B.Sc Computer Science – 2023-24
33
Online Voting system

CHAPTER 7
CONCLUSION

Rayat Shikshan Sansthas, S. M. Joshi College, Hadapsar, Pune - B.Sc Computer Science – 2023-24
34
Online Voting system

CONCLUSION

This “ONLINE VOTING SYSTEM” has been developed successfully and tested with
the sample client connections, from different systems. The benefits of this system are
considerable.

It is observed that the users are able to use the system easily. As all the users are
provided with the information required by them in GUI so the user with minimum
basic knowledge about the computer can be able to operate the system easily.

The users can obtain the required information with ease and accuracy from the system.
Various validation techniques are used to implement for the accuracy of data for the
user. Since the System can be used by authorized user only, a level of security is
provided.

Rayat Shikshan Sansthas, S. M. Joshi College, Hadapsar, Pune - B.Sc Computer Science – 2023-24
35
Online Voting system

CHAPTER 8
BIBLIOGRAPHY &
REFERENCE

BIBLIOGRAPHY & REFERENCE

Reference:

 System Analysis & Design By Elias Awad.


 Websites:
 www.Planetsourcecode.com
 https://www.w3schools.com
 http://www.wikipedia.com
 https://www.tutorialspoint.com

Bibliography:

Rayat Shikshan Sansthas, S. M. Joshi College, Hadapsar, Pune - B.Sc Computer Science – 2023-24
36
Online Voting system

 Bryan Basham, Kathy Sierra, Bert Bates, “Head First Servlets & JSP”

o 4th Edition, O’Reily Publishers, 2004.

 Grady Booch, James Rumbaugh, Ivar Jacobson, “The UML

o User Guide” 1st Edition, Addison Wesley, 1998.

 PankajJalote, “An integrated Approach to Software

o Engineering” 2nd Edition, Narosa Publishing House, 2000.

 Rogers.Pressman “A Practitioner’s Approach to Software

o Engineering” 6th Edition, McGraw-Hill Publishers, 2004.

 Herbert Schildt, “Java 2 Complete Reference”, 5th Edition,

o McGraw-Hill Publishers, 2003.

 Python Programming (J2EE 1.4) Black Book, Kogent solutions



o Inc.Dreamtech Press, 2007

Rayat Shikshan Sansthas, S. M. Joshi College, Hadapsar, Pune - B.Sc Computer Science – 2023-24
37

You might also like