Download as pdf or txt
Download as pdf or txt
You are on page 1of 16

SATISH CHANDRA MEMORIAL SCHOOL

The Project Report On

Topic : Online voting system.


For AISSCE 2023 – 24 Examination

SUBMITTED BY
Soumava Pramanick
[CBSE ROLL NO ]
Under the guidance of:
Sourish Sen
HOD PGT computer science
Certificate

This is to certify that the project Online Voting system is


a bonafied work done by Soumava Pramanick of class XII
B session 2023 – 24 in partial fulfillment of CBSE’s AISSCE
examination 2024 and has been carried out under my
direct supervision and guidance. This report or a similar
report on the topic has not been submitted for any other
examination and does not form a part of in any other
course undergone by the candidate.

…………………………….. …………………………………………..
Signature of Student Signature of Teacher
Student Name Soumava Pramanick Sourish Sen
Roll No . PGT Comp. Sc

Place: …………………………… ………………………………………………………


Signature of the External Examiner
Date: …………………………….
ACKNOWLEDGEMENT

I would like to acknowledge all those without


whom this project would not have been successful.
Firstly, I would wish to thank our Computer
Science teacher Mr Sourish Sen who guided me
throughout the project and gave his immense
support. He made us understand how to
successfully complete this project and without
him, the project would not have been complete.
This project has been a source to learn and bring
our theoretical knowledge to the real-life world.
So, I would really acknowledge his help and
guidance for this project.
I would also like to thank my parents who have
always been there whenever needed.
Once again, thanks to everyone for making this
project successful.

Soumava Pramanick
Class – XII B
CONTENTS

1. Introduction ………………………………………………………………… 1

2. Objective & Scope of the project………………………………….. 2

3. Problem Definition & Analysis……………………………………… 3

4. System Implementation ………………………………………………. 4

4.1. The Hardware used …………………………………………….. 4

4.2. The Software used……………………………………………….. 4

5. System Design & Development……………………………………… 5-10

5.1. Database Design…………………………………………………… 5

5.2. Coding …………………………………………………………………. 5-9

5.3. I/O Screen ……………………………………………………………. 9-10

6. User Manual …………………………………………………………………. 11

6.1. How to Install ………………………………….……………………. 11

6.2. Working with Software …………………………………….….. 11

7. Bibliography ……………………………………..……………………………..
1. INTRODUCTION

“Online Voting System” This project is useful for

election purposes and makes the election easier for

both the voters and the election committee of India.

This project also has the potential to remove false

voters from the society and makes the voting system

mostly legitimate.
2. OBJECTIVE & SCOPE OF THE PROJECT

The objective of this project is to let the students


apply the programming knowledge into a real- world
situation/problem and exposed the students how
programming skills helps in developing a good software.

1. Can potentially remove false voters.


2. Removes Waiting time for voters.
3. Voting can be done from the comfort of home.
4. People can vote peacefully
3. PROBLEM DEFINITION & ANALYSIS
The problem I faced while making the project was
making a recognizer for false voters and making the
project as easy and well defined as possible and making
the system easier for the voters who will vote in the
system while also keeping their records safe.

While making the project I analysed many Logical and


systax errors which had to be removed for the project to
work. This project also helped me grow my knowledge
about the subject.
4. SYSTEM IMPLEMENTATION

4.1 The Hardware used:


While developing the system, the user hardware
are:
PC with Intel Core i3 processor or lower,
having 4 G.B RAM. SVGA and other required
devices

4.2 The Software used:


➢Microsoft Windows 10 as Operating System
➢Python as Front – End Development
Environment.
➢CSV/Spreadsheet/MySQL is backend server
➢MS Word 2013 for Documentation
5. SYSTEM DESIGN AND DEVELOPMENT
5.1 Database Design:

5.2 Source Coding:

import mysql.connector as sqltor


mycon=sqltor.connect(host='localhost',user='root',passwd='1
23456')
cur=mycon.cursor()
cur.execute("Create Database if not exists
online_voting_system;")
cur.execute("Use online_voting_system")
cur.execute("Create table if not exists Voting_Booth(voterid
varchar(15))")
nom_1_votes=0
nom_2_votes=0
nom_3_votes=0
votes_id=()
votes_id3=[]
N=int(input("Enter no of voters:"))
for i in range(N):
voter=input("Enter voter id:")
if voter in votes_id or voter in votes_id3:
print("You have already voted please send next voter")
voter=input("Enter voter id again:")
a=list(votes_id)
a.append(voter)
votes_id3.append(voter)
votes_id=tuple(a)
st="INSERT INTO Voting_Booth(voterid) VALUES(%s)"
cur.execute(st,votes_id)
mycon.commit()
f=list(votes_id)
f.pop()
votes_id=tuple(f)
n=int(input('''Whom do u want to vote: 1.Ram
2.Shyam
3.Radha
Vote Here--->'''))
print("Successfully voted")
if n==1:
nom_1_votes+=1
elif n==2:
nom_2_votes+=1
elif n==3:
nom_3_votes+=1
else:
print("You have voted to no party")
else:
d=list(votes_id)
d.append(voter)
votes_id3.append(voter)
votes_id=tuple(d)
st="INSERT INTO Voting_Booth(voterid) VALUES(%s)"
cur.execute(st,votes_id)
mycon.commit()
e=list(votes_id)
e.pop()
votes_id=tuple(e)

n=int(input('''Whom do u want to vote: 1.Ram


2.Shyam
3.Radha
Vote Here--->'''))
print("Successfully voted")
if n==1:
nom_1_votes+=1
elif n==2:
nom_2_votes+=1
elif n==3:
nom_3_votes+=1
else:
print("You have voted to no party")

Results_Date="2023-11-10"
A=input("Would u like to check results, Type Yes or No:")
if A=='Yes' or A=='yes':
Cur_Date=input("Type today's date in the following
order:YYYY-MM-DD:")
if Cur_Date>=Results_Date:
if nom_1_votes>nom_2_votes and
nom_1_votes>nom_3_votes:
print("Ram has won the election")
elif nom_2_votes>nom_1_votes and
nom_2_votes>nom_3_votes:
print("Shyam has won the election")
elif nom_3_votes>nom_1_votes and
nom_3_votes>nom_1_votes:
print("Radha has won the election")
else:
print("It is a draw")
else:
print("Results will be announced on",Results_Date)
else:
print("Okay have a very good day")
cur.close()
5.3 Input / Output Screen:
6. USER MANUAL
6.1 How to install Software:
You need to copy this hospital project/folder in the source
directory and start the execution of program through python
interpreter.

6.2 Working with Software:


To work with this project you need to ensure following
requirements.
Hardware Requirement-
➢ Intel Pentium or Celeron or similar processor based PC
➢ 4 GB RAM and 320 GB HDD desirable.
➢ Standard I/O Device like Keyboard and Mouse etc.
➢ Printer is needed for Hard Copy Report
➢ LAN is required for client server installation
Software Requirement-
➢ Windows 7/10 OS is desirable.
➢ Python 3.8 and required library
➢ CSV files (available in all computers)
BIBLIOGRAPHY/REFERENCES

1. Computer science With Python - Class XII By : Sumita Arora

2. A Project Report On Online Voting System (OVS)

By : Soumava Pramanick

3. Website: https://www.w3resource.com

You might also like