Professional Documents
Culture Documents
1. Background
The existing system of election prediction is opinion poll and exit poll. An election
exit poll is a poll of voters taken immediately after they have exited the polling stations. An
exit poll asks for whom the voter actually voted. Pollsters- usually private companies
working for newspapers or broadcasters conduct exit polls to gain an early indication as to
how an election has turned out, as in many elections the actual result may take hours or even
days to count.
The proposed system overcomes the problems of existing system. The proposed
system is a mobile application and web application. It is single system for opinion poll and
exit poll. Everyone voter can be write their own opinion without any hesitation. They can rate
candidates and attend survey. The system has to predict which candidate will win the
election. The prediction is conducted using three methods. They are survey, rating calculation
and sentiment analysis of voter comment.
2. Project Overview
The main objective of this project is predicting the election. Mainly three
criteria used for predicting the result. The criteria are voter comment, survey, and voter
rating.
2.2. Stakeholders
• Admin
• Candidate
• Voter
Admin can calculate rating score of each post. Voter comment used to perform
sentimental analysis and calculate a score. Survey score is calculated. Three criteria used to
calculate total score of each candidate and compare the candidates and predict who win the
election.
The candidate can upload video, audio, text. View the analysis details after the
election.
The voter can view the candidate post and give rating and comment. The voter
can attend the online survey. The voter can view the prediction details after the election.
The proposed system meets the objectives specified above. Mainly three
criteria used for predicting the result. The criteria are voter comment, survey, and voter
rating. The candidate upload his/her post to site, the user give the comment and rating to each
post. Voter can also attend survey. Admin can calculate score of each criteria. Then plot the
graph of each candidate. Admin calculate total score and percentage of each candidate. The
percentage of each candidate is compared and to predict who win.
The prediction details are used by political parties to change their mind set.
The comments are used to determine the popularity and mob psychology.
After the problem is clearly understood and solutions are proposed, the next
step is to conduct the feasibility study, which is the part of system analysis. The main
objective of this study is to determine whether the proposed system is feasible or not. There
are various types of feasibility to be determined. They are,
• Technical Feasibility
• Operational Feasibility
• Schedule Feasibility
• Economic Feasibility
The schedule feasibility means that whether the project can be completed within a
specified time period or not. Each process will take a specific time to complete it.
As per the schedule for this project a time schedule is build as follows:
• IDE : DreamViewer
• Back End : MySQL
• Front End : PHP
3.2. Constraint
There are some constraints specified with related to this project.They are :
• Time Constraints
➢ Project should complete, tested and implemented within
the 5 months.
• Hardware Constraints
➢ Needs 8GB RAM to implement an Android version
➢ RAM should be extended
➢ Mobile and laptop needed
3.3. Deliverables
Every project should contain a set of deliverables. This project also has a set
of deliverables as follows:
3.4. Risks
Every project should meet some risks at certain points. This project also has to
meet some risks.
• Inception
• Elaboration
• Construction
• Transition
• Unit testing
• Integration testing
• System testing
• Validation testing
4. Iteration Planning
4.1 Schedule
4.2 Risk
Election prediction system has mainly 3 users. They are admin, user and candidate.
Admin
Candidate
Voter
• Web application and mobile application are user friendly and easy to operate.
• Candidate can upload their post to the system.
• User can attend the survey by online
• User can give rating and comment to each post.
• Sentiment analysis based on the user comment is used for prediction.
• Total score calculation of each candidate based on survey, rating, and sentiment
analysis.
• Compare candidates score and predict who win the election.
This section gives a functional requirement that applicable to the Election Prediction system.
There are three sub modules in this phase.
• Candidate module.
• Administrator module.
• User module
✓ Candidate module: The candidate will log on to the software and take publish his/her
post. He can also view the user rating comments of each post. He can get feedback or
suggestions from voters. The candidate will get result immediately before or after the
election.
✓ Administrator module: The database is prepared & loaded into the software. Admin
add the survey questions. Admin can view rating and comment of voters. The comment used
to perform sentiment analysis. The results will be displayed immediately before or after the
election.
✓ Voter module: The voter login to the system. They can view the candidate post. They
can give rating and comment to each post and also attend survey. The voter can give
suggestions or feedback.
➢ The administrator has the full-fledged rights over the Election prediction System.
✓ Compare the percentage of candidate and predict the result before or after the election
✓ Can view and modify its profile but can modify it to some limited range.
✓ Can view and modify its profile but can modify it to some limited range.
Performance Requirements
Security Requirements
The username and password used for the system security. This system is
provided with authentication without which no user can pass. So only the legitimate users are
allowed to use the application. If the legitimate users share the authentication information
then the system is open to outsiders.
UC1: Registration
Use case 2
UC2: UploadPost
Voter: want to view candidate post and give rating and comment.
Use case 3
UC3: RatingAndComment
Admin: want to view comments and rating of each post and this data used to
Use case 4
UC4: AttendSurvey
Admin: want to view the survey details and this used to predict the election.
Use case 5
UC5: TotalScoreCalculation
Admin: want to calculate rating score, survey score and sentiment score.
These scores are used to calculate total score and predict the election.
• These three score used to plot pie chart and calculate total
score.
• The total score used to predict the election.
• Bar diagram used to represent each candidate score.
Use case diagrams specify the events of a system and their flows. But use case diagram never
describes how they are implemented. Use case diagram can be imagined as a black box where
only the input, output, and the function of the black box is known. These diagrams are used at
a very high level of design. This high level design is refined again and again to get a
complete and practical picture of the system. A well-structured use case also describes the
pre-condition, post condition, and exceptions. These extra elements are used to make test
cases when performing the testing.
Basic use case symbols
An actor represents a coherent set of roles that users of a system play when interacting with
the use cases of the system. Actors can be anything - humans, devices, other systems .One
physical object can play several roles and so can be modelled by several actors.
Use cases describe what a system does, not how it does it. A use case contains multiple
scenarios, each of which describes a specific flow of events through the use case. Use case
behavior is specified by describing the scenarios clearly enough for outsiders to understand.
Connection symbol represent the connection between Actor and Use Case
Include symbol include the relationship between Use Cases. One use case (base) includes the
functionality of another (inclusion case).
Extend symbol shows the relationship between Use Cases. One use case (extension) extends
the behaviour of another (base)
System sequence diagram displays the interaction between the objects focusing on the
exchange of messages between the sender and recipient. The exchange of message is
represented by horizontal arrows and receiving order is indicated using vertical axis.
➢ Life lines & life line boxes: - Active objects can be an object which is an
instance of a class and can be drawn with rectangular box called the life line
box with its name is specified within the box. The long dashed line tailing the
object is called life lines.
➢ Return: -Return message shows that the control flow has return into the
calling active objects and the synchronous messages are completed its
operations.
OP1
Precondition: None
Post condition: The registration instance pr is created. Data saved and response message
OP2
Precondition: None
Post condition: The instance q is created. Data saved. q associated current scenario. User can
OP3
Post condition: The candidate upload instance cu is created. Data saved. Cu associated with
candidate
OP4
OP5
Post condition: The instance a is created. Attend the survey.Data saved. a associated with
EnterQuestion.
OP6
OP7
Post condition: The rating calculation rc is created. Data saved. rc associated with
OP8
Post condition: The survey calculation sc is created. Data saved. sc associated with
OP9
OP10
Post condition: The total calculation tc is created. Data saved. tc associated with
Formed).
OP11
7. DESIGN MODEL
7.1. Class Diagrams
Class diagram is an important UML diagram used in the Designing phase. Class
Diagrams are the blueprints of the system or subsystem. Class diagrams can be used to model
the objects that make up the system, to display the relationship between the objects and to
describe what those objects do and the services they provide .Class diagrams are useful in
many stages of system design. Class diagram is a static diagram. It describes the attributes
and operations of a class and also the constraints imposed on the system. Class diagram
shows a collection of classes, interfaces, associations, collaborations and constraints. It is also
known as a structural diagram. UML diagrams like activity diagram and sequence diagram
can only give the sequence flow of applications.
Class diagram is created to perform the following functions:
▪ Capture and define the structure of classes and other classifiers.
▪ Define relationship between classes and classifiers.
▪ Illustrate the structure of a model by using attributes,operations and
signals.
▪ Show the common classifier roles and responsibilities that define the
behaviour of the system.
▪ Show the structure and behaviour of one or more classes.
Class Diagram
7.2. Activity Diagrams
Activity diagrams are graphical representation of workflows of stepwise activities
and actions with support for choice, iteration and concurrency. In the UML, activity diagrams
are intended to model both computational and organizational processes. It shows the overall
flow of control.
Transition: - When the action or activity state completes the flow of control
passes immediately to the next action or activity state. This is represented by using the solid
lines.
Branching: - It specifies the alternative paths that are taken based on some
Boolean expressions.
Initial node: - The initial node is a control node from where the activity is invoked.
An activity may have more than one initial node.
Final node: - The final node shows the end of the activity. An activity can have
more than one final node but the first one reached will stop the activity.
Join:-A join represents multiple incoming transitions and provide only one outgoing
transitions.
Fork:-A Fork represents only one incoming transitions and provide multiple outgoing
transitions.
Admin
Candidate
Voter
Design 1
Design 2
Design 3
Design 4
Design 5
Design 6
PHP
PHP Hypertext Pre-processor, commonly known as PHP is one of the
revolutionary scripting language which has enabled us to have a much better web
presentation today. This has fast become one of the widely used scripting language which are
used for web development. One of the key feature of this language it’s own open source
which will enable anybody to use the platform it provides. PHP is used to design dynamic
web pages. Here you can find the starting origination of PHP and few basics of scripting
language.
PHP is a server side scripting language which is used for generating dynamic page
which can be used for transferring on the web. The main plus point of PHP is that it is an
open source product and it can be freely downloaded from the web. The various advantages
of PHP include speed of execution by using only a little system resources. This will increase
the stability of the system, its simplicity which allows anyone to learn it very easily. PHP is
also extensible that it allows interfacing different libraries such as encryption, XML etc. the
PHP parser engine is identical irrespective of the operating system, so PHP page need not be
changed to run on different platform.
Android
MySql
profit firm, the Swedish company MySQL AB, now owned by Oracle Corporation For proprietary
use, several paid editions are available, and offer additional functionality.The IDE used for
MySql is HeidiSql
Table Structure
Table design also deals with the design of physical database. A key field determines
how the access is to be implemented. Suitable key fields are identified various tables and are
coded appropriately. The type, width and size of the fields are identified. Techniques of file
organization are studied so that the most appropriate storage device can be selected and an
efficient database design can be achieved. Specifying the data between them identifies the
interface between system databases and other databases.
The designing of the tables in the database is done according to the rules specified for
database as described above. In the proposed project 22 tables are used and some of them
connected using foreign keys. Insertion and retrieval of values is easy by designing the
database in this way.
Table Design
Table design is a collection of complete details about a particular subject. These data are
saved in rows and columns. The data of each row are different units. Hence, rows are called
records and columns of each row are called fields. Data is stored in tables, which is available
in the backend. The items and data, which are entered in the input, form id directly stored in
this table using linking of database. We can link more than one table to input forms
Table 1
Table 2
Table 3
Foreign key:state_id(tbl_state)
Table 4
Table 5
Table 6
Table Description: store details of IDcard types(election card, pan card etc.)
Table 7
Table 8
Table 10
Table Name:Tbl_candidateelectiondetails
Primary key:canele_id
Table 11
Primary Key:candidatepost_id
Table 12
Table Name:tbl_voter
Table 13
Primary Key:ucmnt_id
Table 14
Primary Key:urate_id
Table: 15
Table 16
Primary key:qustn_id
Table 17
Table 18
Foreign key:user_id(tbl_user),candidate_id(tbl_candidate
Table 19
Table 20
Table 21
Foreignkey:candidate_id(tbl_candidate) ,
surveyresult_id(tbl_surveyresult),tbl_rastingResult(ratingresult_id)
Table 22
Foreignkey :user_id(tbl_user),candidate_id(tbl_candidate)
8. TESTING
8.1. Test Cases
Unit Testing
Unit testing focuses verification efforts on the smallest unit of software design,
the module. This is also known as module testing. The modules are tested separately. These
testing are carried out during programming stage itself. Modules are tested separately in the
unit testing stage. It is carried out during programming stage. In this project modules to be
test are registration, add place, state and district, add post, post updates, rating, attend survey.
Each module should execute error free.
Integration Testing
Integration testing is a systematic technique for constructing the program
structure while at the same time conducting tests to uncover errors associated with
interfacing. In this testing, all the individual modules were combined and the module wise
shifting was verified to be alright.
Integration testing is testing in which a group of components are combined to
produce output. Also, the interaction between software and hardware is tested in integration
testing if software and hardware components have any relation.
Modules are integrated and tested. The attend survey is integrated with adding
of questions and options, conduct survey of each candidate are integrated and tested ,rating is
integrated with candidate registration and candidate uploads are integrated and tested for
finding errors in any interfaces.
System Testing
The behaviour of whole system is tested as defined by the scope of project. It
includes test based on risk, requirement specification, use cases and other high level
description of the system. It is the final test that will be used to verify the system to be
delivered the specifications. All modules are completely tested when there is no error.
Whole system is tested after combined together. Test all the requirements
satisfied or not. Final test for website and mobile application to check the reliability of the
operations implemented. All modules are completely tested to confirm there is no error and
then integrate. Finally the integrated modules are combined together and tested. Modules like
registration, upload post, rating and comment, attend survey, score calculation are combined
and tested. The testing is also done after the data migration at users’ site.
9. TRANSITION
Implementation includes all those activities that take place to convert from the
old system to new system. The new system may be totally new, replacing an existing manual
or automated system or it may be a major modification to an existing system. Proper
implementation is essential to provide a reliable system to meet the organization
requirements.
Successful implementation may not guarantee improvement in the organization
using the new system, but improper installation will prevent it. The method of
implementation and the time scale to be adopted are found out initially. Next the system is
tested properly and the same time users are trained in the new procedures.
IMPLEMENTATION PROCEDURES:
Proper guidance is imparted to the user so that he is comfortable in using the application.
Before going ahead and viewing the system, the user must know that for
viewing the result, the server program should be running in the server. If the server object is
not up running on the server, the actual processes won’t take place.
POST IMPLEMENTATION:
The final step of the systems approach recognizes that implemented solution can
fail to solve the problem for which it was developed. The results of implementing a solution
should be monitored and evaluated. This is called post implementation review process, since
the success of a solution is reviewed after it is implemented.
“Janadesh” software is implemented for candidates. Training is provided for the candidates
on how to use the system. The mobile application is implemented on to voters’s smart phone .
This phase occurs as a result of deploying the whole system at the end users
organization. They will perform the beta testing at the end users and inform to the developers
about any needed modification to the application. The customer records all the problems that
are encountered during the beta testing and reports these to the developer at regular intervals.
Maintenance has not yet been performed and is a part of future plans.
• Corrective Maintenance
Even with the best quality assurance activities, it is likely that the customer will
uncover defects in the software. Corrective maintenance changes the software to correct the
defects.
• Adaptive Maintenance
Over time, the original environment (CPU, operating system, business rules, external
product characteristics) for which the software was developed is likely to change. Adaptive
maintenance results in modification to the software to accommodate changes to its external
environment.
• Enhancement Maintenance
As software is used, the customer/user will recognize additional functions that will
provide the benefit. Perfect maintenance extends the software beyond its original functional
requirements.
• Preventive Maintenance
The existing system of election prediction is opinion poll and exit poll. An election
exit poll is a poll of voters taken immediately after they have exited the polling stations. An
exit poll asks for whom the voter actually voted. Pollsters- usually private companies
working for newspapers or broadcasters conduct exit polls to gain an early indication as to
how an election has turned out, as in many elections the actual result may take hours or even
days to count.
The proposed system overcomes the problems of existing system. The proposed
system is a mobile application and web application. It is single system for opinion poll and
exit poll. Everyone voter can be write their own opinion without any hesitation. They can rate
candidates and attend survey. The system has to predict which candidate will win the
election. The prediction is conducted using three methods. They are survey, rating calculation
and sentiment analysis of voter comment.
Admin can calculate rating score of each post. Voter comment used to perform
sentimental analysis and calculate a score. Survey score is calculated. Three criteria used to
calculate total score of each candidate and compare the candidates and predict who win the
election.
The candidate can upload video, audio, text. View the analysis details after the
election.
The voter can view the candidate post and give rating and comment. The voter
can attend the online survey. The voter can view the prediction details after the election.
The proposed system meets the objectives specified above. Mainly three
criteria used for predicting the result. The criteria are voter comment, survey, and voter
rating. The candidate upload his/her post to site, the user give the comment and rating to each
post. Voter can also attend survey. Admin can calculate score of each criteria. Then plot the
graph of each candidate. Admin calculate total score and percentage of each candidate. The
percentage of each candidate is compared and to predict who win.
10. ANNEXURE
Professional web site design is critical for success in the modern Internet
Business World. Offering an attractive, intuitive interface with a logical and easy to
use navigation layout will make the difference between a happy visitor (and potential
client) and a frustrated web surfer at your website. A successful site begins by
carefully planning a rewarding user experience.
❖ Site Re-Design
❖ Logo Designing
CUSTOMER FOCUS
Capabilities
based model, Progressive offers the best ROI in this space. We offer services in two
models:
CONTACT DETAILS
Progressive Education
ll nd Floor, Koyas Tower
PO Junction Muvattupuzha -686661
Kerala, India.
Phone Contact
+91 9072488881,0485-2834881
Email Contact
progressiveofc@gmail.com
Abbreviations
TA -- Travelling Allowance
UI -- User Interface
PK -- Primary Key
FK -- Foreign Key
10.3. References
https://www.guru99.com/jsp-tutorials.html
https://www.tutorialspoint.com/netbeans-tutorial.html
Election Declaration
<!DOCTYPE html>
<html>
<head>
<title>
Election Declaration
</title>
<?php
require("../Layout/header.php");
?>
<?php
include("../Connection/Connection.php");
if(isset($_POST['btnsubmit']))
$electiondate=$_POST['txtdate'];
$electionresult=$_POST['txtresult'];
$type=$_POST['seltype'];
$insert="insert into
tbl_electiondeclaration(electiontype_id,election_date,electionanown_date)values('".$type."','"
.$electiondate."','".$electionresult."')";
mysqli_query($con,$insert);
if(isset($_POST['btncancel']))
header("Location:ElectionDeclaration.php");
?>
</head>
<body>
<?php
require("../Admin/Home.php")
?>
<?php
require("../Admin/Nav.php")
?>
<div class="content">
<div class="container-fluid">
<div class="row">
<div class="col-md-5">
</div>
<div class="card-body">
<div class="form-group">
<option value="">--Select--</option>
<?php
$row=mysqli_query($con,$select);
while($data=mysqli_fetch_array($row))
?>
</option>
<?php
?>
</select>
</div>
<div class="form-group">
</div>
<div class="form-group">
</div>
<div class="form-group">
</div>
</form>
</div>
</div>
</div>
<div class="col-md-7">
<div class="card">
</div>
<div class="card-body">
<div class="table-responsive">
<table class="table">
<thead class="text-primary">
<th>Election Type</th>
<th>Election Date</th>
<th>Result Date</th>
</thead>
<?php
$row=mysqli_query($con,$selDistrict);
while($data=mysqli_fetch_array($row))
$disid=$data['electiondeclrn_id'];
$type=$data['election_type'];
$disname=$data['election_date'];
$statename=$data['electionanown_date'];
?>
<tr>
<td>
</td>
<td>
</td>
<td>
</td>
</tr>
<?php
?>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<?php
require("../Layout/Script.php");
?>
<style>
.material-icons.orange600 {
color: #ffffff;
</style>
</body>
</html>