0% found this document useful (0 votes)
7 views

Computer science Project File PageSet

The document is a project file for a Voting Program created by Mridul Maurya for the academic session 2024-2025, under the guidance of Mr. Pramod Kumar Sharma. It includes an overview of Python, the project's need, system requirements, coding, and output examples. The project demonstrates how Python can be used to implement a simple election voting system, allowing users to vote and display results.

Uploaded by

Mridul Maurya
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views

Computer science Project File PageSet

The document is a project file for a Voting Program created by Mridul Maurya for the academic session 2024-2025, under the guidance of Mr. Pramod Kumar Sharma. It includes an overview of Python, the project's need, system requirements, coding, and output examples. The project demonstrates how Python can be used to implement a simple election voting system, allowing users to vote and display results.

Uploaded by

Mridul Maurya
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

AFS Ag r

COMPUTER SCIENCE PROJECT FILE


Session 2024-2025

Voting Program

Submitted To: Submitted By:


Mr. Pramod Kumar Mridul Maurya
Sharma XI TH 'A'
Roll Number: 11120
Certificate
This is to certify that Mridul Maurya of XI TH 'A' from KV
no.1 AFS Agra has successfully completed his Computer
Science project file on the topic Voting Program under
the kind guidance of Mr. Pramod Kumar Sharma.

Internal Teacher’s External Teacher’s


Signature Signature
Acknowledgment
I would like to express my deepest gratitude to all those who have supported and
guided me during the completion of my project titled "Voting Program”.

First and foremost, I would like to thank my dedicated and knowledgeable


Computer Science teacher, Mr. Pramod Kumar Sharma, for their unwavering
support, invaluable guidance, and insightful suggestions. Their expertise played a
pivotal role in shaping my research methodology and data analysis techniques.

I am also immensely grateful to my parents, whose constant encouragement and


belief in my abilities fuelled my motivation throughout this project. Their
unwavering support and words of encouragement were instrumental in keeping
me focused and determined to achieve my goals.
Lastly, I would like to acknowledge KV no.1 AFS Agra for providing me with the
necessary resources, laboratory facilities, and a conducive learning environment.
In conclusion, I am truly grateful to all those who have contributed to the
successful completion of my project. Your guidance, support, and belief in my
abilities have been instrumental in my academic journey, and I am deeply thankful
for the opportunity to undertake this research in the field of Computer Science.
Index
S No. Contents Page No.

1 Overview of Python Language 1

2 Summary Need of the Project 2

3 Package Name Application Info 3

4 System Requirements 4

5 Functions Used and Their Purpose 5

6 Coding 6

7 Output Examples 7

8 Bibliography 8
OVERVIEW OF PYTHON LANGUAGE
Python was created in the early 1990s by Guido van Rossum at Stichting
Mathematisch Centrum (CWI) in the Netherlands as a successor to the ABC
language. Python is an interpreted, high-level, and general-purpose
programming language that emphasizes code readability and supports
multiple programming paradigms, including procedural, object-oriented,
and functional programming.
Python Software Foundation (PSF) manages the language’s development.
Python is open-source and widely used for web development, data science,
automation, artificial intelligence, and more.
For more information, visit www.python.org

SUMMARY & NEED OF THE PROJECT

The Voting System is a simple yet effective way to conduct an


election in an institute. Students with valid identification can
vote without hesitation.
Features of the Voting System:
Accepts candidates' names.
Allows multiple voters to cast their votes.
Displays the winner based on votes received.
Shows the total votes of all candidates.
This project demonstrates how Python can be used to
implement a simple election voting system with basic
programming concepts.

PACKAGE NAME & APPLICATION INFO

Programming Language Used: Python


Application Used: IDLE Python
File Name: Vote.py
Topic of Project: Voting System
SYSTEM REQUIREMENTS

My System Specifications:

Processor: Intel® Core™ i3 5th Gen (2.10 GHz, 2 Cores, 2 Threads)


RAM: 8 GB
Operating System: Windows 11

Minimum System Requirements:


Processor: Intel® Pentium Dual Core or Intel® Core™ i3
Operating System: Windows 7 or later, macOS, Linux
Python Versions: Python 2.7.X, Python 3.6.X
Compatible Tools: Microsoft Visual Studio, PyCharm

Software Used:

• Python 3.6.2

FUNCTIONS USED AND THEIR PURPOSE

int() Converts input to an integer.


L[] Creates an empty list.
input() Takes user input as a string.
L.append() Adds an element to the list.
max() Finds the maximum value in the list.
L.index() Finds the index of an element in the list.
len() Returns the length of a list.
L[w] Retrieves an element from the list by index.
print() Displays output on the screen.
CODING
t = int(input('Enter number of voters : '))
n = int(input('Enter number of candidates : '))
v = []
l = []
for i in range(n):
print('Enter', i+1, 'candidate name', end=' ')
k = input(': ')

if len(k) < 1:
l.append("default " + str(i+1))
else:
l.append(k)

v.append(0)

print("**********************")

for j in range(t):
for m in range(n):
print(m+1, 'for', l[m])

print('CHOOSE YOUR CANDIDATE', end=' ')


p = int(input(': '))

print("``````````````````````````")
if p > n or p < 1:
print("~~~~~~~~~~~~~~wrong choice~~~~~~~~~~~~~~~~~")
else:
v[p-1] = v[p-1] + 1

k = max(v)
r = v.index(k)

print()
print('WINNER IS ->', l[r])
print()

h = len(l)
for w in range(h):
print(l[w], '--->', v[w])
OUTPUT EXAMPLES

Example 1: Example 2:

Enter number of voters: 10 Enter number of voters: 5


Enter number of candidates: 3 Enter number of candidates: 3
Enter 1 candidate name: Suhail Enter 1 candidate name: Suhail
Enter 2 candidate name: Kartik Enter 2 candidate name: Kartik
Enter 3 candidate name: Anurag Enter 3 candidate name:

********************** **********************

1 for Suhail 1 for Suhail


2 for Kartik 2 for Kartik
3 for Anurag 3 for default 3
CHOOSE YOUR CANDIDATE: 2 CHOOSE YOUR CANDIDATE: 3
... ...
WINNER IS -> Suhail WINNER IS -> Suhail
Suhail ---> 5 Suhail ---> 2
Kartik ---> 3 Kartik ---> 2
Anurag ---> 2 default 3 ---> 1

BIBLIOGRAPHY
The information for this project was gathered from multiple sources, including:

My teacher: Mr.Pramod Kumar Sharma (PGT C.S)

Web sources:
Google
Python.org

I sincerely thank Mr.Pramod Kumar Sharma for his support and guidance
throughout this project.

You might also like