online voting

28
The Project entitled ONLINE VOTING SYSTEM Submitted in partial fulfillment of academic requirements for the award of the degree of Bachelor of Engineering (Computer Science and Engineering) Department of Computer Science and Engineering M.V.S.R. ENGINEERING COLLEGE (Affiliated to Osmania University & Recognized by AICTE) Nadergul, Saroor Nagar Mandal, Hyderabad – 501 510 2013-14. 1

Upload: anudeep-kuchibhotla

Post on 10-Feb-2017

109 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Online Voting

The Project entitled

ONLINE VOTING SYSTEM

Submitted in partial fulfillment of academic requirements for the award of the degree of

Bachelor of Engineering (Computer Science and Engineering)

Department of Computer Science and Engineering

M.V.S.R. ENGINEERING COLLEGE

(Affiliated to Osmania University & Recognized by AICTE)

Nadergul, Saroor Nagar Mandal, Hyderabad – 501 510

2013-14.

1

Page 2: Online Voting

The Project entitled

ONLINE VOTING SYSTEM

Submitted in partial fulfillment of academic requirements for the award of the degree of

Bachelor of Engineering (Computer Science and Engineering)

By

K SOUMIKA REDDY 2451-11-733-120

K RAM ANUDEEP 2451-11-733-105

KARUNAKAR 2451-11-733-323

Department of Computer Science and Engineering

M.V.S.R. ENGINEERING COLLEGE

(Affiliated to Osmania University & Recognized by AICTE)

Nadergul, Saroor Nagar Mandal, Hyderabad – 501 510

2013-14.

2

Page 3: Online Voting

Department of Computer Science and Engineering

M.V.S.R. ENGINEERING COLLEGE

(Sponsored by Matrusri Education Society, Estd. 1980)

(Affiliated to Osmania University & Recognized by AICTE)

Nadergul, Saroor Nagar Mandal, Hyderabad – 501 510

CERTIFICATE

This is to certify that the project entitled “PROJECT TITLE”, is being submitted by

Mr./MsNAME bearing H.T No ROLL NUMBER in partial fulfillment of academic requirements for the

award of the degree of BACHELOR OF ENGINEERING in COMPUTER SCIENCE AND

ENGINEERING from MVSR Engineering College, affiliated to OSMANIA UNIVERSITY, is a record

of bonafide work carried out by him under the guidance and supervision of the faculty (CSED). The

results embodied in this project report have not been submitted to any other University or Institute for the

award of any degree or diploma to the best of my knowledge and belief.

Guide Project Coordinator

B.Venkataramana K.madhuri

Assistant Professor Assistant Professor

Dept . of CSE Dept. of CSE

3

Page 4: Online Voting

MVSR Engineering College MVSR Engineering College

ACKNOWLEDGMENT

I take this opportunity to express my profound and sincere gratitude to all those who helped us

in carrying out this project successfully.

At the very outset, I am thankful to our principal Sri Dr.P.SHASTRYand Sri J.Prasanna

Kumar, Professor and Head, Department of Computer Science and Engineering, MVSR

Engineering College, Hyderabad for their consent to do the project work as a part of our B.E

Degree (CSE). We thank them for their valuable suggestions and advice throughout our stay at the

college, during our project work.

I would like to thank our Internal Project Guide Mr.venkataramana, Assistant Professor,

Department of Computer Science and Engineering, MVSR Engineering College for his/her useful

suggestions, guidance and encouragement.

We thank the teaching and non-teaching staff of CSE for extending their support.

Finally we are thankful to our parents for their cooperation and support throughout all

endeavours in our life.

K SOUMIKA REDDY (2451-11-733-120)

K RAM ANUDEEP (2451-11-733-105)

KARUNAKAR (2451-11-733-323)

4

Page 5: Online Voting

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.

5

Page 6: Online Voting

Table of Contents

1. Introduction 7

2. Requirement analysis 8

3. System architechture 10

4. Design(system,database) 11

5. Coding 15

6. Testing and screen shots 20

7. Conclusion and future work 22

8. References 23

6

Page 7: Online Voting

1. INTRODUCTION

“ONLINE VOTING SYSTEM” is an online voting technique. In this system people 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. 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.

7

Page 8: Online Voting

2. REQUIREMENT ANALYSIS

• Registration of the voter is done by ELECTION COMMISION OF INDIA.

• ELECTION COMMISION OF INDIA can change the information any time if required.

• Registration of the Voter depends upon the information filled by the user.

• Voter is given a unique ID and PASSWORD.

• In the DATABASE information of every voter is stored.

• Database shows the information of every user.

2.1 SOFTWARE REQUIREMENTS:

• 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.

• HTML -Hypertext Markup Language-This is currently the core of the web world, it is

a language used to makeup web page. It is the glue that holds everything together.

Although HTLM was used for the implementation of the OVS, it is highly compatible

with eXtensible HTML (XHTML) which is designed to be a replacement of HTML made

to handle data and is also portable between different browsers and platforms with little or

no alterations in code. Macromedia Dreamweaver is a prefer tool for designing HTML

pages and that is the tool used in coming up with this OVS system.

• PHP coding-This is for advanced user who find PHP codes easy to work with.

• Testing is done via WAMPSERVER.

• Web browsers: Mozilla Firefox, Google chrome, Opera and Internet Explorer

8

Page 9: Online Voting

• Reporting Tool i.e. through Data Report.

2.2 HARDWARE REQUIREMENTS:

• Microsoft Windows XP Professional SP3/Vista SP1/Windows 7 Professional:

• Processor: 800MHz Intel Pentium III or equivalent

• Memory: 512 MB

• Disk space: 750 MB of free disk space

9

Page 10: Online Voting

3. SYSTEM ARCHITECHTURE

Data Base Tables:-

This project uses many tables:

• Voter

• Candidate

VOTER TABLE:

Field Name Data Type Description

Username Varchar Login id for Admin.(Primary key)

Password Varchar Password for Login

CANDIDATE TABLE:

Field Name Data Type Description

name Varchar Name of voter

Party name Varchar Name of the party

count Varchar Count

10

Page 11: Online Voting

4. SYSTEM DESIGN:

ER DIAGRAME:

4.2 FLOW CHART:

11

Voter CandidatesRegistration

Process

Registered Voter Database Registered Candidate

Voting

ADMIN

Add Candidates

Update Candidate

Details

Delete Candidate

Add Voters

Update Voter Details

Check Results

Page 12: Online Voting

4.3 USECASE

12

Start

Is register

Enter your details in voter registration form

Enter uname and pwd

Display invalid uname and pwd

submit

stop

Is exsist in db

Enter into account

Choose candidate from ballot paper

Conform submissi

Page 13: Online Voting

Use case Diagram is a collection of use cases, actors and relationships that exists between them.

Use-case diagrams graphically depict system behavior (use cases).

These diagrams present a high level view of how the system is used as viewed from an outsider’s (actor’s) perspective.

A use-case diagram may depict all or some of the use cases of a system.

voting process

conform submission

voter

login

logout

database

new voter exsistimg voter

admin

ballot

4.4 CLASS DIAGRAM

13

Page 14: Online Voting

A class diagram shows the existence of classes and their relationships in the logical design of a system.

CONTENTS:

A class diagram contains:

1. Classes

2. Relationships

3. Interfaces

votervoter id : intvoter address : char

exsisting voteruser id : Integerpassword : char

login()ballot()

ballot paperrepresentative : charparty name : char

new votername : charage : intphno : intaddress : string

enter details()submit()

adminuser id : intpassword : char

permit login()count()

permits login

:

5. CODING

14

Page 15: Online Voting

Login.html

form.html

ballot.html

15

<h1>ONLINE VOTING SYSTEM</h1><br><br><br>

<center>

<form action="logincheck.jsp" method="get">

username:<input type="text" size="20" maxlength="15" name="username"><br>

password:<input type="password" size="20" maxlength="10" name="password"><br>&nbsp;&nbsp;

<input type="submit" value="login">

<form method="get" action="userreg.jsp">

<center>

<font color="color_name|hex_number|rgb_number">

UserID:<input type="text" name="t1" size="20"><br><br>

Username:<input type="text" name="uname" size="20"><br><br>

password:<input type="password" name="pword"><br><br>

Gender:<input type="radio" name="gender" value="male">male

&nbsp;&nbsp;

<h3>BALLOT PAPER</h3>

<form method="post" action="update.jsp">

<table border="2" cellspacing="10" cellpadding="10">

<tr>

Page 16: Online Voting

logincheck.jsp

16

<h3>BALLOT PAPER</h3>

<form method="post" action="update.jsp">

<table border="2" cellspacing="10" cellpadding="10">

<tr>

<%@ page contentType="text/html; charset=ISO-8859-1" import="java.sql.*"%>

<%@ page import="javax.servlet.*" %>

<%@ page import="javax.servlet.http.*" %>

<%! String us,pw="",pwd=""; %>

Page 17: Online Voting

update.jsp

17

<%@ page contentType="text/html; charset=ISO-8859-1" import="java.sql.*"%>

<%@ page import="javax.servlet.*" %>

<%@ page import="javax.servlet.http.*" %>

<%! String us,pw="",pwd=""; %>

<%@ page contentType="text/html; charset=ISO-8859-1" import="java.sql.*"%>

<%@ page import="javax.servlet.*" %>

<%@ page import="javax.servlet.http.*" %>

<% String s=request.getParameter("i");

Page 18: Online Voting

userreg.jsp

18

<%@ page contentType="text/html; charset=ISO-8859-1" import="java.sql.*"%>

<%@ page import="javax.servlet.*" %>

<%@ page import="javax.servlet.http.*" %>

<% String s=request.getParameter("i");

<%@ page contentType="text/html; charset=ISO-8859-1" import="java.sql.*"%>

<%@ page import="javax.servlet.*" %>

<%@ page import="javax.servlet.http.*" %>

<%@ page import="java.io.*" %>

Page 19: Online Voting

SCREENSHOT

19

<%@ page contentType="text/html; charset=ISO-8859-1" import="java.sql.*"%>

<%@ page import="javax.servlet.*" %>

<%@ page import="javax.servlet.http.*" %>

<%@ page import="java.io.*" %>

Page 20: Online Voting

6. SCREENSHOTS

20

Page 21: Online Voting

7. TESTING

Traditional software testing procedures were used for the web-based OVS where testing took

place throughout the development process.

Before the system is distributed, it will have to be thoroughly tested.

Testing will need to be carried out in erroneous conditions, e.g. the mobile phone is not in

range of a server, the database back-end is unavailable or there are no questions stored in the

database.

8. CONCLUSION

21

Page 22: Online Voting

The main aspect behind ONLINE VOTING SYSTEM is that it enabled us to bring out the new

ideas that were sustained within us for many for many days. This project offers the voters to cast

easily through internet. Vote counting is also made easy by the ONLINE VOTING SYSTEM

since it’s just a matter of querying the database. ONLINE VOTING SYSTEM is used by a

number of countries today. Developing a good system is critical to the success of the system to

prevent system failures and to gain wide acceptance as the best method available. A good

ONLINE VOTING SYSTEM system requires ten characteristics which this system already has.

These are:

Accuracy Convenience Reliability

Verifiabilit

y

Flexibility Consistency

Democracy Mobility Social Acceptance

Privacy

In analyzing, designing, implementing, and maintaining standards, we considered these

characteristics as the foundation. These standards were made national. OVS will be an

inexpensive, and less time consuming method once a system exhibiting national standards and

the above mentioned characteristics is implemented.

REFERENCES:

JAVA The Complete Reference,8thEdition:HerbertSchildt

J2EE The Complete Reference by James Koegh

www.w3schools.com

www.stackoverflow.com

22