Sei sulla pagina 1di 33

A Group Project Report on

ONLINE VOTING
Submitted to
The Department of Computer Science and Engineering
In partial fulfillment of the academic requirements of SNIST
For
The award of the degree of
Bachelor of Technology
in
Computer Science and Engineering
(2014 – 2018)
BY
K.MANI KANTA ( 14311A0583)
B.V.ANUSHA (14311A0584)
R.BHARATH (14311A0593)

Under the Guidance of


Mrs. T.MAMATHA
Assistant Professor

Sreenidhi Institute of Science and Technology


(An autonomous institution Approved by UGC)
Yamnampet, Ghatkesar, R.R. District, Hyderabad - 501301
Department of Computer Science and Engineering
Sreenidhi Institute of Science and Technology
Yamnampet, Ghatkesar, R.R. District, Hyderabad - 501301

CERTIFICATE

This is to certify that this project report on “ONLINE VOTING”, submitted by K.Manikanta
(14311A0583), B.V.Anusha (14311A0584) and R.Bharath (14311A0593) in the year 2016 in partial
fulfillment of the academic requirements of Jawaharlal Nehru Technological University for the award
of the degree of Bachelor of Technology in Computer Science and Engineering, is a bonafide work
that has been carried out by them as part of their Group Project during Third Year First Semester,
under our guidance. This report has not been submitted to any other institute or university for the
award of any degree.

Mrs.T.Mamatha Mrs.K.Krishnajyothi Dr. Aruna Varanasi


Assistant Professor Assistant Professor Professor
Department of CSE Department of CSE Head of the Department
Internal Guide Project Coordinator Department of CSE
DECLARATION

We, K.Manikanta (14311A0583), B.V.Anusha (14311A0584) and R.Bharath (14311A0593), students


of Sreenidhi Institute Of Science and Technology, Yamnampet, Ghatkesar studying Third Year 1st
Semester, Computer Science and Engineering solemnly declare that project work titled “ONLINE
VOTING” is record of original work done by us and the work reported does not form part of any
dissertation submitted to any other University or Institute for any degree.
ACKNOWLEDGEMENT

This project report is the outcome of the efforts of many people, who have driven my passion to
explore intoan useful website application. We have received great guidance, encouragement and
support from them and have learned a lot because of their willingness to share their knowledge and
experience.

Primarily, We should express our deepest sense of gratitude to our internal guide Mrs.T.Mamatha,
Assistant Professor, Department of CSE. Her guidance has been of immense help in surmounting
various hurdles along the path of our goal.

We thank our Project Coordinator Mrs. K.KrishnaJyothi, Assistant Professor, Department of CSE,
Who spared her most valuable time without any hesitation whenever we wanted and has guided us
with her valuable inputs. We are deeply indebted to Prof. Aruna Varanasi, Head, Department of CSE,
who spared her most valuable time without any hesitation whenever we wanted.

We recorded with great feeling of gratitude, the contributions of all the faculty members, who
encouraged us during this project by rendering their help when needed.

Finally we thank our parents and adore Almighty God who has made us come in contact with such
worthy people at the right time, provided us with all the necessary resources and made us accomplish
this task.

K.MANIKANTA
B.V.ANUSHA
R.BHARATH
INDEX

TOPIC PAGE NO.

1. Abstract 1
2. List of figures 2
3. Introduction 3
4. System Analysis 4
1. Existing System 4
2. Proposed System 5
5. System Requirements Specification Document 5
1. Functional Requirements Specification 5
2. Performance Requirements 5
3. Software Requirements 5
4. Hardware Requirements 5
6. System Design 6
1. UML Diagrams 8
7. Sample Code 11
8. Testing 16
9. Output Screens 17
10. Conclusion & Future Scope 25
11. Bibliography 25
12. Appendix 26
ABSTRACT

Online voting is a fully web based voting software solution based on network security. With the access
control of capabilities and the reliability, the network security has tremendously increased in providing
authenticity and security.

The present system conducts the elections manually, which takes lot of effort for conducting,
maintaining and evaluating the voting process. This automation helps in overcoming all the above
mentioned problems and also helps in avoiding any kind of extreme cause that can be done. Rather
than employing expensive consultants to print or setup and manage your elections, online voting puts
the power of secure voting in hands of election administrators.

Finally he/she can easily vote since this project provides means for fast and convenient voting and
access to this system is limited only to registered voters.
LIST OF FIGURES
Fig. No Title of Figure Page.
No

1 Architecture Design 6

2 Use Case Diagram for Online voting 8

3 Sequence Diagrams for voter registration 9

4 Sequence Diagrams for Online voting 10

5 Screenshot of online voting icon 17

6 Screenshot of registration form 18

7 Screenshot of sign in to cast vote 19

8 Screenshot of welcome page 20

9 Screenshot of the party icons 21

10 Screenshot of thanking page 22

11 Screenshot of contact icon 23

12 Screenshot of About the project 24


INTRODUCTION

Online voting is a fully web based voting software solution based on network security.With the
access control capabilities and the reliability, the network security has tremendously increased in
providing authenticity and security.

The present system conducts the elections manually,which takes lot of efforts for conducting,
maintaining and evaluating the voting process. This automation helps in overcoming all the above
mentioned problems and also helps in avoiding any kind of extreme cause that can be done. Rather
than employing expensive consultants to print or setup and manage your elections, online voting puts
the power of secure voting in hands of election administrators.

This project describes the outline details of registration and login of a particular person and
further details of vote casting process and other particulars about the security of this working process
will be illustrated in the mini project wherehe/she can easily vote since the project provides means for
fast and convenient voting and the access to this system is limited only to registered voters.
SYSTEM ANALYSIS

This System Analysis is closely related to Requirement Analysis. It is also an explicit formal
inquiry carried out to vote someone(in politics) to cast vote securely for the development of our
country. This would help in making the country corruption free and developed country since it’s so
secure. This would be the Work breakdown structure of the system in different parts to analyze the
procedure, attempts, design etc. in a secure way to engage users so that definite requirements can be
defined.

Performance Requirements:
Performance is measured in terms of the output provided by the application. Requirement specification
plays an important part in the analysis of a system. Only when the requirement specifications are
properly given, it is possible to design a system, which will fit into required environment. It rests
largely with the users of the existing system to give the requirement specifications because they are the
people who finally use the system. This is because the requirements have to be known during the
initial stages so that the system can be designed according to those requirements. It is very difficult to
change the system once it has been designed and on the other hand designing a system, which does not
cater to the requirements of the user, is of no use.
The requirement specification for any system can be broadly stated as given below:
 The system should be able to interface with the existing system
 The system should be accurate
 The system should be better than the existing system
The existing system is completely dependent on the user to perform all the duties.

Existing System

 The existing system doesn't have a website to vote the candidate and the procedure done for
casting a vote in elections is full of corruption and not so secure. The present system is paper
based voting which is voted on paper and counted manually.
Proposed System

 The Project is developed for the threat free and user oriented Online Voting System. In this
system, he/she can easily vote since this project provides means for fast and convenient voting
and access to this system is limited only to registered voters.Use of internet would be the way
to access. Features would be Casting of vote is possible only with authentication of the
voter.Abused user can be verified and can be removed from entry.We can vote from anywhere.

SYSTEM REQUIREMENTS SPECIFICATION

Software Requirements
• OS -Windows XP, Windows 7 or Windows 8
• Technologies- HTML,CSS,PHP
• J2EE Server- Apache 5.0 or above
• Database- mysql
• Browser- Internet Explorer 8 or above.

Hardware Requirements

 OS
 Processor- Intel Pentium IV 1.8 GHz speed
 DDRAM- atleast 256 MB
SYSTEM DESIGN
System design is the process of defining the architecture, components, modules, interfaces, and
methods are becoming the most widely used methods for computer systems design.

Architecture

Online voting system is a web based application which mainly consists of features like secure login
procedure

Home page is the brief explanation about online votingfor the user.Register page lands the user
showing the details about how to register himself.Signin page is all about a registered user to login
through a valid username and password.There are few more important fields like About Us and
Contact Us.

Fig 1. Online Voting Architecture


Modules

Admin Module:

Admin can add the new voter details to the database and also updates the necessary information
required.

User Module:

The user can provide his details for registration and by logging in he can view the candidate details and
cast his vote.

Database:

In the database,we can store tables related to admin and voter and updates the status of the voter.Also
displays the result whenever neccesary.
UML DIAGRAMS
UML Diagrams for our application are as follows:

Use Case Diagram

Fig. 2. Use Case Diagram for Online Voting

A Use Case Diagram at its simplest is a representation of a user's interaction with the system and
depicting the specification of a use case. A use case diagram can portray the different types of users of
a system and various ways that they interact with the system. The use case diagram for “ONLINE
VOTING” application consists of two actors: User, Admin. The user can take picture, give location ,
select the trust and send the information. The Use cases of Admin are it can add new trust to the
application and also maintain the database. The Trust will receive the information.
Sequence Diagrams

Fig 3. Sequence diagram for voter Registration


Fig 4. Sequence Diagram for Online voting

A Sequence Diagram is an interaction diagram that show how process operate with one another in
what order. The sequence diagram of help the homeless application, consist of two main objects
mainly: User and Trust. Time ordering of various messages passed between these objects are shown
above. The Home screen object as shown in figure shows trusts and sends information to the trust.
CODING

IMPLEMENTATION

The implementation stage of any project is a true display of the defining moments that make a
project a success or a failure. The implementation stage is defined as the system or system
modifications being installed and made operational in a production environment. The phase is initiated
after system has been tested and accepted by the user. This phase continues until the system is
operating in production in accordance with the defined user requirement.

Code for main page:


<!DOCTYPE html>
<html lang="en">
<head>
<title>ONLINE VOTING</title>
</head>

<body class="home">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-
collapse"><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-
bar"></span></button>
<a class="navbar-brand" href="index.html"><img src="assets/images/logo.png" height=50 width=70
></a>
<***/div>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav pull-right">
<li class="active"><a href="#">Home</a></li>
<li><a href="about.html">ABOUT US </a></li>
<li class="dropdown">

</li>
<li><a href="contact.html">CONTACT US</a></li>
it's my 'RIGHT' and 'RESPONSIBILITY'......</p></h3><br>
<h4><p><b>GOAL:</b>To challenge the corruption and to make a strong backbone to indian
politics</p></h4>
<h3 class="widget-title">CONTACT US</h3>
<p>phone no:8694738202</p>
<p><a href="mailto:#">MABsolutions@gmail.com</a><br>
<p>SNIST,YAMNAMPET</p>
<p>HYDERABAD</p>
</p>
</div>
</div>
</body>
</html>

Code for voter registration:

<!DOCTYPE html>
<html lang="en">
<body>
<li><a href="index.html">Home</a></li>
<li><a href="about.html">About</a></li>
<li><a href="contact.html">Contact</a></li>
<li class="active"><a class="btn" href="signin.html">SIGN IN</a></li>
</ul>
</div><!--/.nav-collapse -->
<h1 class="page-title">VOTER REGISTRATION</h1>
</header>
<CENTER>
<form METHOD="POST" ACTION="signin.php">
<table border=1 cellpadding=2>

<tr><td><P>NAME:</td><td><INPUT TYPE="TEXT" NAME="fname" SIZE="30"


MAXLENGTH="50" required></P></td></tr>
<tr><td><P>EMAIL:</td><td><INPUT TYPE="email" NAME="emailid" SIZE="30"
MAXLENGTH="50" required></P></td></tr>
<tr><td><P>MOBILE:</td><td><INPUT TYPE="number" NAME="mobile" SIZE="30"
MAXLENGTH="100" required></P></td></tr>
<tr><td><P>AADHAAR NUMBER:</td><td><INPUT TYPE="number" NAME="aadhaar"
SIZE="30" MAXLENGTH="50" required></P></td></tr>
<tr><td><P>VOTERID:</td><td><INPUT TYPE="TEXT" NAME="voterid" SIZE="30"
MAXLENGTH="50" required></P></td></tr>
<tr><td><P>USERNAME:</td><td><INPUT TYPE="TEXT" NAME="username" SIZE="30"
MAXLENGTH="50" required></P></td></tr>
<tr><td><P>PASSWORD:</td><td><INPUT TYPE="PASSWORD" NAME="password" SIZE="30"
MAXLENGTH="50" required></P></td></tr>
</table>
<br>
<INPUT TYPE="SUBMIT" NAME="submit" VALUE="SUBMIT">
<INPUT TYPE="RESET" NAME="RESET" VALUE="RESET">
</form>
<br>
</CENTER>
</body>
</html>
Code for voter login:

<!DOCTYPE html>
<html lang="en">
<head>
</head>
<body>
<a class="navbar-brand" href="index.html"><img src="assets/images/logo.png" height=50
width=70></a>
</div>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav pull-right">
<li><a href="index.html">Home</a></li>
<li><a href="about.html">About</a></li>
<li><a href="contact.html">Contact</a></li>
<li class="active"><a class="btn" href="signup.html">REGISTER</a></li>
</ul>
</div><!--/.nav-collapse -->
</div>
</div>
<!-- /.navbar -->
<h1 class="page-title">Sign in to cast your vote</h1>
</header>
<br>
<br>
<center>
<form name="f11" method="POST" action="validate.php">
<center><table>
<tr><td>USERNAME</td><td><input type="text" name="uname" value="" required/></td></tr>
<tr><td>PASSWORD</td><td><input type="password" name="password" value=""
required/></td></tr>
<tr><td><input type="submit" value="LOGIN" name="login" /></td><td><input type="reset"
value="CANCEL" name="cancel" /></td></tr>
</table></center>
</form>
<br>

</center>
</FORM>

</article>

</body>
</html>
Code for castvote.html:
<html>
<head>
</head>
<body>
<center>
<img src="assets\images\people.jpg" width=840 height=200>
<center><h1>Please Cast your Vote </h1></center>

</center>
<center>
<input type="radio" name="cand" value="1">CPI
<img src="assets\images\CPI.png" width=50 height=40>

<br><br>

<input type="radio" name="cand" value"2">YSRCP


<img src="assets\images\YSR.jpg" width=50 height=40>
<br><br>

<input type="radio" name="cand" value="3">TRS


<img src="assets\images\trs.jpg" width=50 height=40>
<br><br>

<input type="radio" name="cand" value="4">CONGRESS


<img src="assets\images\cong.png" width=50 height=40>
<br><br>

<input type="radio" name="cand" value="5">TDP


<img src="assets\images\telugudesam.jpg" width=50 height=40>
</center>
<br><br>
<center>
<input type="submit" value="VOTE" ></center>
</body>
</html>
Code for Thankspage.html:
<!DOCTYPE html>
<html lang="en">
<body class="home">
<li class="active"><a href="index.html">Home</a></li>
<li><a href="about.html">ABOUT</a></li>
<li class="dropdown">

</li>
<li><a href="contact.html">CONTACT US</a></li>
<li><a class="btn" href="signin.html">LOG OUT</a></li>

</ul>
</div><!--/.nav-collapse -->
</div>
</div>
<h1 class="lead"><b>ONLINE VOTING</b></h1>
<br>
<h1><h3><p class="tagline">Thanks for using your voting right. Your valuable vote has been
cast...</h3><br>
<h4><p><b>GOAL:For the success of Democracy </b></p></h4></h1>
</div>
</div>
</header>
<!-- /Header -->
<div>
<center><h4>
</body>
</html>
TESTING

Testing is a process, which reveals errors in the program. It is the major quality measure employed
during software development. During testing, the program is executed with a set of test cases and the
output of the program for the test cases is evaluated to determine if the program is performing as it is
expected to perform.

Testing Strategies

In order to make sure that the system does not have errors, the different levels of testing strategies that
are applied at differing phases of software development are:

 Unit Testing
Unit Testing is done on individual modules as they are completed and become
executable. It is confined only to the designer's requirements.
 Integration Testing
Integration testing ensures that software and subsystems work together a whole. It tests
interface of all the modules to make sure that the modules behave properly when integrated
together.
 System testing
Involves in-house testing of the entire system before delivery to the user. It's aim is satisfy the
user the system meets all requirements of the client's specifications.
 Acceptance testing
Involves in-house testing of the entire system before delivery to the user. It's aim is to satisfy
the user the system meets all requirements of the client's specifications.
 Validation
The system has been tested and implemented successfully and thus ensured that all the
requirements as listed in the software requirements specification are completely fulfilled. In
case of erroneous input corresponding error messages are displayed.
SCREEN SHOTS

Fig 5. Online Voting Icon


Fig 6. Registration Form
Fig 7. Signin to cast vote
Fig 8. Welcome Page
Fig 9. Party Icons
Fig 10. Thanking Page
Fig 11. Contact Icon
Fig 12. About the project
CONCLUSION AND FUTURE SCOPE

Conclusion:

 Basically, overcomes all the mentioned problems in Existing System.


 Employs consultants to print or setup and manage your elections easily.
Online voting puts the power of secure voting in hands of election administrators

Future Scope:

By this project we can make the voting system as a source for authenticity and security. This
minimizes the corruption happening in present scenario. By this system, we can develop the network
security since only the authorized voters can vote. Technology which is so vast, is helpful in reducing
the usage of human resources since it is web-based application and online voting puts the power of
secure voting in hands of election administrators. Finally, it overcomes the problems of present voting
system.

BIBLIOGRAPHY

 https://www.youtube.com/watch?v=h57QpXp2TRg

 www.wikipedia.org

 https://www.electionsonline.com/online-voting-system/

 https://en.wikipedia.org/wiki/Electronic_voting

 https://en.wikipedia.org/wiki/Voter_registration
Appendix:

About HTML:

HyperText Markup Language (HTML) is the standard markup language for creating web
pages and web applications. With Cascading Style Sheets (CSS), and JavaScript, it forms a triad of
cornerstone technologies for the World Wide Web.[1] Web browsersreceive HTML documents from
a webserver or from local storage and render them into multimedia web pages. HTML describes the
structure of a web page semantically and originally included cues for the appearance of the document.

HTML elements are the building blocks of HTML pages. With HTML constructs, images and other
objects, such as interactive formsmay be embedded into the rendered page. It provides a means to
create structured documents by denoting structural semantics for text such as headings, paragraphs,
lists, links, quotes and other items. HTML elements are delineated by tags, written using angle
brackets. Tags such as <img /> and <input /> introduce content into the page directly. Others such

as <p>...</p> surround and provide information about document text and may include other tags as

sub-elements. Browsers do not display the HTML tags, but use them to interpret the content of the
page.

HTML can embed programs written in a scripting language such as JavaScript which affect the
behavior and content of web pages. Inclusion of CSS defines the look and layout of content.
The World Wide Web Consortium (W3C), maintainer of both the HTML and the CSS standards, has
encouraged the use of CSS over explicit presentational HTML since 1997.
About CSS:

Cascading Style Sheets (CSS) is a style sheet language used for describing the presentation of a
document written in a markup language.[1] Although most often used to set the visual style of web
pages and user interfaces written in HTML and XHTML, the language can be applied to
any XML document, including plain XML, SVG and XUL, and is applicable to rendering in speech, or
on other media. Along with HTML and JavaScript, CSS is a cornerstone technology used by most
websites to create visually engaging webpages, user interfaces for web applications, and user interfaces
for many mobile applications.[2]

CSS is designed primarily to enable the separation of document content from document presentation,
including aspects such as the layout, colors, and fonts.[3] This separation can improve
content accessibility, provide more flexibility and control in the specification of presentation
characteristics, enable multiple HTML pages to share formatting by specifying the relevant CSS in a
separate .css file, and reduce complexity and repetition in the structural content.

Separation of formatting and content makes it possible to present the same markup page in different
styles for different rendering methods, such as on-screen, in print, by voice (via speech-based browser
or screen reader), and on Braille-based tactile devices. It can also display the web page differently
depending on the screen size or viewing device. Readers can also specify a different style sheet, such
as a CSS file stored on their own computer, to override the one the author specified.

Changes to the graphic design of a document (or hundreds of documents) can be applied quickly and
easily, by editing a few lines in the CSS file they use, rather than by changing markup in the
documents.

The CSS specification describes a priority scheme to determine which style rules apply if more than
one rule matches against a particular element. In this so-called cascade, priorities (or weights) are
calculated and assigned to rules, so that the results are predictable.
About PHP:

PHP is a server-side scripting language designed primarily for web development but is also used as
a general-purpose programming language. Originally created by Rasmus Lerdorf in 1994,[5] the
PHP reference implementation is now produced by The PHP Development Team.[6] PHP originally
stood for Personal Home Page,[5] but it now stands for the recursive acronym PHP: Hypertext
Preprocessor.[7]

PHP code may be embedded into HTML code, or it can be used in combination with various web
template systems, web content management systems and web frameworks. PHP code is usually
processed by a PHP interpreter implemented as a module in the web server or as a Common Gateway
Interface (CGI) executable. The web server combines the results of the interpreted and executed PHP
code, which may be any type of data, including images, with the generated web page. PHP code may
also be executed with a command-line interface (CLI) and can be used to
implement standalone graphical applications.[8]

The standard PHP interpreter, powered by the Zend Engine, is free software released under the PHP
License. PHP has been widely ported and can be deployed on most web servers on almost
every operating system and platform, free of charge.[9]

The PHP language evolved without a written formal specification or standard until 2014, leaving the
canonical PHP interpreter as a de facto standard. Since 2014 work has gone on to create a formal PHP
specification.

Potrebbero piacerti anche