0% found this document useful (0 votes)
12 views17 pages

FFFFF Merged

Uploaded by

thanmaypn7
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views17 pages

FFFFF Merged

Uploaded by

thanmaypn7
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 17

BROOK INTERNATIONAL SCHOOL

(SENIOR SECONDARY SCHOOL


RAJAGIRI,SASTHAMCOTTA)

COMPUTER SCIENCE PROJECT


ONLINE VOTING SYSTEM
Submitted for AISSCE practical examinations 2024-25
Certified and BonafIde project done by

NAME : PIYOOSH S PILLAI


CLASS : XII
Reg. No :

Internal Examiner External Examiner


CERTIFICATE

Certified bonafide record of the project work


‘ONLINE VOTING SYSTEM’ submitted by
PIYOOSH S PILLAI of Class XII, Brook
International School during the academic year of
2024-2025.

TEACHER IN CHARGE PRINCIPAL


DECLARATION

We hereby declare that the project work entitled


"Hospital Management System" submitted in the
partial fulfillment of the study of class XII CBSE
scheme in Computer Science is a record of
Bonafide research carried out by us under the
guidance of Lekshmi Ma'am and no part of it has
been submitted for any other study
ACKNOWLEDGEMENT
In the accomplishment of this project successfully,
many people have bestowed upon me their
blessings and pledged their support. I would like
to take this time to thank all the people who have
been concerned with this project.
Firstly, I would like to thank God for enabling me
to complete this project successfully. Then, I
would like to express my gratitude to our director,
Fr. Dr. G. Abraham Thalothil, our principal Mrs.
Bonifacia Vincent, and our Computer Science
teacher Mrs. Lekshmi, whose valuable guidance
has been instrumental in helping me patch this
project and make it a full-proof success. Their
suggestions and instructions have served as the
major contributors towards the completion of the
project.
Next, I would like to thank my parents and friends
who have provided me with their valuable
suggestions and guidance that have been helpful in
various phases of the completion of the project
FEATURES
 User Registration and Login:
 Users can register with basic details like name, email,
and password.
 Login functionality with authentication.
 Voting Process:
 After logging in, users can select a candidate or option
and submit their vote.
 Prevent multiple votes from the same user.
 Admin Panel:
 Admins can add/remove candidates/options.
 View voting results in real-time.
 Database Structure:
 Store user information, votes, and candidate data in
MySQL.
 Each vote is recorded securely with user ID to prevent
duplication.
TECHNOLOGY
STACK
1. Front-end (CLI or GUI):
o User-friendly interface for voters.

o Admin panel with access to results.

2. Back-end (Python):
o Handle user registration, login, and vote

submissions.
o Tally and display results.

3. Database (MySQL):
o Tables to store users, candidates/options, and

votes.
SOURCE CODE
SQL Script for Setting Up the Database

Create the necessary tables and insert sample data to get started.
-- Create the database
CREATE DATABASE IF NOT EXISTS voting_system;

-- Use the database


USE voting_system;

-- Create the users table


CREATE TABLE IF NOT EXISTS users (
user_id INT AUTO_INCREMENT PRIMARY KEY,
name VARCHAR(255) NOT NULL,
email VARCHAR(255) UNIQUE NOT NULL,
password VARCHAR(255) NOT NULL
);

-- Create the candidates table


CREATE TABLE IF NOT EXISTS candidates (
candidate_id INT AUTO_INCREMENT PRIMARY KEY,
candidate_name VARCHAR(255) NOT NULL
);

-- Create the votes table


CREATE TABLE IF NOT EXISTS votes (
vote_id INT AUTO_INCREMENT PRIMARY KEY,
user_id INT,
candidate_id INT,
FOREIGN KEY (user_id) REFERENCES users(user_id),
FOREIGN KEY (candidate_id) REFERENCES
candidates(candidate_id)
);

-- Insert sample candidates into the candidates table


INSERT INTO candidates (candidate_name) VALUES
('Candidate A'),
('Candidate B'),
('Candidate C');
Python Script for the Voting System GUI
OUTPUT SCREENS

Interface

User Registration
User Login
Voting Page

Multiple Votes by single user are not allowed


Result Viewing
CONCLUSION
The Voting System project successfully demonstrates a
practical application of database management and GUI
development using Python and MySQL. Through the
integration of secure user registration, login, and voting
functionalities, this project serves as a robust example of
how technology can be used to facilitate fair and
transparent voting processes. The use of a graphical user
interface makes the system user-friendly and accessible,
ensuring ease of use even for those with minimal technical
knowledge.

This project showcases how efficient database handling


and structured coding practices can create a functional
system that minimizes errors and ensures data integrity.
Furthermore, it lays a foundation for expanding the system
with additional features such as real-time vote tracking,
user role management, and enhanced security protocols.

Overall, this project not only fulfills its objectives but also
provides a template that can be adapted for various real-
world applications, demonstrating the versatility and
power of Python and MySQL in software development.
BIBLIOGRAPHY

 Computer Science with python by sumita arora

You might also like