“Online Voting System” Developed By - DSpace at Ganpat University

Internal Guided By: Mr. Ravi Patel. Presented To. Department Of Computer Science. Ganpat University,Ganpat Vidhyanagar-384012. Nov-Dec 2014 ..... Exercise all logical decision on their true and false sides. Execute all loops at their boundaries and within their operational bound. Exercise internal data structure to ensure ...
2MB Sizes 361 Downloads 1208 Views
A Project Presentation On

“Online Voting System” Developed By: 1)Patel Parth A.(13084231166) 2)Prajapati Kishan M.(13084231228)

Group No- 70 M.Sc.(CA&IT) Semester-III

Internal Guided By: Mr. Ravi Patel

Presented To

Department Of Computer Science Ganpat University,Ganpat Vidhyanagar-384012 Nov-Dec 2014

1

Project Profile Project Title

Online Voting System

Objective

Internet voting will allow the casting of Online voting from virtually any location around the world and Display voting results in a graphical fashion for the administrator to analyze and providing a most secured and user friendly online voting system.

Front End

ASP.net with C# (Framework 4.0)

Back End

MS SQL Server 2008

Other Tools

MS Office 2007

Internal Guide

RaviPatel

Duration

50 Days

Group No

70

Develop By

Patel Parth A. Prajapati Kishan M.

(13084231166) (13084231228)

Existing System •

Paper-based voting systems originated as a system where votes are cast and counted by hand



With the advent of electronic tabulation came systems where paper cards or sheets could be marked by hand counted electronically.



These systems included punched card voting, mark sense and later digital pen voting systems.

Need for new System •

Easy to manage large amount of user and data store in electronic for long time.



Register Vote form any where.



The project is mainly aimed at providing a most secured and user friendly online voting system.



No paper work



Display voting results in a graphical fashion and Instantly display result for the administrator to analyze.



Prevent voters from voting more than once for their choose candidates.

Server Side Hardware & Software Requirement(Minimum)

Server Side Hardware Requirement Processor

2.0 GHz

Hard Disk

40 GB Free Disk Space

RAM

2 GB

Server Side Software Requirement Operating System

Windows XP or other Compatible OS

Front end

Asp.net Framework 4.0

Back end

MS SQL Server 2008

Other Tools

MS Office 2007

Client Side Hardware & Software Requirement(Minimum)

Client Side Hardware Requirement Processor

1.0 GHz

Hard Disk

8 GB Free Disk Space

Ram

512 MB

Client Side Software Requirement Operating system

Windows XP or other Compatible OS

Web- Browser

Internet Explorer 6.0, other Compatible

Function Specification User •

Admin Approve Organization Request. Declare The Result. Manage Admin.

• Organization Declare Candidate. Add voter. Declare Voting date. Give vote.



Voter Give vote. Show result.

Timeline Chart

Requirement gathering & Analysis

10 days A c t i v i t y

System Design

20 days

Coding

25 days

Testing

20 days

5 days Deployment & Implementation Documentation

45 days

0

10

20

30

40

50

System Flow Chart Admin and Organization Start

If registere d?

No

Registration

Yes Login

IS User/Pass . valid?

No

Yes

Admin A

Organization B

A

A

View/Manage Organization

Update Profile

Approve Election

Add Nominee

Add/Manage Advertise

Add Voter

Calculate Vote

Add/Manage Advertise

View/Declare Result

Give Vote

Update Delails

View Result

Logout Stop

Voter Start No Login

IS User/Pass . valid? Yes Give Vote View Result Logout Stop

Usecase Diagram

Registration Manage Organization Update Profile

Approve Election Add/Update Advertise

Organization

Nominee Registration Give Vote

Admin Details of Votes Calculate Of Votes Declare/View Result

Voter

Activity Diagram

Start

Admin Activity Login Authenticate

No Yes system

View/Manage Org.

Approve Election

Calculate Votes Declare Result Update Details

Logout

Add/Manage Adv.

Start

Organization Activity Registration Login

No

Authenticate Yes System

Add Nominee

Add Voter

Give Vote View Result Update Details

Logout

Add/Manage Adv.

Voter Activity Start Login Authenticate

No Yes System Give Vote View Result Logout

ER-Diagram

Sequence Diagram

Class Diagram

Organization Admin - O_Id - O_Name - Address - Email - Contact_No - Sector - Apply Post - UserName - Password - ExcelSheetVoter -Req_Approve + show() + InsertNominee() + GetResult() + AddAdvertise()

1

Manage

*

1 Mange

1

Manage

*

*

Nominee

*

- N_Id - Name - Designation - Address - Contact_No - Photo - Description - Password - O_Id + Show() + insertNominee() + updateNominee() + deleteNominee() + GetResult()

- Id - User_Name - Password + Show() + Manage_Org() + Dec_Result() + Manage_Election()

View Result

Voter - V_Id - Name - Password - O_Id - N_Id + Show() + insertVote() + Calculate()

View Result

Result

* 1 View Result

1 1

- R_Id - Total_Vote - N_Id - O_Id +Show() + DeclareResult() + FetchResult()

Collaboration Diagram

Admin Side Collaboration Diagram:

1:1:Request for Login 2:1:Manage Org. 3:1::Update Profile 4:1:Approve Request 5:1:Add/Update Adv. 6:1:Calculate Votes 7:1:Declare/View Result System

1:Login 2:Manage Organization 3:Update Profile 4:Approve Request 5:Add/Update Adv. 6:Calculate Votes 7:Declare/View Result 8:Logout

1:1:1:1:Login Successfully 2:1:1:1:Sucessfully Manage Org. 3:1:1:1:Successfully Update Profile 4:1:1:1:Sucessfully Approve Request 5.1.1.1:Successfully Add Adv. 6:1:1:1:Succesfull Cal. Votes 7:1:1:1:Successful Declare Result 8:1:1:1: Logout Successfully Admin

Database 1:1:1:Response for Login 2:1:1:Update Org. 3:1:1:Updated Profile 4:1:1:Approved Request 5:1:1:Add Adv. 6:1:1: Store Votes 7:1:1:Store Result

Organization side collaboration diagram:

1:1:Request for Login 2:1:Manage profile 3:1:Candidate Reg. 4:1:Add_Voter Sheet 5:1:Manage Election Date 6:1:Give Vote 7:1:View Result System

1:Login 2:Manage profile 3:Candidate Reg. 4:Add_Voter Sheet 5:Manage Election Date 6:Give Vote 7:View Result 8:LogOut

Database 1:1:1:Response for Login 2:1:1:Response profile 3:1:1:candidate Reg. 4:1:1:Add_Voter Sheet 5:1:1:Response Election Date 6:1:1:Respons Give Vote 7:1:1:Response View Result

1:1:1:1:Login Successfully 2:1:1:1:Sucessfully update profile 3:1:1:1:Successfully Candidate Reg. 4:1:1:1:Sucessfully Add Voter Sheet 5:1:1:1:Successfully Manage Election Date 6:1:1:1:Successfully Give Vote 7:1:1:1:Successfully View Result 8:1:1:1:LogOut Successfully

Organization

Voter side collaboration diagram:

1:1:Request for Login 2:1:Give Vote System

Database

1:1:1:Response for Login 2:1:1:Response Give Vote 1:1:1:1:Login Successfully 2:1:1:1:Sucessfully Give Vote 3:1:1:1:LogOut Successfully

1:Login 2:Give Vote 3:Logout

Voter

Data-Dictionary

Organization Table Table Name:

Organization_table

purpose:

This table is used to store the organization table.

Primary Key:

O_Id

Foreign Key:

-

No

Field Name

Constraint

Data Type

Size

Description

1 2 3 4 5 6 5 7

O_Id Name Address City State Country Email Contact _No

PK Not Null Not null Not null Not Null Not Null Not null Not Null

Int Varchar Varchar Varchar Varchar Varchar Varchar Numeric(12)

5 20 20 10 20 20 20 12

Primary key for Organization Organization Name Address of the Organization Sector of the Organization State of the Organization Country of the Organization Email Id of the Organization Contact No. of the Organization

8 9 10 11 12 13 14

Sector About_Company Apply Post User _Name Password Req_Date Excel _Sheet

Not Null NotNull Not Null Not Null Not Null Not Null Null

Varchar Varchar Varchar Varchar Varchar DateTime Varchar

15 100 20 20 15 -15

15 16 17 18

Req_Status Election_Open Election_Close Give_vote

Null Not Null Not Null Null

Varchar DateTime DateTime Varchar

15 --5

Sector of the Organization Details of the Organization Which Post for you apply election Unique Id for the Organization Password of the Organization Date of the Request Number of Voter for the Election in Excel sheet format file Election Approve by the Admin Starting Date of the Election Ending Date of the Election Status Of Giving Vote

Candidate_Registration Table Table Name:

Candidate_Registration table

Purpose:

This table is used to store the candidate.

Primary Key:

C_id

Foreign Key:

O_id

No

Field Name

Constraint

Data Type

Size

Description

1

C_Id

PK

Int

5

2

Name

Not Null

Varchar

20

Primary key for Nominee Identification Nominee Name

3

Address

Not null

Varchar

20

Address of the Niminee

4

Designation

Not null

Varchar

20

Current designation of the nominee

5

Contact _No

Not Null

Numeric(12)

12

Contact No of the Nominee

6

Image

Not Null

Varchar

50

Photo of the Nominee

7

Description

Not Null

Varchar

100

Detail or advertise for the Election

8

Votes

Not Null

Int

12

Number of Votes

9

Password

Not Null

Varchar

15

Password for the Nominee

10

O_Id

FK

Int

15

Foreign Key from Organization Table

11

Give_vote

Null

Varchar

5

Status of giving vote

Admin_login Table Table Name:

Admin_login table

Purpose:

This table is used to store the admin table.

Primary Key:

Id

Foreign Key:

-

No

Field Name

Constraint

Data Type

Size

Description

1

Id

PK

Int

5

Primary key for Admin

2

Name

Not Null

Varchar

20

Name of the Admin

3

Contact_No

Not Null

Numeric(12)

12

Contact No. of the Admin

4 5

User_Name Password

Not Null Not null

Varchar Varchar

20 20

Admin User Name Password for the admin

Voter_Login Table

Table Name:

voter_login table

Purpose:

This table is used to store the voter table.

Primary Key:

V_id

Foreign Key:

C_id,O_id

No

Field Name

Constraint

Data Type

Size

Description

1

V_Id

PK

Int

5

Primary key for Voter

2

Name

Not Null

Varchar

20

Admin User Name

3

Password

Not null

Varchar

20

Password for the admin

4

O_Id

FK

Int

5

Foreign Key from Organization Table

5

C_Id

FK

Int

5

Foreign Key from Nominee Table

Result _Table

Table Name:

Result_table

Purpose:

This table is used to store the result details.

Primary Key:

R_id

Foreign Key:

O_id,C_id

No

Field Name

Constraint

Data Type

Size

Description

1

R_Id

PK

Int

5

Primary key for Result

2 3

Total_Vote O_Id

Not Null FK

Int Int

10 5

Number of votes Foreign Key from Organization Table

4

C_Id

FK

Int

5

Foreign Key from Nominee Table

Screenshot

Home Page:-

DESCRIPTION:-This page is home page.

Organization Registration:-

DESCRIPTION:-This page shows about organization registration.

Admin Login:-

DESCRIPTION:-This page shows about admin login.

Organization Request Approve:-

DESCRIPTION:-This page shows about admin approve organization request .

Organization Login:-

DESCRIPTION:-This page shows about organization login.

Candidate Registration:-

DESCRIPTION:-This page shows about candidate registration.

Add Voter Sheet:-

DESCRIPTION:-This page shows about add voter sheet by organization .

Election Date:-

DESCRIPTION:-This page shows about select election date by organization.

Candidate Login:-

DESCRIPTION:-This page shows about candidate login.

Candidate Give vote:-

DESCRIPTION:-This page shows about candidate give vote .

Voter Login:-

DESCRIPTION:-This page shows about voter login.

Voter Give Vote:-

DESCRIPTION:-This page shows about voter give vote.

Result of Election:-

DESCRIPTION:-This page shows about show result of election.

About Us:-

Testing 1.Unit Testing:In this of testing procedure individual program will be tested with be tested with respect to the desired output from the system. Due care will be taken while entering the test data, So as to check the boundaries of data elements exceptional procedure handing.

2. System Testing:Under this system procedure will be tested as a whole and not in terms of individual program testing. This procedure will test the integrity of the data. Few checks were carried out to test system. Live data of the various types of assets were inputted to system. Testing is the modules independently to check their efficiency and correctness. Link to different module were replaced by actual modules and checked the whole system was ready.

3. White-box testing:White-Box testing is sometime called glass-box testing, is a test case design method that uses the control structure of the procedure design to derive test cases. Using White-box testing method, the software engineer can derive test cases that guarantee that all independent paths within a module have been exercised at least once. Exercise all logical decision on their true and false sides. Execute all loops at their boundaries and within their operational bound. Exercise internal data structure to ensure their validity.

Test case 1:TESTCASEID

1

TESTCASE NAME:- TEXTFIELD VALIDATION DESCRIPTION :- ENTERING TEXT IN TEXTFIELD ONLY CHARACTER. EXPECTED RESULT:- PLEASE ENTER ONLY CHARACTER ACTUAL RESULT:- USER ARE PROMPTED CORRECT DATA

RESULT

PASS

Test case 2:TESTCASEID

2

TESTCASE NAME:- TEXTFIELD VALIDATION DESCRIPTION :- ENTERING TEXT IN TEXTFIELD ONLY NUMBER. EXPECTED RESULT:- PLEASE ENTER ONLY NUMERIC. ACTUAL RESULT:- USER ARE PROMPTED CORRECT DATA RESULT

PASS

Test case 3:TESTCASEID

3

TESTCASE NAME:- TEXTFIELD VALIDATION DESCRIPTION :- ENTERING TEXT IN TEXTFIELD NULL ARE NOT ACCEPTED EXPECTED RESULT:- PLEASE ENTER ONLY CHARACTER ACTUAL RESULT:- USER ARE PROMPTED CORRECT DATA

RESULT

PASS

Postimplamantation Review •User give following type of review •User says that this website very use full because they can find all Election online .

Feature Enhancemant • Send Information to on the user Mobile about result. • Admin send All Information About Election to the user mobile.

Biblography 1. Pro C#.NET 2010 and the .NET4.0 Platform by Black BOOK

• Sourcecode.com • Google.com • Codeproject.com • Stackoverflow.com