You are on page 1of 152

Online Voting System

Online Voting System


Submitted by
Hamza Amjad (BCS02143295)
Muhammad Shahbaz (BCS02143275)
Sheraz Hassan (BCS02143329)
Submitted to
Mr. Abid Bashir
Degree
Bachelor of Science in Computer Science

Department
Computer Science and IT

0
Online Voting System

1
Online Voting System

“Read! In the name of your Lord who created - Created the


human from something which clings. Read! And your Lord is
Most Bountiful - He who taught (the use of) the Pen, Taught the
human that which he knew not.”
(Al Quran)

2
Online Voting System

SIGNATURE PAGE

STATEMENT OF SUBMISSION:
Submitted to The University of Lahore in partial fulfillment of the requirements for the award
of degree of Bachelors of Science in Computer Science (Honors).

SUBMITTED BY GROUP MEMBERS:

Hamza Amjad (BCS02143295)

Muhammad Shahbaz (BCS02143275)

Sheraz Hassan (BCS02143329)

SIR ABID BASHIR Project Advisor


(Lecturer UOL)
Department of CS & IT

Department of Computer Science & Information Technology

THE UNIVERSITY OF LAHORE

3
Online Voting System

ABSTRACT

The word “vote”means to choose from a list, to elect or to determine. The main goal ofonline
voting system is to choose leaders of their own choice.Most countries, faces a large numbers of
problems during the time of elections. 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 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. There will bea
website having all the information regarding to the candidates and parties.

4
Online Voting System

DEDICATION

We are dedicating our project to our parents who supported us a lot in this project.They
dedicated their full time on our project and made us capable to meet ourRequirements regarding
this unique project. Moreover, they supported us morally aLot and motivated us to achieve this
difficult target. May Almighty Allah alwaysShower His countless blessings on our
parents.Without their knowledge, wisdom, and guidance, we would not have the goals we have
to strive and be the best to reach our dreams.

5
Online Voting System

ACKNOWLEDGEMENT

All the praises to the most Beneficent and Compassionate, ‫ ﷲ‬the Almighty, Whose blessings and
strengths enabled us to complete this documentation for my BScs. Millions of Darood-o-Salam
to Holy Prophet Hazrat Muhammad‫ﷺ‬.The satisfaction that accompanies that the
successful completion of any task would be incomplete without the mention of people whose
ceaseless cooperation made it possible, whose constant guidance and encouragement crown
all efforts with success. We have made this report file on the topic online voting system. We have
tried our best to illustrate all the relevant detail to the topic to be included in the report. First and
foremost, I would like to express my humblest gratitude for my eminent good natured and
gracious supervisor, Mr. Abid Bashir. His vast knowledge in the subject, patience, enthusiasm,
expertise, instantaneous and timely guidance has always been a source of encouragement for me.
We have been extremely lucky for being able to work under supervision of encouraging and
considerate advisor. His invaluable help and suggestions throughout the work have contributed
to the success of this research work. We are really grateful to Mr. Abid Bashirfor the valuable
suggestions and advices. We thank him for providing us the support, confidence and most
importantly the track for the topic whenever we needed it.Working as a team we realized lot of
things like how to manage work as a team, experience to work in a team. We also want to thanks
to all the professors and all staff members and friends for all the help and co-ordination extended
in bringing out this project report successfully in time.Last but not least; we are very much
thankful to our parents who guided us in every step which we took.

6
Online Voting System

1 CHAPTER: 1

INTRODUCTION TO THE PROBLEM

7
Online Voting System

1.1 Introduction
Over the last few years, there have been a number of election observers who have suggested
electoral organizations should introduce electronic voting at State and Local Governmentelection
processes. Several countries have experimented with casting votes over the Internet, but today,
no nation uses. The Administrator’s effort is much reduced because now he can easily announce
the result by doing any mistake.In this voting system each voter will be provided with a specific
voter-id and a password through which access for the voting can be granted. If once the access is
granted for a voter-id then the access is denied for logging in till the voting system is refreshed
for the next election. Similarly the administrator will be provided with a special id through which
he can view the status of the election.This system is designed to minimize the errors of vote
counting. The individual votes are submitted in a database which can be queried to find out who
of the candidates for a given post has the highest number of votes

1.2 Purpose
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. The main purpose of this system is to reduce the complexity
and cost of the election process and also voters can vote their candidate without any difficulty.

8
Online Voting System

1.3 Objectives
The specific objectives of our project include:

1. Reviewing: Reviewing the existing/current voting process in our Country.


2. Validation: Validating the system to ensure that only legible can vote.
3. Performance: The size of the election should notaffect performance.
4. Skills: The system should allow and assist voters to cast their votes quickly, in one
session, and with minimal equipment and special skills.
5. Information: To deliver information about elections, candidates and their parties.
6. Privacy: No voter is allowed to see the votes of any other voter.
7. Flexibility: The system should allow a variety of ballot formats and it should be
customized to the specific characteristics of the voting processes.
8. Policies: No rules and regulations should be changed after the election has been started.
9. Efficiency. All computations during the election are done in a reasonable amount of time
and voters are not required to wait on other voters to complete the process.

1.4 Existing Solution


The problems of the existing manual system of voting include:

1. Expensive and Time Consuming.


2. Too much paper work.
3. Errors during data entry.
4. Loss of registration forms.
5. Short time provided to view the voter register.

9
Online Voting System

1.5 Proposed Solution


The new implemented voting protocol has following solutions:
1. The Voter
The voter which can be found at home, in a working station, in a special polling station or
any other device have the function of performing the Authentication and voting.
2. The Administrator
The administratorperforms the function of voter and candidate registration, authorizationand
validation of voter, database and counting and the result.
3. Public transparency
Public transparency is done by the administrator (publication of Voter ID key, etc.).
4. Security and Privacy
These two factors are considered to be the most important part of any system. In case of
Voting system the casting of votes should be monitored and kept secrets.

10
Online Voting System

2 CHAPTER: 2

Software Requirement Specification (SRS)

11
Online Voting System

2.1 Introduction:

This is the important chapter of our documentation as in it we will describe the functional and
non-functional requirements of the system. In this chapter we will describe the user and system
requirements. System requirements are more detailed requirements and may include more
technical information.Requirements should be explained in such a manner that it would be easy
for the user to understand it properly.

2.1.1 Purpose:

The purpose of this chapter is to make the functional and non-functional requirements of the
Online Voting System easy to comprehend. It also servers making the functionality clear to the
users. Voting is considered to be the most important part of any developing Country. The voting
criteria in Pakistanis not fair and the declaration of result takes a lot of time. Our system is
designed in such a way that user can voting easily while sitting at home without going to any
polling stations. Voter will be provided with full rights to cast his/her vote to the deserving
candidate. Casting of vote should be kept secret. Voter will be provided by a unique username
and password for the voting and he/she can log-in for casting vote. All the entries will be
checked by the DATABASE which has already all information about the voter. If all the
entriesare correct than voter will be allowed to vote otherwise permission will be discarded.

2.1.2 Intended audience and reading suggestions:

The intended audience of this document is the potential end user. The SRS chapter is used to
provide all the information related to the system in a very easy and affected manner that every
user who is interested in voting can use it easily. All the functional and non-functional
requirements are explained in it which are the main parts of any system. Getting attention from
the user is our first priority so all the things are explained very easily which makes our system
user-friendly. The chapter also serve as a reference guide to the developers of the system.

12
Online Voting System

2.1.3 Scope:

The software produced will be an online voting system. The main objective of this software is to
increase the overall voting percentage. It will maintain the database of all the eligible citizens
and candidates. It will manage all the account details of the voters such as citizen name, date of
birth, their constituency area, region, state, login id and password of the voter from one central
location.

2.2 Overall Description


2.2.1 Product Perspective:

This software product is a standalone system and not a part of a larger system. The system will
be very fast and efficient. Before the Election Day the system will be used for general purposes
such as viewing candidates, profiles and past year’s election results. The voters will reach the
system through web pages by using web-browsers such as Mozilla, Internet Explorer and Google
Chrome. On the Election Day another independent system will be used for voting operations.
This system will be adapted to the computers at the polling stations. The voters can cast their
votes using the interface that are provided at these machines. These votes are accepted by the
system on the server. Voters information will be kept save during registration. Providing security
to the user’s information is ours Product main goal.

2.2.2 User Characteristics:


Following are the characteristics of user
 The user should have a basic knowledge of how to use a web browser and navigate
through web pages.
 The users should be aware that they have to keep their user-id and password confidential.
 User should have brief knowledge of voting rules and regulations.
 One should know English language.
 Every user should be comfortable withinternet browser.
 User should be concerned about fair voting.

13
Online Voting System

2.2.3 Constraints:

 User should know how to use internet


 User can vote only one candidate.
 A user cannot be registered twice.
 Login and password is used for identification of Voter.
 Admin should add only those candidates who are eligible for elections.

2.3 Specific Requirement


2.3.1 Product Function:

The online voting system provides the real time information about the voting criteria. The main
purpose of this project is to reduce the manual work and to save time. This system is capable of
managing the voters, candidates, updating or deleting the voters and candidates, providing every
voter a user name or password, calculating results. There are two admins in our project one is
sub-admin and other is super-admin. They will be controlling the voters and the candidates. The
voters and candidates information can be fetched from the database. The valid users are allowed
to view their information and are allowed to cast vote.

2.3.2 User classes and characteristics:

Users of online voting are those who wants result in less time in orderto fulfil this requirement
system should be fast, easy to understand and free of errors.

Project is divided in to main classes

Customer: They are the one who actually uses the system. They are divided into main three
categories

o Owner
o Admin
o Voters

Developer: The team of Online Voting System are the developer. They can perform the cruds
operations and can use the System. It’s their responsibility to check whether the system is
working properly or not.

14
Online Voting System

Designer: Those who have designed the websitefor online voting system. They can only edit,
change the design of the website. They know how to attract users by their design.

Implementer: Those who puts functional requirements in to practice. They only performs those
functional requirements which are given by the developer. They cannot expand the functions of
the system without the permission of the developer.

OVS Users: Those who only uses the system for voting. They are not allowed to edit or change
anything.

2.4 Operating Environment:

The browsers through which the voters access the server should have minimal support for
cookies and encrypted transactions.The product will be operating in windows environment. The
Online Voting Systemshould operate in all famous browsers, for a model we are taking
Microsoft Internet Explorer,Google Chrome,and Mozilla Firefox. Also it will be compatible with
the IE 6.0. Most of the features will be compatible with the Mozilla Firefox & Opera 7.0 or
higher version. The only requirement to use this system would be the internet connection.

2.4.1 System Features:

 OVS provides easy login so that voters can vote or register easily.
 OVS provide total anonymity to voters.
 OVS provides a website for the elections where a user can see all the latest updates of
elections.
 OVS contains multiple admins one for controlling voters and one for candidates.
 Strong authentication system so that no one except the Admin can get access to it.
 Separate registration forms for the voters and candidates.
 OVS is Free of errors and provides complete security. As security is the main issue facing
in many systems.

15
Online Voting System

2.5 Non-Functional Requirements:

i. Performance Requirements:The system is expected to have reasonable short time


response. The voter should be able to login and should be able to get response for his
requests in 2-3 seconds.
ii. Network Connectivity:Network Resources needs to be reliable. This system uses
internet connectivity to be able to communicate with the web services and relies heavily
on network connectivity. Network can be monitored and errors can be reported when
there is a network connectivity issue.
iii. System Maintenance: System will be used be using some additional components. Each
of these components might need an update or changes. Applying these changes during the
maintenance should be relatively easy.
iv. Usability: It is expected that the user should be able to vote online easily. Administration
of the page also should be user friendly. User should complete voting in a few minutes.
Website shouldprovide an online help to the user if needed.
v. Reliability: The system should be reliable. Security is a major concern for an online
voting system. Process used in this system should be secure enough to be able to meet the
requirements mentioned for e-voting. It requires database connections and network
connections. Changes can be done in the databases to store the votes. All changes needs
to be confirmed and if the transfer is complete the confirmation should be displayed. The
changes should be monitored.
vi. Supportability: It should support all the browsers.Future enhancements or improvements
canbe considered during the design and development.
vii. Security: The system should provide basic security features like password and
authentication. All the passwords generated and communicated to the users should be
stored in the server onlyin an encrypted form for login management to prevent misuse.
Additional security features like voter anonymity and threshold schemes should be added
as a software important feature.

16
Online Voting System

2.6 Technical Specification

This section describes the high-level technical design for online voting system. It details our
technical goal for online voting system.

2.6.1 Hardware Requirements

As this application can be accessed via internet, only web server is required as a hardware
interface to be able to run it. It is assumed that web server is in a secure environment with
necessary firewall and network setting done.

2.6.2 Software Requirements


The SRS document states precisely those functions and capabilities a software system must
provide. It has four major goals:
o It provides feedback to customers.
o It divides the problem into different component parts.
o It gives an input to the design specification.
o It serves as a product validation check.

2.7 Functional Requirements


Functional requirement is used to define a function of a systemand its components. Functional
Requirements of OVSmay be its technical details, data manipulation and processing and other
specific functionality that define what a system is going to do.

17
Online Voting System

2.7.1 Super-admin rights

o Register Sub-admin
o Delete Sub-admin

ID FR_1
Name Register Sub-admin
Description Super-admin can register sub-admin
Input Register username and password of sub-admin.
Output Sub-Admin is registered
Basic Flow o Enter username and password of sub-admin.
o Username and password saves in database
o Sub-admin is registered.
o Sub-admin can use it for login process.
TABLE 2-1

ID FR_2
Name Delete sub-admin
Description Super-admin can delete sub-admin
Input o Username
o Password
Output Sub-admin is deleted.
Basic Flow o Super-admin can delete sub-admin.
o Super-admin enters username and password
o Clicks “Delete” button.
o Sub-admin is deleted.
TABLE 2-1

18
Online Voting System

Sub-admin Rights
o Register Party
o Register Candidate
o Start Voting and Terminate Voting

ID FR_3
Name Register Party
Description Sub-admin can register party.
Input Adding details of party including
o Party name
o Leader name
o Address
o Party Symbol
o Nominated Candidates

Output Party is registered.


Basic Flow o Sub-admin enters system home page.
o Clicks “Party Register” button.
o Enters details of party.
o Now the party is registered.
TABLE 2-2

ID FR_4
Name Register Candidate
Description Sub-admin can register candidate.
Input Entering details of candidates:
o Candidate Name
o Party Name
o Constituency Name
o CNIC
o Educational Qualification
o Present Occupation
o National Tax Number (if any)
o Election Symbol
Output Candidate is registered.
Basic Flow o Sub-admin enters system home page.
o Clicks “Candidate Register” button.
o Fills details of each candidate.
o Now the candidate is registered.

19
Online Voting System

TABLE 2-3

ID UC_5
Name Start Voting and terminate voting
Description Time at which the voting process starts and ends.
Input Time added by the sub-admin
Output Time displayed on the website.
Basic Flow o Time added by sub-admin.
o Voting starts automatically on time.
o Votes save in database.
TABLE 2-4

Super-admin/Sub-admin
o Login
o Logout
o View Constituency Details
o Update Constituency Details
o Delete Constituency Details
o Search Constituency Details
o View Party Details
o Update Party Details
o Delete Party Details
o Search Party Details
o View Candidate Details
o Update Candidate Details
o Delete Candidate Details
o Search Candidate Details
o View Voter Details
o Update Voter Details
o Delete Voter Details
o Search Voter Details

20
Online Voting System

o View Result Details


o Update Result Details
o Search Result

ID FR_6
Name Login
Description Super-admin/Sub-admin can login.
Input o Username
o Password
Output Super-admin/Sub-admin is login.
Basic Flow o Super-admin/Sub-admin enters system home page.
o Super-admin/Sub-admin clicks “login” button.
o Enters username and password.
o Admin is login.
TABLE 2-5

ID FR_7
Name Logout
Description Super-admin/Sub-admin can logout.
Input Click the logout button.
Output Super-admin/Sub-admin is logout.
Basic Flow o Super-admin/Sub-admin enters system home page.
o Super-admin/Sub-admin clicks “logout” button.
o Super-admin/Sub-admin is logout.
TABLE 2-6

ID FR_8
Name View Constituency Details
Description Super-admin/Sub-admin can view constituency details.
Input Click the constituency detail page.

21
Online Voting System

Output o Constituency name


o Political party
o Candidate name
Basic Flow o Super-admin/Sub-admin enters system home page.
o Clicks“Constituency details” button.
o View details.

TABLE 2-7

ID FR_9
Name Update Constituency Details
Description Super-admin/Sub-admin can update constituency details.
Input Updating details about constituency.
Output Details updated.
Basic Flow o Super-admin/Sub-admin enters system home page.
o Clicks “Constituency details” button.
o Clicks “Update” button.
o Details are updated.

TABLE 2-8

ID FR_11
Name Delete Constituency Details
Description Super-admin/Sub-admin can delete constituency details.
Input Clicks delete button.
Output Details deleted.
Basic Flow o Super-admin/Sub-admin enters system home page.
o Clicks “Constituency details” button.
o Clicks “Delete” button.
o Now details are deleted.
ID FR_10
Name Search Constituency Details
Description Super-admin/Sub-admin can search constituency details.

22
Online Voting System

Input Clicks “Search” button.


Output o Constituency name
o Political party
o Candidate name
Basic Flow o Super-admin/Sub-admin enters system home page.
o Clicks “Constituency details” button.
o Clicks “Search” button.
o Enter Constituency No.
o Complete details are shown.

TABLE 2-9

TABLE 2-10

ID FR_12
Name View Party Details
Description Super-admin/Sub-admin can view party details.
Input Clicks parties detail page.
Output o Name of political party
o Name of leader
o Election Symbol
o Constituency
Basic Flow o Super-admin/Sub-admin enters system home page
o Clicks “Party details” button.
o View the details.

TABLE 2-11

ID FR_13

23
Online Voting System

Name Update party Details


Description Super-admin/Sub-admin can update party details.
Input Updating details about parties.
Output Details updated.
Basic Flow o Super-admin/Sub-admin enters system home page
o Clicks “Party details” button.
o Clicks “Update” button.
o Update the details.

TABLE 2-12

ID FR_15
Name Delete Party Details
Description Super-admin/Sub-admin can delete party details.
Input Clicks delete button.
Output Details deleted.
Basic Flow o Super-admin/Sub-admin enters system home page
o Clicks “Party details” button.
o Clicks “Delete” button.
o Now details are deleted.

ID FR_14
Name Search Party Details
Description Super-admin/Sub-admin can search party details.
Input Clicks the search button.
Output o Name of political party
o Name of leader
o Election Symbol
o Constituency
Basic Flow o Super-admin/Sub-admin enters system home page.
o Clicks “Party details” button.
o Clicks “Search” button.
o Enters party name.
o Details are shown.
TABLE 2-13

24
Online Voting System

TABLE 2-14

ID FR_16
Name View Candidate Details
Description Super-admin/Sub-admin can view candidate details.
Input Super-admin/Sub-admin clicks candidate’s details button.
Output o Name of political party
o Name of leader
o Name of Candidate
o Election Symbol
o Constituency
o City
Basic Flow o Super-admin/Sub-admin enters system home page.
o Clicks “Candidate details” button
o View the details.

TABLE 2-15

ID FR_17
Name Update Candidate Details
Description Super-admin/Sub-admin can update candidate details.
Input Updating details about candidates.
Output Details updated
Basic Flow o Super-admin/Sub-admin enters system home page.
o Clicks “Candidate details” button.
o Clicks “Update” button.
o Update the details.

25
Online Voting System

TABLE 2-16

ID FR_19
Name Delete Candidate Details
Description Super-admin/Sub-admin can delete candidate details.
Input Clicks the delete button.
Output Details deleted.
Basic Flow o Super-admin/Sub-admin enters system home page.
o Clicks “Candidate details” button.
o Clicks “Delete” button.
o Details are deleted.
ID FR_18

Name Search Candidate Details

Description Super-admin/Sub-admin can search candidate details.

Input Clicks the search button.

Output o Name of political party


o Name of leader
o Name of Candidate
o Election Symbol
o Constituency
o City

Basic Flow o Super-admin/Sub-admin enters system home page


o Clicks “Candidate” details button.
o Clicks “Search” button.
o Enter candidate name.
o Details are shown

TABLE 2-17

TABLE 2-18

26
Online Voting System

ID FR_20
Name View Voter Details
Description Super-admin/Sub-admin can view voter details.
Input Super-admin/Sub-admin clicks voters details page.
Output o Name
o City
o Constituency
Basic Flow o Super-admin/Sub-admin enters system home page.
o Super-admin/Sub-admin clicks “Voter details” button.
o Information displayed.

TABLE 2-19

ID FR_21
Name Update Voter Details
Description Super-admin/Sub-admin can update voter details.
Input Super-admin/Sub-admin clicks update button.
Output Details updated
Basic Flow o Super-admin/Sub-admin enters system home page
o Clicks “Voter details” button.
o Clicks “Update” button.
o Update the details.
TABLE 2-20

ID FR_22
Name Delete Voter Details
Description Super-admin/Sub-admin can delete voter details.
Input Super-admin/Sub-admin clicks detail button.
Output Details deleted.
Basic Flow o Super-admin/Sub-admin enters system home page
o Clicks “Voter details” button.
o Super-admin/Sub-admin clicks the delete button.

27
Online Voting System

o Now details are deleted.

TABLE 2-21

ID FR_23
Name Search Voter Details
Description Super-admin/Sub-admin can search voter details.
Input Clicks the search button.
Output o Name
o City
o Constituency
Basic Flow o Super-admin/Sub-adminvisits system home page.
o Clicks “Search” button.
o Enter CNIC no.
o Details are shown.

TABLE 2-22

ID FR_24
Name View Result Details.
Description Super-admin/Sub-admin can view result details.
Input Super-admin/Sub-admin clicks result details button.
Output o Constituency
o Name
o Party
o Total votes
o Candidates Picture
Basic Flow o Super-admin/Sub-admin enters system home page.
o Clicks “Result details” button.
o Information displayed.
TABLE 2-23

28
Online Voting System

ID FR_25
Name Update Result Details.
Description Super-admin/Sub-admin can view result details.
Input Super-admin/Sub-admin clicks result details button.
Output o Constituency
o Name
o Party
o Total votes
o Candidate Picture
Basic Flow o Super-admin/Sub-admin enters the system home page.
o Clicks “Result details” button.
o Clicks “Update” button.
o Update the result details.
TABLE 2-24

ID FR_26
Name Search Result
Description Super-admin/Sub-admin can search result
Input Enter constituency No.
Output Information displayed.
Basic Flow o Super-admin/Sub-admin enters system home page.
o Super-admin/Sub-admin clicks “Search” button.
o Enters Constituency No to search result information.
o Information displayed.
TABLE 2-25

Voter rights

o Signup
o Login
o Logout
o View Information
o Password Recovery

29
Online Voting System

o Caste Vote
o View Constituency Details0
o Search Constituency Details
o View Party Details
o Search Party Details
o View Candidates Details
o Search Candidate Details
o View Result Details
o Search Result

ID FR_27

Name Sign up

Description Voter can sign up.

Input Basic details of sign up form


o First Name
o Last Name
o Gender
o CNIC
o DOB
o Address
o City
o NIN NO (if any)
o Passport no(if any)
o Username
o Password
Output Voter is registered.

Basic Flow o Voter clicks “Sign Up” button.


o Fills sign up form

30
Online Voting System

o Now the voter is registered.


TABLE 2-26

ID FR_28
Name Login
Description Voter can login
Input o User name
o Password
Output Voter is login
Basic Flow o Voter clicks “login” button.
o Enter username and password.
o Now Voter is login.

TABLE 2-27

ID FR_29
Name Logout
Description Voter can logout
Input Clicks logout button
Output Voter is logout
Basic Flow o Voter click the “logout” button.
o Now Voter is logout.

TABLE 2-28

ID FR_30
Name View Information
Description Voter can view his/her own information.
Input Enter CNIC no.
Output o Name
o CNIC
o Address
o Constituency
Basic Flow o Voter visits system home page.

31
Online Voting System

o Voter clicks “Search” button.


o Provide CNIC No to search information.
o Information displayed.
TABLE 2-29

ID FR_31
Name Password Recovery
Description Voters can recovery password
Input Answer security question
New password
Confirm password
Output Successfully recover.
Basic Flow o Voter wants to change password.
o Answer security question.
o Enter current password.
o Enter new password.
o Now password is changed.

TABLE 2-30

ID FR_32
Name Caste Vote
Description Voters can vote the deserving candidate.
Input o Username
o CNIC
o Password
Output Successfully vote.
Basic Flow o Clicks “Caste Vote” button.
o Enters username CNIC and password.
o Clicks “Save Vote” button.
o Vote saved in database.
TABLE 2-31

32
Online Voting System

ID FR_33
Name View Constituency Details
Description Voter can view constituency details.
Input Clicks the constituency detail page.
Output o Constituency name
o Political party
o Candidate name
Basic Flow o Voter visits system home page.
o Clicks “Constituency details” button.
o View the details.

TABLE 2-32

ID FR_34
Name Search Constituency details
Description Voter can search constituency.
Input Enter NA no.
Output Information displayed.
Basic Flow o Voter visit system home page.
o Voter clicks “Search” button.
o EntersConstituency No.
o Information displayed.
TABLE 2-33

ID FR_35

33
Online Voting System

Name View Party Details


Description Voter can view party details.
Input Clicks the party detail page.
Output o Name of political party
o Name of leader
o Election Symbol
o Constituency
Basic Flow o Voter visits system home page.
o Clicks “Party details” button.
o View the details.

TABLE 2-34

ID FR_36
Name Search Party Details
Description Voter can search party.
Input Enter party name
Output Information of party displayed.
Basic Flow o Voter visits system home page.
o Voter clicks “Search” button.
o Enters party name.
o Information displayed.
TABLE 2-35

ID FR_37
Name View Candidate Details
Description Voter can view candidate details.
Input Voter clicks candidate details button.
Output o Name of political party
o Name of leader
o Name of Candidate

34
Online Voting System

o Election Symbol
o Constituency
o City
Basic Flow o Voter visits system home page
o Click “Candidate details” button
o View the details.

TABLE 2-36

ID FR_38
Name Search Candidate Details
Description Voter can search candidate.
Input Enter candidate name.
Output Information of candidate displayed.
Basic Flow o Voter visits the system home page.
o Voter clicks the “Search” button.
o Enters candidate name.
o View the details.
TABLE 2-37

ID FR_39
Name View Result Details.
Description Voter can view result details.
Input Voter clicks result details button.
Output o Constituency
o Name
o Party
o Total votes
o Picture
Basic Flow o Voter visits the system home page.
o Click “Result details” button.
o View the details.
TABLE 2-38

35
Online Voting System

ID FR_40
Name Search Result.
Description Voter can search result.
Input Enter Constituency No.
Output Information displayed.
Basic Flow o Voter visits system home page.
o Voter clicks the “Search” button.
o Enter Constituency No.
o Information displayed.
TABLE 2-39

36
Online Voting System

3 CHAPTER: 3

ANALYSIS (USE CASE DESCRIPTION


AND USE CASE MODEL)

37
Online Voting System

3.1 Use Case Model

A use case diagram is a graphic depiction of the interaction among the elements of a system. A
use case is a methodology used in system analysis to identify, clarify and organize system
requirements. A use case represents adiscrete unit of interaction between a user and thesystem.
The use case diagrams provided below is direct correspondence with each of the functional
requirements item discussed in the requirement section of the report.

3.1.1 Vision

Online voting system target the audience those are interested in voting without going to any
polling stations. The main purpose of this system is to provide every voter the right to votefor the
deserving candidate.

38
Online Voting System

Super-admin Use Case


Operation: Register Sub-admin

FIGURE 1

ID UC_1
Name Register Sub-admin
Actor Super-admin
Description Super-admin can register sub-admin
Pre-condition o Username
o password
Post-condition Sub-Admin is registered
Basic Flow o Enter username and password of sub-admin.
o Username and password saves in database
o Sub-admin is registered.
o Sub-admin can use it for login process.
Alternative Flow None.
TABLE 3-40

Operation: Delete Sub-admin

39
Online Voting System

FIGURE 2

ID UC_2
Name Delete sub-admin
Actor Super-admin
Description Super-admin can delete sub-admin
Pre-condition o Username
o Password
Post-condition Sub-admin is deleted.
Basic Flow o Super-admin can delete sub-admin.
o Super-admin enters username and password
o Clicks “Delete” button.
o Sub-admin is deleted.
Alternative Flow None.
TABLE 3-41

Sub-admin Use Case


Operation: Register Party

40
Online Voting System

FIGURE 3

ID UC_3
Name Register Party
Actor Sub-admin
Description Sub-admin can register party
Pre-condition Adding details of party including
Party name
Leader name
Address
Party Symbol
Nominated Candidates

Post-condition Party is registered.


Basic Flow o Sub-admin enters system home page.
o Clicks “Party Register” button.
o Enters details of party.
o Now the party is registered.
Alternative Flow Parties that are not approved by the Election Commission will not be
registered.
TABLE 3-42

Operation: Register Candidate

41
Online Voting System

FIGURE 4

ID UC_4
Name Register Candidate
Actor Sub-admin
Description Sub-admin can register candidate.
Pre-condition Entering details of candidates:
o Candidate Name
o Party Name
o Constituency Name
o CNIC
o Educational Qualification
o Present Occupation
o National Tax Number (if any)
o Election Symbol
Post-condition Candidate is registered.
Basic Flow o Sub-admin enters system home page.
o Clicks “Candidate Register” button.
o Fills details of each candidate.
o Now the candidate is registered.
Alternative Flow Candidates that are not approved by the Election Commission will not be
registered.
TABLE 3-43

Operation: Start Voting and Terminate Voting

42
Online Voting System

FIGURE 5

ID UC_5
Name Start Voting and terminate voting
Actor Sub-admin
Description Time at which the voting process starts and ends.
Pre-condition Time added by the sub-admin
Post-condition Time displayed on the website.
Basic Flow o Time added by sub-admin.
o Voting starts automatically on time.
o Votes save in database.
Alternative Flow Votes cancelled after given time.
TABLE 3-44

3.2 Super-admin/Sub-adminUse Case

This use case displays the functions that Super-admin/Sub-admin can perform in the system.

o Login
o Logout

43
Online Voting System

o View Constituency Details


o Update Constituency Details
o Delete Constituency Details
o Search Constituency Details
o View Party Details
o Update Party Details
o Delete Party Details
o Search Party Details
o View Candidate Details
o Update Candidate Details
o Delete Candidate Details
o Search Candidate Details
o View Voter Details
o Update Voter Details
o Delete Voter Details
o Search Voter Details
o View Result Details
o Update Result Details
o Search Result

Aggregated diagram

44
Online Voting System

FIGURE 6

Use case Scenario’s


Use cases of Super-admin/Sub-admin

Operation: login

45
Online Voting System

FIGURE 7

ID UC_6
Name Login
Description Super-admin/sub-admin can login.
Actor Super-admin/Sub-admin
Pre-condition o Username
o Password
Post-condition Super-Admin/Sub-admin is log-in
Basic Flow o Super-Admin/Sub-adminenters system home page.
o Super-Admin/Sub-admin clicks “login” button.
o Enters username and password.
o Now the super-admin/Sub-admin is login.
Alternative Flow If the username and password is wrong error message will be shown.
TABLE 3-45

Operation: logout

46
Online Voting System

FIGURE 8

ID UC_7
Name Logout
Description Super-admin/sub-admin can logout.
Actor Super-admin/Sub-admin
Pre-condition Clicks logout button.
Post-condition Super-Admin/Sub-admin is logout.
Basic Flow o Super-admin/Sub-admin clicks “logout” button.
o Now Super-admin/Sub-admin is logout.
Alternative Flow None.
TABLE 3-46

47
Online Voting System

Operation: View Constituency Details

FIGURE 9

ID UC_8
Name View Constituency Details
Actor Super-admin/Sub-admin
Description Super-admin/Sub-admin can view constituency details.
Pre-condition Clicks the constituency detail page.
Post-condition o Constituency name
o Political party
o Candidate name
Basic Flow o Super-/Sub-admin enters the system home page
o Clicks constituency detail button
o View details.
Alternative Flow None.

TABLE 3-47

Operation: Update Constituency Details

48
Online Voting System

FIGURE 10

ID UC_9
Name Update Constituency Details
Actor Super-admin/Sub-admin
Description Super-admin/Sub-admin can update constituency details.
Pre-condition Updating details about constituency
Post-condition Details updated
Basic Flow o Enter the system home page.
o Clicks constituency detail button
o Clicks the update button.
o Details are updated.
Alternative Flow None.

TABLE 3-48

Operation: Delete Constituency Details

49
Online Voting System

FIGURE 11

ID UC_10
Name Delete Constituency Details
Actor Super-admin/Sub-admin
Description Super-admin/Sub-admincan delete constituency details.
Pre-condition Clicks the delete button.
Post-condition Details deleted.
Basic Flow o Super-admin/Sub-admin enters system home page.
o Clicks “Constituency details” button.
o Clicks “Delete” button.
o Now details are deleted.
Alternative Flow None.

TABLE 3-49

Operation: Search Constituency Details

50
Online Voting System

FIGURE 12

ID UC_11
Name Search Constituency Details
Actor Super-admin/Sub-admin
Description Super-admin/Sub-admin can search constituency details.
Pre-condition Clicks the search button.
Post-condition o Constituency name
o Political party
o Candidate name
Basic Flow o Super-admin/Sub-admin enters system home page
o Clicks “Constituency details” button.
o Clicks “Search” button.
o Enter Constituency No.
o Complete details are shown.
Alternative Flow None.

TABLE 3-50

Operation:View Party Details

51
Online Voting System

FIGURE 13

ID UC_12
Name View Party Details
Actor Super-admin/Sub-admin
Description Super-admin/Sub-admin can view party details.
Pre-condition Clicks party details page.
Post-condition o Name of political party
o Name of leader
o Election Symbol
o Constituency
Basic Flow o Super-admin/Sub-admin enters system home page
o Clicks “Parties details” button.
o View the details.
Alternative Flow None.

TABLE 3-51

Operation:Update Party Details

52
Online Voting System

FIGURE 14

ID UC_13
Name Update Party Details
Actor Super-admin
Description Super-admin can update party details.
Pre-condition Updating details of party.
Post-condition Details updated.
Basic Flow o Super-admin enters system home page
o Clicks “Parties details” button.
o Clicks “Update” button
o Update the details.
Alternative Flow None.

TABLE 3-52

Operation:Delete Party Details

53
Online Voting System

FIGURE 15

ID UC_14
Name Delete Party Details
Actor Super-admin/Sub-admin
Description Super-admin/Sub-admin can delete party details.
Pre-condition Clicks the delete button.
Post-condition Details deleted.
Basic Flow o Super-admin/Sub-admin enters system home page
o Clicks “Parties details” button.
o Clicks “Delete” button.
o Now details are deleted.
Alternative Flow None.

TABLE 3-53

Operation:Search Party Details

54
Online Voting System

FIGURE 16

ID UC_15
Name Search Party Details
Actor Super-admin/Sub-admin
Description Super-admin can search party details.
Pre-condition Clicks the search button.
Post-condition o Name of political party
o Name of leader
o Election Symbol
o Constituency

Basic Flow o Super-admin/Sub-admin enters system home page.


o Clicks “Parties details” button.
o Clicks “Search” button.
o Enters party name.
o Details are shown.
Alternative Flow None.

TABLE 3-54

Operation:View Candidate Details

55
Online Voting System

FIGURE 17

ID UC_16
Name View Candidate Details
Actor Super-admin/Sub-admin
Description Super-admin/Sub-admin can view candidate details.
Pre-condition Super-admin/Sub-admin clicks candidate details button.
Post-condition o Name of political party
o Name of leader
o Name of Candidate
o Election Symbol
o Constituency
o City
Basic Flow o Super-admin/Sub-admin enters system home page.
o Clicks “Candidates details” button
o View the details.
Alternative Flow None.

TABLE 3-55

Operation:Update Candidate Details

56
Online Voting System

FIGURE 18

ID UC_17
Name Update Candidate Details
Actor Super-admin/Sub-admin
Description Super-admin/Sub-admin can update candidate details.
Pre-condition Updating details about candidate.
Post-condition Details updated
Basic Flow o Super-admin/Sub-admin enters system home page.
o Click “Candidates details” button.
o Clicks “Update” button.
o Update the details.
Alternative Flow None.

TABLE 3-56

Operation:Delete Candidate Details

FIGURE 19

ID UC_18
Name Delete Candidate Details
Actor Super-admin/Sub-admin
Description Super-admin/Sub-admin can delete candidate details.

57
Online Voting System

Pre-condition Clicks the delete button.


Post-condition Details deleted.
Basic Flow o Super-admin/Sub-admin enters system home page.
o Click “Candidates details” button.
o Clicks “Delete” button.
o Details are deleted.
Alternative Flow None.

TABLE 3-57

Operation:Search Candidate Details

FIGURE 20

ID UC_19
Name Search Candidate Details
Actor Super-admin/Sub-admin
Description Super-admin/Sub-admin can search candidate details.
Pre-condition Clicks the search button.
Post-condition o Name of political party
o Name of leader
o Name of Candidate
o Election Symbol

58
Online Voting System

o Constituency
o City
Basic Flow o Super-admin/Sub-admin enters system home page
o Clicks “Candidates” details button.
o Clicks “Search” button.
o Enter candidate name.
o Details are shown
Alternative Flow None.

TABLE 3-58

Operation: View Voter Details

FIGURE 21

ID UC_20
Name View Voter Details
Actor Super-admin/Sub-admin
Description Super-admin/Sub-admin can view voter details.
Pre-condition Super-admin/Sub-admin clicks voter details page.
Post-condition o Name
o City
o Constituency
Basic Flow o Super-admin/Sub-admin enters system home page.
o Super-admin/Sub-admin clicks “Voter details” button.
o Information displayed.
Alternative Flow None.

59
Online Voting System

TABLE 3-59

Operation: Update Voter Details

FIGURE 22

ID UC_21
Name Update Voter Details
Actor Super-admin/Sub-admin
Description Super-admin/Sub-admin can update voter details.
Pre-condition Super-admin/Sub-admin clicks update button.
Post-condition Details updated
Basic Flow o Super-admin/Sub-admin enters system home page
o Clicks “Voter details” button.
o Clicks “Update” button.
o Update the details.
Alternative Flow None.

TABLE 3-60

60
Online Voting System

Operation: Delete Voter Details

ID UC_22
Name Delete Voter Details
Actor Super-admin/Sub-admin
Description Super-admin/ Sub-admin can delete voter details.
Pre-condition Super-admin/ Sub-admin clicks detail button.
Post-condition Details deleted.
Basic Flow o Super-admin/ Sub-admin enters system home page
o Clicks “Voter details” button.
o Super-admin clicks the delete button.
o Now details are deleted.
Alternative Flow None.
FIGURE 23

TABLE 3-61

61
Online Voting System

Operation: Search Voter Details

FIGURE 24

ID UC_23
Name Search Voter Details
Actor Super-admin/Sub-admin
Description Super-admin/Sub-admin can search voter details.
Pre-condition Clicks the search button.
Post-condition o Name
o City
o Constituency
Basic Flow o Super-admin/Sub-admin visits system home page.
o Clicks “Search” button.
o Enter CNIC no.
o Details are shown.

Alternative Flow None.

TABLE 3-62

Operation:View Result Details

62
Online Voting System

FIGURE 25

ID UC_24
Name View Result Details.
Actor Super-admin/Sub-admin
Description Super-admin/Sub-admin can view result details.
Pre-condition Super-admin/Sub-admin clicks result details button.
Post-condition o Constituency
o Name
o Party
o Total votes
o Candidates Picture
Basic Flow o Super-admin/Sub-adminvisits the system home page.
o Clicks “Result details” button.
o Information displayed.
Alternative Flow None.
TABLE 3-63

Operation:Update Result Details

63
Online Voting System

FIGURE 26

ID UC_25
Name Update Result Details.
Actor Super-admin/Sub-admin
Description Super-admin/Sub-admin can view result details.
Pre-condition Super-admin/Sub-admin clicks result details button.
Post-condition o Constituency
o Name
o Party
o Total votes
o Candidates Picture
Basic Flow o Super-admin/Sub-admin enters the system home page.
o Clicks “Result details” button.
o Clicks “Update” button.
o Update the result details.
Alternative Flow None.
TABLE 3-64

Operation: Search Result Details

64
Online Voting System

FIGURE 27

ID UC_26
Name Search Result
Actor Super-admin/Sub-admin
Description Super-admin/Sub-admincan search result.
Pre-condition Enter Constituency No.
Post-condition Information displayed.
Basic Flow o Super-admin/Sub-admin enters system home page.
o Super-admin/Sub-admin clicks “Search” button.
o Enters Constituency No to search result information.
o Information displayed.
Alternative Flow None.
TABLE 3-65

3.3 Voter Use Case


This use case displays the functions that voter can perform in the system.

65
Online Voting System

FIGURE 28

66
Online Voting System

3.3.1 Use cases of Voter


Operation: Signup

FIGURE 29

ID UC_27

Name Signup

Actor Voter

Description Voter can sign up.

Pre-condition Basic details of signup form


First Name
Last Name
Gender
CNIC
DOB
Address
City or Town
NIN NO (if any)
Passport no(if any)
Choose username
Create a password
Confirm your password
Post-condition Voter is registered

Basic Flow o Voter clicks “Sign Up” button.


o Fills sign up form
o Now the voter is registered.
Alternative Flow One registration per CNIC.
TABLE 3-66

Operation: Login

67
Online Voting System

FIGURE 30

ID UC_28
Name Login
Actor Voter
Description Voter can login
Pre-condition o User name
o Password
Post-condition Voter is login
Basic Flow o Voter clicks “login” button.
o Enter username and password.
o Now Voter is login.
Alternative Flow If the username and password is wrong error message will be shown.

TABLE 3-67

Operation: Logout

68
Online Voting System

ID UC_29
Name Logout
Actor Voter
Description Voter can logout
Pre-condition Clicks logout button
Post-condition Voter is logout
Basic Flow o Voter click the “logout” button.
o Now Voter is logout.
Alternative Flow None.
FIGURE 31

TABLE 3-68

Operation: View Information

69
Online Voting System

FIGURE 32

ID UC_30
Name View Information
Actor Voter
Description Voter can search information.
Pre-condition Enter CNIC No.
Post-condition Information displayed.
Basic Flow o Voter visits system home page.
o Voter clicks “Search” button.
o Provide CNIC No to search information.
o Information displayed.
Alternative Flow None.
TABLE 3-69

Operation: Password Recovery

70
Online Voting System

FIGURE 33

ID UC_31
Name Password Recovery
Actor Voter
Description Voters can recover password
Pre-condition Answer security question
New password
Confirm password
Post-condition Successfully recover.
Basic Flow o Voter wants to change password.
o Answer security question.
o Enter current password.
o Enter new password.
o Now password is changed.

Alternative Flow None.


TABLE 3-70

Operation: Caste Vote

71
Online Voting System

FIGURE 34

ID UC_32
Name Caste Vote
Actor Voter
Description Voters can vote the deserving candidate.
Pre-condition o Username
o CNIC
o Password
Post-condition Successfully vote.
Basic Flow o Clicks “Caste Vote” button.
o Enters username CNIC and password.
o Clicks “Save Vote” button.
o Vote saved in database.
Alternative Flow None.
TABLE 3-71

Operation: View Constituency Details

72
Online Voting System

FIGURE 35

ID UC_33
Name View Constituency Details
Actor Voter
Description Voter can view constituency details.
Pre-condition Clicks the constituency detail page.
Post-condition o Constituency name
o Political party
o Candidate name
Basic Flow o Voter visits system home page.
o Clicks “Constituency details” button.
o View the details.
Alternative Flow None.

TABLE 3-72

Operation: Search Constituency Details

73
Online Voting System

FIGURE 36

ID UC_34
Name Search constituency details
Actor Voter
Description Voter can search constituency.
Pre-condition Enter NA No.
Post-condition Information displayed.
Basic Flow o Voter visit system home page.
o Voter clicks “Search” button.
o Enters Constituency No.
o Information displayed.
Alternative Flow None.
TABLE 3-73

Operation: View Party Details

74
Online Voting System

ID UC_35
Name View Party Details
Actor Voter
Description Voter can view party details.
Pre-condition Clicks the party detail page.
Post-condition o Name of political party
o Name of leader
o Election Symbol
o Constituency
Basic Flow o Voter visits system home page.
o Clicks “Party details” button.
o View the details.

Alternative Flow None.


FIGURE 37

TABLE 3-74

Operation: Search Party Details

75
Online Voting System

FIGURE 38

ID UC_36
Name Search party details
Actor Voter
Description Voter can search party.
Pre-condition Enter party name
Post-condition Information of party displayed.
Basic Flow o Voter visits system home page.
o Voter clicks “Search” button.
o Enters party name.
o Information displayed.
Alternative Flow None.
TABLE 3-75

Operation: View Candidate Details

76
Online Voting System

ID UC_37
Name View Candidate Details
Actor Voter
Description Voter can view candidate details.
Pre-condition Voter clicks candidate’s details button.
Post-condition o Name of political party
o Name of leader
o Name of Candidate
o Election Symbol
o Constituency
o City
Basic Flow o Voter visits system home page
o Click “Candidate details” button
o View the details.

Alternative Flow None.


FIGURE 39

T ABLE3-76

Operation: Search Candidate Details

77
Online Voting System

FIGURE 40

ID UC_38
Name Search Candidate Details
Actor Voter
Description Voter can search candidates.
Pre-condition Enter candidate name
Post-condition Information of candidate displayed.
Basic Flow o Voter visits the system home page.
o Voter clicks the “Search” button.
o Enters candidate name.
o View the details.
Alternative Flow None.
TABLE 3-77

Operation: View Result Details

78
Online Voting System

FIGURE 41

ID UC_39
Name View Result Details.
Actor Voter
Description Voter can view result details.
Pre-condition Voter clicks result details button.
Post-condition o Constituency
o Name
o Party
o Total votes
o Picture
Basic Flow o Voter visits the system home page.
o Click “Result details” button.
o View the details.
Alternative Flow None.
TABLE 3-78

Operation: Search Result

79
Online Voting System

FIGURE 42

ID UC_40
Name Search Result
Actor Voter
Description Voter can search result
Pre-condition Enter Constituency No.
Post-condition Information displayed.
Basic Flow o Voter visits system home page.
o Voter clicks the “Search” button.
o Enter Constituency No.
o Information displayed.
Alternative Flow None.
TABLE 3-79

80
Online Voting System

4
5
6
7 CHAPTER: 4
DESIGN

81
Online Voting System

Architecture Diagram
Any real world system is used by different users. The users can be developers, testers, business
people, analysts and many more. So before designing a system the architecture is made with
different perspectives in mind. The most important part is to visualize the system from different
viewer’s perspective. The better we understand the better we make the system.

FIGURE 43

82
Online Voting System

Entity Relation Diagram

FIGURE 44

83
Online Voting System

Data Dictionary

Admin

Name Type Null


Id Int(10) No
username Varchar(25) No

Voter Information

Name Type Null


name Varchar(25) No
Cnic Varchar(25) No
Address Varchar(25) No
Constituency Varchar(25) No

Voter

Name Type Null


Id Int(10) No
F_name Varchar(25) No
L_name Varchar(25) No
gender Varchar(25) No
Cnic Varchar(25) No
Dob Varchar(25) No
Address Varchar(25) No
Nin_no Varchar(25) No
Passport_no Varchar(25) No
username Varchar(25) No
password Varchar(25) No

Party

Name Type Null


Id Int(10) No
name Varchar(25) No
Leader_name Varchar(25) No
Address Varchar(25) No
Symbol Varchar(25) No
Nominated_candidates Varchar(25) No

84
Online Voting System

Candidate

Name Type Null


Id Int(10) No
Name Varchar(25) No
Party_name Varchar(25) No
Constituency Varchar(25) No
Cnic Varchar(25) No
Educational_qualification Varchar(25) No
Present_occupation Varchar(25) No
Nin_no Varchar(25) No
Election_symbol Varchar(25) No

Result

Name Type Null


id Int (10) No
name Varchar(25) No
Party_name Varchar(25) No
Total_votes Varchar(25) No

Caste Vote

Name Type Null


Username Varchar (25) No
Cnic Varchar(25) No
Password Varchar(25) No

Data Flow Diagram (Level 0)


A context diagram is a top level (also known as "Level 0") data flow diagram. It only contains
one process node Process 0 that generalizes the function of the entire system in relationship to
external entities.

85
Online Voting System

FIGURE 45

Data flow diagram (level1)

Voter

86
Online Voting System

FIGURE 46

Class Diagram
The purpose of the class diagram is to model the static view of an application. The class
diagrams are the only diagrams which can be directly mapped with object oriented languages and
thus widely used at the time of construction.

87
Online Voting System

FIGURE 47

Activity Diagram
System Activity Diagram

88
Online Voting System

Activity diagram is basically a flow chart to represent the flow form one activity to another
activity. The activity can be described as an operation of the system.

The following diagram is drawn with the four main activities:

o Request send by voter


o Request check by sub-admin
o Confirm request
o Caste vote

FIGURE 48

Sub-admin Activity Diagram

Register Sub-admin Delete Sub-admin

89
Online Voting System

FIGURE 49 F IGURE 50

Sub-admin activity diagram


Register Party

90
Online Voting System

FIGURE 51

Register Candidate

91
Online Voting System

FIGURE 52

Start Voting and Terminate Voting

92
Online Voting System

FIGURE 53

Super-admin/Sub-admin Activity Diagram

93
Online Voting System

o Login
o Logout
o Register sub-admin
o Delete sub-admin
o View Constituency details
o Update Constituency details
o Delete Constituency details
o Search Constituency details
o View Parties details
o Update Parties details
o Delete Parties details
o Search Parties details
o View Candidates details
o Update Candidates details
o Delete Candidates details
o Search Candidates details
o View Voter details
o Update Voter details
o Delete Voter details
o Search Voter details
o View result details
o Update result details
o Search result
o Start voting
o Terminate voting

94
Online Voting System

Login

FIGURE 54

95
Online Voting System

Logout View Constituency details

FIGURE 55
FIGURE 56

96
Online Voting System

Update Constituency details Delete Constituency Details

FIGURE 57 F IGURE
58

97
Online Voting System

Search Constituency Details View Parties Details

FIGURE 59 F IGURE 60

98
Online Voting System

Update Parties Details Search Parties Details

FIGURE 61
FIGURE 62

99
Online Voting System

Delete Party details View Candidates details

FIGURE 63
FIGURE 64

100
Online Voting System

Update Candidates details Delete Candidate details

FIGURE 65
FIGURE 66

101
Online Voting System

Search candidates details View voter details

FIGURE 67
FIGURE 68

102
Online Voting System

Update Voter detailsDelete Voter Details

FIGURE 69FIGURE 70

103
Online Voting System

Search Voter Details View Result Details

FIGURE 71
FIGURE 72

104
Online Voting System

Update Result Details Search Result

FIGURE 73
FIGURE 74

105
Online Voting System

Voter Signup

106
Online Voting System

FIGURE 75

Voter Login

FIGURE 76

107
Online Voting System

View Information Password Recovery

FIGURE 77 F IGURE 78

108
Online Voting System

Caste Vote View Constituency Details

FIGURE 79FIGURE 80

109
Online Voting System

Search Constituency Details View Party Details

FIGURE 81
FIGURE 82

110
Online Voting System

Search Party Details View Candidate Details

FIGURE 83
FIGURE 84

111
Online Voting System

Search Candidate Details View Result Details

FIGURE 85 FIGURE 86

112
Online Voting System

Search Result

FIGURE 87

113
Online Voting System

Collaboration Diagram
Super-admin
Register Sub-admin

FIGURE 88

Delete sub-admin

FIGURE 89

114
Online Voting System

Sub-admin
Register Party

FIGURE 90

Register Candidate

FIGURE 91

Start Voting and Terminate Voting

FIGURE 92

115
Online Voting System

Super-admin/Sub-admin
o Login
o Logout
o View Constituency details
o Update Constituency details
o Delete Constituency details
o Search Constituency details
o View Partydetails
o Update Party details
o Delete Party details
o Search Party details
o View Candidate details
o Update Candidate details
o Delete Candidate details
o Search Candidate details
o View Voter details
o Update Voter details
o Delete Voter details
o Search Voter details
o View result details
o Update result details
o Search result

116
Online Voting System

Login

FIGURE 93

Logout

FIGURE 94

View Constituency details

FIGURE 95

117
Online Voting System

Update Constituency Details

FIGURE 96

Delete Constituency Details

FIGURE 97

Search Constituency Details

FIGURE 98

118
Online Voting System

View Party Details

FIGURE 99

Update Party Details

FIGURE 100

Delete Party Details

FIGURE 101

119
Online Voting System

Search Party Details

FIGURE 102

View Candidate Details

FIGURE 103

Update Candidate Details

FIGURE 104

120
Online Voting System

Delete Candidate Details

FIGURE 105

Search Candidate Details

FIGURE 106

View Voter Details

FIGURE 107

121
Online Voting System

Update Voter Details

FIGURE 108

Delete Voter Details

FIGURE 109

Search Voter Details

FIGURE 110

122
Online Voting System

View Result Details

FIGURE 111

Update Result Details

FIGURE 112

Search Result Details

FIGURE 113

123
Online Voting System

Voter rights
o Signup
o Login
o Logout
o View Information
o Password Recovery
o Caste Vote
o View Constituency Details
o Search Constituency Details
o View Party Details
o Search Party Details
o View Candidates Details
o Search Candidate Details
o View Result Details
o Search Result

124
Online Voting System

Signup

FIGURE 114

Login

FIGURE 115

Logout

FIGURE 116

125
Online Voting System

View Information

FIGURE 117

Password Recovery

FIGURE 118

Caste Vote

FIGURE 119

126
Online Voting System

View Constituency Details

FIGURE 120

Search Constituency Details

FIGURE 121

View Party Details

FIGURE 122

127
Online Voting System

Search Party Details

FIGURE 123

View Candidate Details

FIGURE 124

Search Candidate Details

FIGURE 125

128
Online Voting System

View Result Details

FIGURE 126

Search Result

FIGURE 127

129
Online Voting System

Sequence Diagram
Super-admin sequence diagram

Register sub-admin

FIGURE 128

Delete sub-admin

FIGURE 129

130
Online Voting System

Sub-admin sequence diagram


Register Party

FIGURE 130

Register Candidate

FIGURE 131

131
Online Voting System

Start voting and Terminate Voting

FIGURE 132

Super-admin/Sub-admin sequence diagram

Login

FIGURE 133

132
Online Voting System

Logout

FIGURE 134

View Constituency details

FIGURE 135

133
Online Voting System

Update Constituency details

FIGURE 136

Delete Constituency details

FIGURE 137

134
Online Voting System

Search Constituency details

FIGURE 138

View Party details

FIGURE 139

135
Online Voting System

Update Party details

FIGURE 140

Delete Party details

FIGURE 141

136
Online Voting System

Search Party details

FIGURE 142

View Candidate details

FIGURE 143

137
Online Voting System

Update Candidate details

FIGURE 144

Delete Candidatedetails

FIGURE 145

138
Online Voting System

Search Candidate details

FIGURE 146

View Voter details

FIGURE 147

139
Online Voting System

Update result details

FIGURE 148

Search result

FIGURE 149

140
Online Voting System

Voter Sequence Diagram

Signup

FIGURE 150

Login

FIGURE 151

141
Online Voting System

Logout

FIGURE 152

View Information

FIGURE 153

142
Online Voting System

Password Recovery

FIGURE 154

Caste Vote

FIGURE 155

143
Online Voting System

View Constituency Details

FIGURE 156

Search Constituency Details

FIGURE 157

View Party Details


144
Online Voting System

FIGURE 158

Search Party Details

FIGURE 159

View Candidates Details

145
Online Voting System

FIGURE 160

Search Candidate Details

FIGURE 161

View Result Details

146
Online Voting System

FIGURE 162

Search Result

FIGURE 163

147
Online Voting System

State Transition Diagram


A state diagram is a type of diagram used in computerscience and related fields to describe the
behavior of systems. State diagrams require that the system described is composed of a finite
number of statessometimes, this is indeed the case, while at other times this is a
reasonable abstraction. Many forms of state diagrams exist, which differ slightly and have
different semantics.

Admin State Diagram

FIGURE 164

148
Online Voting System

Voter State Diagram

FIGURE 165

149
Online Voting System

Component Diagram
This diagram is used to show the main component of online voting system. One component is
connect with other component with a connector.

FIGURE 166

150
Online Voting System

Deployment Diagram
Deployment diagram is a structure diagram which show architecture of the system as a
deployment distribution of software artifacts to deployment target.Deployment target is usually
represented by a node which is either hardware device or some software execution environment.
Nodes could be connected through communication paths to create networked systems of
arbitrary complexity.

FIGURE 167

151

You might also like