Online Voting System: Hamza Amjad (BCS02143295) Muhammad Shahbaz (BCS02143275) Sheraz Hassan (BCS02143329)
Online Voting System: Hamza Amjad (BCS02143295) Muhammad Shahbaz (BCS02143275) Sheraz Hassan (BCS02143329)
Online Voting System: Hamza Amjad (BCS02143295) Muhammad Shahbaz (BCS02143275) Sheraz Hassan (BCS02143329)
Department
Computer Science and IT
0
Online Voting System
1
Online Voting System
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).
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
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:
9
Online Voting System
10
Online Voting System
2 CHAPTER: 2
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.
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.
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.
13
Online Voting System
2.2.3 Constraints:
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.
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.
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.
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.
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
16
Online Voting System
This section describes the high-level technical design for online voting system. It details our
technical goal for online voting system.
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.
17
Online Voting System
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
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
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
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
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
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
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
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
30
Online Voting System
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
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
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
37
Online Voting System
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
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
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
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
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
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
This use case displays the functions that Super-admin/Sub-admin can perform in the system.
o Login
o Logout
43
Online Voting System
Aggregated diagram
44
Online Voting System
FIGURE 6
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
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
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
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
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
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
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
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
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
TABLE 3-54
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
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
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
TABLE 3-57
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
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
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
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
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.
TABLE 3-62
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
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
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
65
Online Voting System
FIGURE 28
66
Online Voting System
FIGURE 29
ID UC_27
Name Signup
Actor Voter
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
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
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.
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
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
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
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.
TABLE 3-74
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
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.
T ABLE3-76
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
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
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
FIGURE 44
83
Online Voting System
Data Dictionary
Admin
Voter Information
Voter
Party
84
Online Voting System
Candidate
Result
Caste Vote
85
Online Voting System
FIGURE 45
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.
FIGURE 48
89
Online Voting System
FIGURE 49 F IGURE 50
90
Online Voting System
FIGURE 51
Register Candidate
91
Online Voting System
FIGURE 52
92
Online Voting System
FIGURE 53
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
FIGURE 55
FIGURE 56
96
Online Voting System
FIGURE 57 F IGURE
58
97
Online Voting System
FIGURE 59 F IGURE 60
98
Online Voting System
FIGURE 61
FIGURE 62
99
Online Voting System
FIGURE 63
FIGURE 64
100
Online Voting System
FIGURE 65
FIGURE 66
101
Online Voting System
FIGURE 67
FIGURE 68
102
Online Voting System
FIGURE 69FIGURE 70
103
Online Voting System
FIGURE 71
FIGURE 72
104
Online Voting System
FIGURE 73
FIGURE 74
105
Online Voting System
Voter Signup
106
Online Voting System
FIGURE 75
Voter Login
FIGURE 76
107
Online Voting System
FIGURE 77 F IGURE 78
108
Online Voting System
FIGURE 79FIGURE 80
109
Online Voting System
FIGURE 81
FIGURE 82
110
Online Voting System
FIGURE 83
FIGURE 84
111
Online Voting System
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
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
FIGURE 95
117
Online Voting System
FIGURE 96
FIGURE 97
FIGURE 98
118
Online Voting System
FIGURE 99
FIGURE 100
FIGURE 101
119
Online Voting System
FIGURE 102
FIGURE 103
FIGURE 104
120
Online Voting System
FIGURE 105
FIGURE 106
FIGURE 107
121
Online Voting System
FIGURE 108
FIGURE 109
FIGURE 110
122
Online Voting System
FIGURE 111
FIGURE 112
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
FIGURE 120
FIGURE 121
FIGURE 122
127
Online Voting System
FIGURE 123
FIGURE 124
FIGURE 125
128
Online Voting System
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
FIGURE 130
Register Candidate
FIGURE 131
131
Online Voting System
FIGURE 132
Login
FIGURE 133
132
Online Voting System
Logout
FIGURE 134
FIGURE 135
133
Online Voting System
FIGURE 136
FIGURE 137
134
Online Voting System
FIGURE 138
FIGURE 139
135
Online Voting System
FIGURE 140
FIGURE 141
136
Online Voting System
FIGURE 142
FIGURE 143
137
Online Voting System
FIGURE 144
Delete Candidatedetails
FIGURE 145
138
Online Voting System
FIGURE 146
FIGURE 147
139
Online Voting System
FIGURE 148
Search result
FIGURE 149
140
Online Voting System
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
FIGURE 156
FIGURE 157
FIGURE 158
FIGURE 159
145
Online Voting System
FIGURE 160
FIGURE 161
146
Online Voting System
FIGURE 162
Search Result
FIGURE 163
147
Online Voting System
FIGURE 164
148
Online Voting System
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