Professional Documents
Culture Documents
ON
“ONLINE VOTING SYSTEM”
BACHELOR OF SCIENCE
(INFORMATION TECHNOLOGY)
B.Sc. (IT)
To
Primarily, we would like to thank dean of UIM Dr. Pradeep Suri for providing us with all
the necessary resources required to complete this project. We profusely thankful to the
department of computer science and applications, and our head dept. of computer application
(Dr.)Sonal Sharma and our Guide Both have been generous enough to provide us an
opportunity and accepting our candidature for the most valuable guidance and affordable
treatment given to us at every stage to boost our morale.
My acknowledgement goes to all the persons who have spent their busy time for our project.
I also thanks my friends for implementing the project much easier and giving new ideas.
Piyush Khatri
DECLARATION
We hereby declare that the project work entitld “Online Voting System ” submitted by
Piyush khatri to the “Uttaranchal Institute of Management”, is a record of original work
done by us under the guidance of “Dr. Sonal Sharma” and this project work has not
performed the basis for the award of any degree or diploma fellowship and similar project if
any.
DATE:
This is to certify that Piyush Khatri student of BSc IT sixth Semester,Uttaranchal Institute
of Management, Dehradun, has completed the Project Online voting system for the Batch
(2021-22).
SIGN-:
Table of Contents
S NO. Content Page No.
2
I Acknowledgement
3
II Declaration
4
III Certificate of Originality
9
IV Introduction
10
Overview
V
Project objectives
1.
SYSTEM ANALYSIS
5
PROJECT PLANNING
5.1 Pert Chart
5.2 Gantt Chart
5.3 Gantt Chart
6
The purpose of the project
7 TECHNICAL DESIGN
7.1 Output from the system
9.4 Testing
10 Problem Faced
11 Future Scope
13 Conclusion
14 Bibliography
INTRODUCTION
Online Voting is a web-based voting system that will help you manage your elections easily
and securely. This voting system can be used for casting votes during the elections held in
colleges, etc. In this system the voter do not have to go to the polling booth to cast their vote.
They can use their personal computer to cast their votes. There is a database which is
maintained in which all the name of the voters with their complete information is stored.
The System Administrator registers the voters by simply filling a registration form to register
the voters. After registration, the voter is assigned a secret voter ID with which he/she can use
to login to the system and cast his/her vote. If invalid/wrong details are submitted, then the
person is not registered to vote. After the user successfully registers themselves, a link is sent
on their respective E-mail IDs. The link is a key for the activation of the account of the user.
The account is activated only after the user clicks on that link.
The site will be activated only on the day of voting. Once the user logs in, they will be
provided with a One Time Password (OTP) which has to be entered by the user before
casting his/her vote. The password will be destroyed after casting of their respective vote. A
receipt of the vote will be sent to the user on their respective E-mail IDs. The advantage of
online voting is that the voters have the choice of voting at their own free time and there is
reduced congestion. It also minimizes on errors of vote counting. The individual votes are
submitted in a database which can be queried to find out who of the aspirants for a given post
has the highest number of votes.
Overview
Project objectives
The purpose of the online voting system is to assist the organization in automatically
performing all manual manipulation of the existing system.
The main purpose of the program is to make accurate and effective decisions for
different tasks at different times in different situations. The existing system works
hand in hand so unit members often face many embarrassing situations many times
over. Now they need to automate the whole process to make it easier and more
accurate.
The system should support a multi-user environment.
The system should be fully functional.
SYSTEM ANALYSIS
It’s far the manner of gathering and interpreting records, locating faults, and breaking down a
gadget into its constituent parts.
A system analysis is carried out to investigate a system or its additives so that it will decide
its working. it's a problem-solving method that complements the systems and make sure that
each one of its additives paintings together to obtain their goals. every time we study the
machine before starting the venture, we carry out the subsequent analyses:
Identification of need
The process of figuring out a consumer's requirements, regulations, pain factors, and reasons
is called needs identity. it is a fundamental personal advertising approach for determining
how valuable our product will be to the purchaser. Following are the challenge's demands
after determining all of the aforementioned necessities.
participation then?“. I have good news for you: running an electoral process online
does not mean that you have to discard traditional voting. This is not one thing or the
other. Depending on the provider of the online voting system you choose, a hybrid
election might be possible. With a hybrid voting, you will be able to let voters
participate in the election by either of the two ways, traditional or online. In this type
of voting a complex method avoids voters to vote more than once, just like in the all
traditional or all online methods.
Less physical infrastructure: When running a voting online, you avoid the
need for all the physical infrastructure usually required on a traditional voting. No
need of paper, printing, physical urns or staff may, therefore, lead to a lower monetary
investment.
• Fast and easy votes tally: Since the tally in online voting is run by
machines, you can assure that it will not have human counting errors and that it will
in most cases run faster than a count carried out by persons, so the results of your
election will be available
Preliminary Investigation
FEASIBILITY STUDY
Based on the results of preliminary research this study has now been extended to more
detailed research on the feasibility. “FEASIBILITY STUDY” is a testament to the program's
effectiveness in terms of its functionality, organizational impact, meeting capacity and the
efficient use of resources. It focuses on the big questions:
1. What are the user's tangible needs and how does the candidate system meet them?
During the feasibility study of this project, consideration will be given to key areas of
interest. Investigating and generating ideas about the new system does this.
• Determine and evaluate the effectiveness and cost of each proposed project.
TECHNICAL FEASIBILITY
A service availability study that may affect the ability to acquire an acceptable system. This
test determines whether the required technology for the proposed system is available or not.
• Can project work be done with currently available software and personal technology?
Front-end selection:
1. It must have a GUI that assists employees that are not from IT background.
3. Flexibility.
4. Robustness.
7. Platform independent.
10. Front end must support some popular back end like Ms Access.
Back-end Selection:
1. Multiple user support.
5. Stored procedures.
6. Popularity.
8. Easy to install.
The potential for technology is often the most difficult area encountered at this stage. It is
important that the analysis and interpretation process is carried out in accordance with the
feasibility of technical feasibility. It focuses on the existing computer system and to what
extent it can support the proposed system.
Possible Performance
SCHEDULE FEASIBILITY
Timing assessment is the most important consideration in project development. The schedule
of time required for the development of this project is very important as the development
time that consumes a lot of machine time, costs and causing delays in the development of
other systems.
PROJECT PLANNING
Pert Chart
A PERT chart, also called a PERT diagram, is a tool for making plans, setting up, and
mapping out project obligations. The programme assessment and evaluate method, or PERT,
is an acronym for programme assessment and review method. It shows the timeline of an
undertaking and breaks down unique responsibilities.
6.
Gantt Chart
A Gantt chart is an undertaking control methodology that depicts the development of an
undertaking. It typically carries two sections: at the left, a listing of tasks is printed, and on
the proper, a timetable with scheduling bars is used to visualise paintings. venture begin and
cease dates, milestones, undertaking dependencies, and assignees can all be included inside
the Gantt chart. Our project's planning is contemplated by the Gantt chart underneath.
1. System evaluation – The project is studied briefly so the machine can be analysed and
modelled.
2. Requirement – The tasks and conditions had been decided in order that the task can be
finished efficaciously.
4. device design – positive modules, diagrams and charts have been described to satisfy
the desired necessities of the undertaking.
five. Coding – the main framework of undertaking is building the usage of one-of-a-kind
programming languages.
6. checking out – venture turned into being tested before implementation to provide the
high-quality outcome from the project to the customers.
7. Implementation – challenge is being applied to ensure it meets the objectives that are
being outlined within the making plans segment.
8. Report –
9. Documentation-
S. No. Activity Start Date Duration End Date
Easy to operate: - The system should be easy to use and in such a way that it can be
developed in a short period of time and fit a limited user budget.
Immediate data storage: - In the hands-on system there are many problems with
storing large amounts of information.
Quick access to information: - The main purpose of the proposed system is to
provide quick and effective retrieval of information.
No Borrowing: - In the proposed system great care may be that no information is
repeated anywhere, where it is stored or otherwise. This will ensure the economic use
of storage space and compliance with stored data.
Reliability: - The reliability of the proposed system will be high due to the reasons
mentioned above. The reason for the increased reliability of the system is that there
will now be proper storage of information.
Accuracy: - The accuracy level of the proposed system will be high. All operations
will be performed correctly and ensure that any information from the facility is
accurate.
TECHNICAL DESIGN
ONLINE VOTING SYSTEM is a voting system where any voter can exercise his or her
voting rights anywhere in the world. THE ONLINE VOTING SYSTEM consists of-:
a. The system enables students to sign up for the program before starting to select the person
they wish to vote for.
b. The system provides home-based interactions where users (i.e. even unregistered) can view
updates that occur at different candidate positions in elections.
c. The system provides a voting system where users can identify the person representing the
president, vice-presidents and faculty representatives according to their abilities.
d. The system requires students to verify the selected candidate before casting the wrong
candidate.
e. This system prevents students from cheating by not allowing them to vote twice.
Output from the system
a. The system has the ability to provide updates on what is going on in the election and to
provide a comprehensive number of votes and a percentage bar.
Software Requirements Specifications
We need something that can provide the infrastructure for the voting system that is efficient
secure mobile and traceable.
PURPOSE
Online Voting System is a system which enables all citizens to cast their
vote online. The purpose is to increase the voting percentage across the
country, as in the present system people have to visit the booth to cast
their vote and those people who live out of their home town are not able to
cast vote during the elections. So due to this the voting percentage across
the country is very less. Through this software those people who live out
of their home town will also be able to cast their votes as this system is
online.
The program responds with message windows that include dialogues for various tasks that
the user has to deal with.
FUNCTIONAL REQUIREMENTS
Secure storage and retrieval of voters‟ details from the database.
Enable secure login of voters, that is to say non- legitimate voters should never be
allowed to login to the tool, these include the under aged and non nationals.
Maintaining and manipulating records in database through functions like edit, delete,
and view.
Validate and verify input and output data
b. 24 X 7 availability.
c. Design of the best part to get the best performance at the highest time.
e. The program can run on the Windows NT operating system and the latest version.
(Workplace).
f. The app provides consistent user functionality, menus and commands across all parts of the
app to help new users "achieve speed". This is especially important when government
officials have substitutions for many employees (usability).
g. The system provides data / information protection mechanisms in the event of any disaster
(Copy archive / recovery).
The end user should have a basic knowledge of English and computer
usage.
Administrator is created in the system already.
User
Or Adm
inistrator
System
Output
The diagram above is a 0 level DFD showing only the flow of data between the variance and
the system. In the online voting system the Manager is the system administrator and all
decisions are made by him. The Administrator can manage all voters and their details, voting
details etc. and view their details and may review those details.
Login Voter
Process Registration Process
er information checking process Final
Voting
Report
Process
The diagram above shown is a Data Flow Diagram with a 1 level online voting system.
According to this DFD various processes are performed after the login process. The
administrator can register voters. The Regulator can register voters and the voter can
exercise their voting rights to vote for any candidate they wish to vote for. The voter can
view the final report after the vote.
ER Diagram
The E-R model is usually the result of systematic testing to define and explain what is
important on the roads in an agency area. It does not define business strategies; The first level
provides a business statistics schema for business imagery. it is also illustrated as packaging
containers (companies) that can be connected with the help of problems (relationships) that
define organizations and interdependence between organizations. The ER model can also be
reproduced by word of mouth, for example: a single building can be divided into residential
units of 0 or more, but one flat can work best to be housed in a single building.
Businesses may seem unintelligent in relationships, but in addition to large houses
(attributes), which include identifiers called "number one keys". Drawings created to
represent attributes above business and relationships can be considered as business drawings
and a romantic element, rather than business relationship models.
The ER model is usually terminated as a website. In the simplest use of the related website,
each line of the table represents one business model, and all the complexity of the desk
represents the type of feature. On a business website dating between businesses is used to
store the key key of one business as an identifier or "external key" within another business
table.
there is a lifetime of ER models / facts that will be built on two or 3 types of inaccessibility.
note that the conceptual-logical-physical sequences below are used for different specification
styles, and are not the same as the 3 schemes of software engineering.
this is an excellent ER model ER because it incorporates small granular details but establishes
a range of what should be protected within the model set. The concept of ER concept usually
defines close reference statistics that can be commonly used by an organization. building an
ER version of a major business concept is beneficial in documenting the financial structure of
a commercial business company.
The ER concept version can be used as the basis for a single or larger logical information
model . The reason for the ER concept version is the same setup of structural metadata for
businesses to capture information within a set of intelligent ER models. The translation of
conceptual records can be used to build common relationships between ER models as the
basis for the integration of the information version.
One or more ER models may be developed from each ER version. The virtual ER version has
been greatly improved to strengthen it as a website. therefore, each version of the portable ER
must contain enough material to deliver the database and each ER physical model is timed
due to the fact that each portable storage device is unusually special.
Physical translation is often included in deceptive website building metadata such as related
website items that include table tables, website indexes that include specific key indicators,
and website limits in conjunction with an important overseas key or similarity bar. The ER
model is also used to design changes to related website gadgets and to maintain website
building metadata.
The first phase of the reality system format uses those fashions for all test requirements to
define mathematical preferences or the type of facts this should be stored on the website. The
record-keeping method can be used to provide an explanation of any ontology (i.e., top stage
view and sentence categories used and its relationships) in a good entertainment setting.
within the framework of the information gadget based entirely on the site, the conceptual
knowledge model, in the future (often referred to as the logical structure), is designed with a
version of logical facts, and a relationship model. ; this flip is made for a visible change in a
particular area of the body structure. note that always, each of these widths is called "body
format."
Registration
Admin.
VOTER
Fail
Id Pass
Login
VOTING
Voting Report
Report View
E-R Diagram
The entity relationship diagram shows the relationship between the various users and their
attributes. There is a relationship between the election commission and voter.
The VOTER has different attributes to store their data to data base are follows:-
LOGIN
HOME PAGE
DOWNL
OADS
VIEW REGISTERED
VOTERS
Presentation layer
This layer, which communicates with the application layer through a client API,
performs data layout and formatting actions. The Classification Module includes C,
COM, and Java™ client APIs. In addition, applications can interact with the system
by using the SOAP protocol. For example, the Classification Module might be
included as a Web reference in any .NET application. In most cases, you develop your
own presentation layer that fits in with the rest of your application suite.
Application layer
This layer, which is the core of the system, provides various services, such as
language analysis, instance pooling of knowledge bases, and management of the
distribution of tasks across computers. It is accessed through client APIs that are
provided for writing client code that communicates with the system.
Data layer
This layer is responsible for storing configuration information. The system stores its
data in a ddedicated data server, which is installed with the Classification Module
core components.
Class diagram-:
The following entities have been realized with the system. The database called onlinevoting
with the following entities and fields;
Visual connector is a presentation layer placed on the client side. A number of technologies
can be used to build links quickly. In this project, a multi-component PHP is used.
Reasons to use PHP as a link development tool include the following;
1. It is customizable. It helps in a cheap way to create objects and commands, and modify
keyboard shortcuts.
2. It is open source so even its technical support can be easily obtained.
Testing
This is the final stage of system development. At this point, although the system has not been
tested online when it is operational, but technically the inactivity test is performed to identify
errors and make corrections in the event of errors before reaching users. The test phase is
performed in two ways or sub-stages as can be explained below.
Test module and program
For this, each module is individually tested to ensure that each module is working properly.
And this is actually done every time after the completion of the module.
System Testing
After upgrading several modules, the modules were compiled and tested to see if there were
any malfunctions in the integrated units and any possible errors. This is the point where if the
system has no errors to launch it is ready for use as intended i.e. usage.
Training
Upon deployment, no need of training to administrators or other system users as the system is
simple and self demonstrating for everyone to make application of it. However, to use the
system it requires basic computer knowledge.
Problems faced
Online voting in elections might seem like a logical step forward considering the many other
daily activities, like banking and shopping, that we complete online. However, voting online
does present unique challenges that usually don’t apply to other internet-based processes.
These challenges are related to a variety of factors, including the security required for online
voting, legal requirements and frameworks, public opinion, and investment.
Time
Time become one of the problem I faced because I had a less time compared to what I
should do.
FUTURE SCOPE
The challenge of developing electronic voting systems is not only security but also
protecting the secrecy of the ballot, a bedrock principle of free and fair elections. Currently
there is “no known technology that can guarantee the secrecy, security, and verifiability of a
marked ballot transmitted over the Internet. 1
End-to-end verifiable election software relies on cryptography to encrypt and protect votes
while allowing voters to see their vote was properly recorded, that the vote was correctly
tabulated, and that the final vote count matches the cast votes. End-to-end verifiable software
can be integrated into existing election systems to enhance the security of voting
infrastructure.5 Recent open-source software packages including end-to-end verifiability
systems, such as Microsoft’s software development kit Election Guard, could increase
security if implemented in future elections.
A new platform for secure votes and voting is the online voting system. Online voting
systems are a web-based voting system, which transmits votes via a web browser over the
internet. Voters from all over the world are eligible to vote online.
Security issues arising from online voting are as follows: In general applications, password
protection is high and phishing attacks are not the focus of the application. Website users are
not protected efficiently from phishing.
The key proposal for ensuring a secure online polling protocol to meet privacy, anonymity,
eligibility, equity, verification, and unique online voting safety requirements
A secure, end-to-end verifiable, Identity-based blind signature Internet voting system: IEEE,
newspapers, 2020; This document has been amended Early vote, elliptical curve
cryptography, verifiable end-to-end digital signature, Internet vote system. Batch
venerability. Functional digital signature used by the BLS short signature system to protect
voting against any changes anonymously to issue a blank ballot to voters. Future of voting:
Specifications and feasibility study of verifiable Internet vote from end to end.
User authentication
System users in this case students and administrators are provided with usernames and
passwords that they can use to gain access to the system subject to their authorization. This is
also possible as each user's input is previewed before allowing the user access.
And only authorized users can be redirected to the appropriate pages they can access.
Database Security
In addition to page security, the site itself provides flexible system authorization that allows
for some or all of the site rights (for example, the right to create data or delete data input from
the site, to modify data) for specific users or groups of users. and encrypted passwords.
For example, if you were trying to complete any number of online banking processes, you
would want the bank to verify your identity so that only you can access your account. You
would also want the bank to associate your identity with your online banking activity, so that
you can be assured that only you are making changes to your account. This is typically done
by verifying your identity through a username and password, and then tracking your activity
once you are logged in.
When voting online, the online voting system also needs to verify your identity to ensure that
you are eligible to vote in a given election. However, unlike in online banking, the system also
needs to guarantee your anonymity by separating your identity from your online activity so
that no one can link your ballot, which contains your voting choices, to your identity. Having
to both verify your identity while also breaking ties between your identity and the ballot you
cast is a unique challenge to online voting.
Challenges like this can be overcome with sophisticated cyber security measures
like encryption and digital signatures. In this instance, a voter’s encrypted digital ballot would
be signed with their digital signature so that the voting server can verify that the ballot was
sent by an eligible voter. Once the voter’s eligibility is determined, the digital signature can be
separated from the ballot before it is shuffled and decrypted, revealing its contents while
preserving voter privacy.
VotingVerifiability
An online voting system must also be able to provide verification that it has successfully
maintained election integrity and that no manipulation had occurred during the voting or
tallying processes. Achieving this level of verifiability is complicated by the need to verify the
correctness and accuracy of the decrypting process without revealing sensitive information
related to the private decryption key or voter identities.
Conclusion
People always want to find the way to make their life easy and comfortable. Currently,
wedepend on the web pages much for everything such as- searching; purchase desire goods
etc. asthere are many web applications depend on various requirements. Today’s web
applications arerich internet applications and developers are much concerned about
applications security issues while they are developing their products. A user-friendly system
becomes popular rapidly and thus benefits both the system developer and its users
Online voting methods can help with visibility by providing a Web site where voters can go
after the election to verify that their votes were included in the total as it offers Accessibility,
Cost effectiveness, Transparency, Give Authority and Confidence to Voters and Feeling
secure and intended be kept secret
This Online Voting system will manage the Voter’s information by which voter can login and
use his voting rights. The system will incorporate all features of Voting system
Recommendations
The time spent developing and implementing a project is very small compared to the actual
time required to complete the entire project depending on the needs of the user and the
resources required. semester for project implementation only.
BIBLOGRAPHY
1. Malwade Nikita, Patil Chetan, Chavan Suruchi, Prof, S Raut
Oussama Kassem Zein, Web-Based Voting System Using Fingerprint: Design and
Implementation, volume 2
Posted: 2019-12
5. Alexander Stakeholders
Who is your system for? IEEE: Computing and Control Engineering, volume 14, p. 22 - 26
Posted: 2003-04
6. K P Kaliyamurthie, R Udayakumar, D Parameswari, S N Mugunthan
Highly secure online voting system with multi security using biometric and steganography
International Journal of Advanced Scientific Research and Technology, volume 2, issue 2, p.
195 - 203
9. Drew Springall, Travis Finkenauer, Zakir Durumeric, Jason Kitcat, Harri Hursti Margaret
Macalpine, J, Alex Halderman
CODING
from datetime import date
import itertools
import threading
import time
import sys
#For ID Registration-------------
students_id = list(range(1000000))
num_of_stud = len(students_id)
class election():
def welcome(obj):
today = date.today()
datetime = today.strftime("%B %d, %Y")
print("--------------------------------------------------------------------
---")
print(" Carlos Hilado Memorial State College
")
print(" COLLEGE OF ENGINEERING AND INFORMATION TECHNOLOGY
")
print(" Alijis Campus - " + datetime + "
")
print("--------------------------------------------------------------------
---")
print("************* Welcome to SSG Elections for S.Y. 2021-2022
*************")
def loading(obj):
done = False
t = threading.Thread(target=animate)
t.start()
def error_loading(obj):
done = False
t = threading.Thread(target=animate)
t.start()
def loading_result(obj):
done = False
t = threading.Thread(target=animate)
t.start()
def registration(obj):
while True:
print("-----------------------------
REGISTRATION-----------------------------")
print("")
obj.f_name = input("First name: ")
obj.l_name = input("Last name: ")
obj.course = input("BS in: ")
obj.year_section = input("Year & section: ")
obj.stud_id = int(input("Student ID no.: "))
if obj.stud_id in students_id:
students_id.remove(obj.stud_id)
obj.loading()
print("Done!")
print('-----------------------Registered
Successfully!-----------------------')
print("Name: " + obj.f_name + " " + obj.l_name)
print("Course: Bachelor of Science in " + obj.course)
print("Year & Section: " + obj.year_section)
print("Voter's ID: " + str(obj.stud_id))
obj.president()
obj.vice_pres()
obj.secretary()
obj.auditor()
obj.treasurer()
obj.media_info()
obj.first_yr_rep()
obj.sec_yr_rep()
obj.third_yr_rep()
obj.fourth_yr_rep()
break
else:
obj.error_loading()
print("Done!")
print("------------------ID existed. You have already
voted!----------------")
print("---------------------------PLEASE TRY
AGAIN--------------------------\n")
#President --------------------------------------------------------
def president(obj):
print("--------------------------------------------------------------------
--")
proceed_pres = int(input("Do you want to proceed voting in President? 1.
Yes / 2. No : "))
if proceed_pres == 1:
pres = 1
while pres <= float('inf'):
print("--------------------------------------------------------------------
--")
print("The candidtates running for President are: \n")
print(str(obj.p1_no) + ") " + obj.p1_name)
print(str(obj.p2_no) + ") " + obj.p2_name)
print(str(obj.p3_no) + ") " + obj.p3_name)
print("--------------------------------------------------------------------
--")
pres_vote = int(input("Press the number of candidate you want to vote for:
"))
if pres_vote == 1:
obj.pres_1 += 1
pres1_final = obj.p1_name + " = " + str(obj.pres_1)
print("--------------------------------------------------------------------
--")
print("Total votes for " + str(pres1_final))
print("Total votes for " + obj.p2_name + " = " + str(obj.pres_2))
print("Total votes for " + obj.p3_name + " = " + str(obj.pres_3))
obj.vice_pres()
break
elif pres_vote == 2:
obj.pres_2 += 1
pres2_final = obj.p2_name + " = " + str(obj.pres_2)
print("--------------------------------------------------------------------
--")
print("Total votes for " + obj.p1_name + " = " + str(obj.pres_1))
print("Total votes for " + str(pres2_final))
print("Total votes for " + obj.p3_name + " = " + str(obj.pres_3))
obj.vice_pres()
break
elif pres_vote == 3:
obj.pres_3 += 1
pres3_final = obj.p3_name + " = " + str(obj.pres_3)
print("--------------------------------------------------------------------
--")
print("Total votes for " + obj.p1_name + " = " + str(obj.pres_1))
print("Total votes for " + obj.p2_name + " = " + str(obj.pres_2))
print("Total votes for " + str(pres3_final))
obj.vice_pres()
break
else:
print("Invalid input. Please try again.")
print("--------------------------------------------------------------------
--")
elif proceed_pres == 2:
obj.vice_pres()
else:
print("Invalid input. Please try again.")
print("--------------------------------------------------------------------
--")
def vice_pres(obj):
print("--------------------------------------------------------------------
--")
proceed_vpres = int(input("Do you want to proceed voting in Vice President?
1. Yes / 2. No : "))
if proceed_vpres == 1:
vpres = 1
while vpres <= float('inf'):
print("--------------------------------------------------------------------
--")
print("The candidtates running for Vice President are: \n")
print(str(obj.vp1_no) + ") " + obj.vp1_name)
print(str(obj.vp2_no) + ") " + obj.vp2_name)
print(str(obj.vp3_no) + ") " + obj.vp3_name)
print("--------------------------------------------------------------------
--")
vpres_vote = int(input("Press the number of candidate you want to vote for:
"))
if vpres_vote == 1:
obj.vpres_1 += 1
vpres1_final = obj.vp1_name + " = " + str(obj.vpres_1)
print("--------------------------------------------------------------------
--")
print("Total votes for " + str(vpres1_final))
print("Total votes for " + obj.vp2_name + " = " + str(obj.vpres_2))
print("Total votes for " + obj.vp3_name + " = " + str(obj.vpres_3))
obj.secretary()
break
elif vpres_vote == 2:
obj.vpres_2 += 1
vpres2_final = obj.vp2_name + " = " + str(obj.vpres_2)
print("--------------------------------------------------------------------
--")
print("Total votes for " + obj.vp1_name + " = " + str(obj.vpres_1))
print("Total votes for " + str(vpres2_final))
print("Total votes for " + obj.vp3_name + " = " + str(obj.vpres_3))
obj.secretary()
break
elif vpres_vote == 3:
obj.vpres_3 += 1
vpres3_final = obj.vp3_name + " = " + str(obj.vpres_3)
print("--------------------------------------------------------------------
--")
print("Total votes for " + obj.vp1_name + " = " + str(obj.vpres_1))
print("Total votes for " + obj.vp2_name + " = " + str(obj.vpres_2))
print("Total votes for " + str(vpres3_final))
obj.secretary()
break
else:
print("Invalid input. Please try again.")
elif proceed_vpres == 2:
obj.secretary()
else:
print("Invalid input. Please try again.")
#Secretary --------------------------------------------------------
def secretary(obj):
print("--------------------------------------------------------------------
--")
proceed_sec = int(input("Do you want to proceed voting in Secretary? 1. Yes
/ 2. No : "))
if proceed_sec == 1:
sec = 1
while sec <= float('inf'):
print("--------------------------------------------------------------------
--")
print("The candidtates running for Secretary are: \n")
print(str(obj.sec1_no) + ") " + obj.sec1_name)
print(str(obj.sec2_no) + ") " + obj.sec2_name)
print(str(obj.sec3_no) + ") " + obj.sec3_name)
print("--------------------------------------------------------------------
--")
sec_vote = int(input("Press the number of candidate you want to vote for:
"))
if sec_vote == 1:
obj.sec_1 += 1
sec_final = obj.sec1_name + " = " + str(obj.sec_1)
print("--------------------------------------------------------------------
--")
print("Total votes for " + str(sec_final))
print("Total votes for " + obj.sec2_name + " = " + str(obj.sec_2))
print("Total votes for " + obj.sec3_name + " = " + str(obj.sec_3))
obj.auditor()
break
elif sec_vote == 2:
obj.sec_2 += 1
sec2_final = obj.sec2_name + " = " + str(obj.sec_2)
print("--------------------------------------------------------------------
--")
print("Total votes for " + obj.sec1_name + " = " + str(obj.sec_1))
print("Total votes for " + str(sec2_final))
print("Total votes for " + obj.sec3_name + " = " + str(obj.sec_3))
obj.auditor()
break
elif sec_vote == 3:
obj.sec_3 += 1
sec3_final = obj.sec3_name + " = " + str(obj.sec_3)
print("--------------------------------------------------------------------
--")
print("Total votes for " + obj.sec1_name + " = " + str(obj.sec_1))
print("Total votes for " + obj.sec2_name + " = " + str(obj.sec_2))
print("Total votes for " + str(sec3_final))
obj.auditor()
break
else:
print("Invalid input. Please try again.")
elif proceed_sec == 2:
obj.auditor()
else:
print("Invalid input. Please try again.")
#Auditor --------------------------------------------------------
def auditor(obj):
print("--------------------------------------------------------------------
--")
proceed_aud = int(input("Do you want to proceed voting in Auditor? 1. Yes /
2. No : "))
if proceed_aud == 1:
aud = 1
while aud <= float('inf'):
print("--------------------------------------------------------------------
--")
print("The candidtates running for Auditor are: \n")
print(str(obj.aud1_no) + ") " + obj.aud1_name)
print(str(obj.aud2_no) + ") " + obj.aud2_name)
print(str(obj.aud3_no) + ") " + obj.aud3_name)
print("--------------------------------------------------------------------
--")
aud_vote = int(input("Press the number of candidate you want to vote for:
"))
if aud_vote == 1:
obj.aud_1 += 1
aud_final = obj.aud1_name + " = " + str(obj.aud_1)
print("--------------------------------------------------------------------
--")
print("Total votes for " + str(aud_final))
print("Total votes for " + obj.aud2_name + " = " + str(obj.aud_2))
print("Total votes for " + obj.aud3_name + " = " + str(obj.aud_3))
obj.treasurer()
break
elif aud_vote == 2:
obj.aud_2 += 1
aud2_final = obj.aud2_name + " = " + str(obj.aud_2)
print("--------------------------------------------------------------------
--")
print("Total votes for " + obj.aud1_name + " = " + str(obj.aud_1))
print("Total votes for " + str(aud2_final))
print("Total votes for " + obj.aud3_name + " = " + str(obj.aud_3))
obj.treasurer()
break
elif aud_vote == 3:
obj.aud_3 += 1
aud3_final = obj.aud3_name + " = " + str(obj.aud_3)
print("--------------------------------------------------------------------
--")
print("Total votes for " + obj.aud1_name + " = " + str(obj.aud_1))
print("Total votes for " + obj.aud2_name + " = " + str(obj.aud_2))
print("Total votes for " + str(aud3_final))
obj.treasurer()
break
else:
print("Invalid input. Please try again.")
elif proceed_aud == 2:
obj.treasurer()
else:
print("Invalid input. Please try again.")
#Treasurer --------------------------------------------------------
def treasurer(obj):
print("--------------------------------------------------------------------
--")
proceed_tre = int(input("Do you want to proceed voting in Treasurer? 1. Yes
/ 2. No : "))
if proceed_tre == 1:
tre = 1
while tre <= float('inf'):
print("--------------------------------------------------------------------
--")
print("The candidtates running for Treasurer are: \n")
print(str(obj.tre1_no) + ") " + obj.tre1_name)
print(str(obj.tre2_no) + ") " + obj.aud2_name)
print(str(obj.tre3_no) + ") " + obj.tre3_name)
print("--------------------------------------------------------------------
--")
tre_vote = int(input("Press the number of candidate you want to vote for:
"))
if tre_vote == 1:
obj.tre_1 += 1
tre_final = obj.tre1_name + " = " + str(obj.tre_1)
print("--------------------------------------------------------------------
--")
print("Total votes for " + str(tre_final))
print("Total votes for " + obj.tre2_name + " = " + str(obj.tre_2))
print("Total votes for " + obj.tre3_name + " = " + str(obj.tre_3))
obj.media_info()
break
elif tre_vote == 2:
obj.tre_2 += 1
tre2_final = obj.tre2_name + " = " + str(obj.tre_2)
print("--------------------------------------------------------------------
--")
print("Total votes for " + obj.tre1_name + " = " + str(obj.tre_1))
print("Total votes for " + str(tre2_final))
print("Total votes for " + obj.tre3_name + " = " + str(obj.tre_3))
obj.media_info()
break
elif tre_vote == 3:
obj.tre_3 += 1
tre3_final = obj.tre3_name + " = " + str(obj.tre_3)
print("--------------------------------------------------------------------
--")
print("Total votes for " + obj.tre1_name + " = " + str(obj.tre_1))
print("Total votes for " + obj.tre2_name + " = " + str(obj.tre_2))
print("Total votes for " + str(tre3_final))
obj.media_info()
break
else:
print("Invalid input. Please try again.")
elif proceed_tre == 2:
obj.media_info()
else:
print("Invalid input. Please try again.")
def media_info(obj):
print("--------------------------------------------------------------------
--")
proceed_media = int(input("Do you want to proceed voting in Media
Information? 1. Yes / 2. No : "))
if proceed_media == 1:
media = 1
while media <= float('inf'):
print("--------------------------------------------------------------------
--")
print("The candidtates running for Media Information are: \n")
print(str(obj.media1_no) + ") " + obj.media1_name)
print(str(obj.media2_no) + ") " + obj.media2_name)
print(str(obj.media3_no) + ") " + obj.media3_name)
print("--------------------------------------------------------------------
--")
media_vote = int(input("Press the number of candidate you want to vote for:
"))
if media_vote == 1:
obj.media_1 += 1
media_final = obj.media1_name + " = " + str(obj.media_1)
print("--------------------------------------------------------------------
--")
print("Total votes for " + str(media_final))
print("Total votes for " + obj.media2_name + " = " + str(obj.media_2))
print("Total votes for " + obj.media3_name + " = " + str(obj.media_3))
obj.first_yr_rep()
break
elif media_vote == 2:
obj.media_2 += 1
media2_final = obj.media2_name + " = " + str(obj.media_2)
print("--------------------------------------------------------------------
--")
print("Total votes for " + obj.media1_name + " = " + str(obj.media_1))
print("Total votes for " + str(media2_final))
print("Total votes for " + obj.media3_name + " = " + str(obj.media_3))
obj.first_yr_rep()
break
elif media_vote == 3:
obj.media_3 += 1
media3_final = obj.media3_name + " = " + str(obj.media_3)
print("--------------------------------------------------------------------
--")
print("Total votes for " + obj.media1_name + " = " + str(obj.media_1))
print("Total votes for " + obj.media2_name + " = " + str(obj.media_2))
print("Total votes for " + str(media3_final))
obj.first_yr_rep()
break
else:
print("Invalid input. Please try again.")
elif proceed_media == 2:
obj.first_yr_rep()
else:
print("Invalid input. Please try again.")
def first_yr_rep(obj):
print("--------------------------------------------------------------------
--")
proceed_f_rep = int(input("Do you want to proceed voting in First Year
Representative? 1. Yes / 2. No : "))
if proceed_f_rep == 1:
f_rep = 1
while f_rep <= float('inf'):
print("--------------------------------------------------------------------
--")
print("The candidtates running for First Year Representative are: \n")
print(str(obj.f_rep1_no) + ") " + obj.f_rep1_name)
print(str(obj.f_rep2_no) + ") " + obj.f_rep2_name)
print(str(obj.f_rep3_no) + ") " + obj.f_rep3_name)
print("--------------------------------------------------------------------
--")
f_rep_vote = int(input("Press the number of candidate you want to vote for:
"))
if f_rep_vote == 1:
obj.f_rep_1 += 1
f_rep_final = obj.f_rep1_name + " = " + str(obj.f_rep_1)
print("--------------------------------------------------------------------
--")
print("Total votes for " + str(f_rep_final))
print("Total votes for " + obj.f_rep2_name + " = " + str(obj.f_rep_2))
print("Total votes for " + obj.f_rep3_name + " = " + str(obj.f_rep_3))
obj.sec_yr_rep()
break
elif f_rep_vote == 2:
obj.f_rep_2 += 1
f_rep2_final = obj.f_rep2_name + " = " + str(obj.f_rep_2)
print("--------------------------------------------------------------------
--")
print("Total votes for " + obj.f_rep1_name + " = " + str(obj.f_rep_1))
print("Total votes for " + str(f_rep2_final))
print("Total votes for " + obj.f_rep3_name + " = " + str(obj.f_rep_3))
obj.sec_yr_rep()
break
elif f_rep_vote == 3:
obj.f_rep_3 += 1
f_rep3_final = obj.f_rep3_name + " = " + str(obj.f_rep_3)
print("--------------------------------------------------------------------
--")
print("Total votes for " + obj.f_rep1_name + " = " + str(obj.f_rep_1))
print("Total votes for " + obj.f_rep2_name + " = " + str(obj.f_rep_2))
print("Total votes for " + str(f_rep3_final))
obj.sec_yr_rep()
break
else:
print("Invalid input. Please try again.")
elif proceed_f_rep == 2:
obj.sec_yr_rep()
else:
print("Invalid input. Please try again.")
def sec_yr_rep(obj):
print("--------------------------------------------------------------------
--")
proceed_s_rep = int(input("Do you want to proceed voting in Second Year
Representative? 1. Yes / 2. No : "))
if proceed_s_rep == 1:
s_rep = 1
while s_rep <= float('inf'):
print("--------------------------------------------------------------------
--")
print("The candidtates running for Second Year Representative are: \n")
print(str(obj.s_rep1_no) + ") " + obj.s_rep1_name)
print(str(obj.s_rep2_no) + ") " + obj.s_rep2_name)
print(str(obj.s_rep3_no) + ") " + obj.s_rep3_name)
print("--------------------------------------------------------------------
--")
s_rep_vote = int(input("Press the number of candidate you want to vote for:
"))
if s_rep_vote == 1:
obj.s_rep_1 += 1
s_rep_final = obj.s_rep1_name + " = " + str(obj.s_rep_1)
print("--------------------------------------------------------------------
--")
print("Total votes for " + str(s_rep_final))
print("Total votes for " + obj.s_rep2_name + " = " + str(obj.s_rep_2))
print("Total votes for " + obj.s_rep3_name + " = " + str(obj.s_rep_3))
obj.third_yr_rep()
break
elif s_rep_vote == 2:
obj.s_rep_2 += 1
s_rep2_final = obj.s_rep2_name + " = " + str(obj.s_rep_2)
print("--------------------------------------------------------------------
--")
print("Total votes for " + obj.s_rep1_name + " = " + str(obj.s_rep_1))
print("Total votes for " + str(s_rep2_final))
print("Total votes for " + obj.s_rep3_name + " = " + str(obj.s_rep_3))
obj.third_yr_rep()
break
elif s_rep_vote == 3:
obj.s_rep_3 += 1
s_rep3_final = obj.s_rep3_name + " = " + str(obj.s_rep_3)
print("--------------------------------------------------------------------
--")
print("Total votes for " + obj.s_rep1_name + " = " + str(obj.s_rep_1))
print("Total votes for " + obj.s_rep2_name + " = " + str(obj.s_rep_2))
print("Total votes for " + str(s_rep3_final))
obj.third_yr_rep()
break
else:
print("Invalid input. Please try again.")
elif proceed_s_rep == 2:
obj.third_yr_rep()
else:
print("Invalid input. Please try again.")
def third_yr_rep(obj):
print("--------------------------------------------------------------------
--")
proceed_t_rep = int(input("Do you want to proceed voting in Third Year
Representative? 1. Yes / 2. No : "))
if proceed_t_rep == 1:
t_rep = 1
while t_rep <= float('inf'):
print("--------------------------------------------------------------------
--")
print("The candidtates running for Third Year Representative are: \n")
print(str(obj.t_rep1_no) + ") " + obj.t_rep1_name)
print(str(obj.t_rep2_no) + ") " + obj.t_rep2_name)
print(str(obj.t_rep3_no) + ") " + obj.t_rep3_name)
print("--------------------------------------------------------------------
--")
t_rep_vote = int(input("Press the number of candidate you want to vote for:
"))
if t_rep_vote == 1:
obj.t_rep_1 += 1
t_rep_final = obj.t_rep1_name + " = " + str(obj.t_rep_1)
print("--------------------------------------------------------------------
--")
print("Total votes for " + str(t_rep_final))
print("Total votes for " + obj.t_rep2_name + " = " + str(obj.t_rep_2))
print("Total votes for " + obj.t_rep3_name + " = " + str(obj.t_rep_3))
obj.fourth_yr_rep()
break
elif t_rep_vote == 2:
obj.t_rep_2 += 1
t_rep2_final = obj.t_rep2_name + " = " + str(obj.t_rep_2)
print("--------------------------------------------------------------------
--")
print("Total votes for " + obj.t_rep1_name + " = " + str(obj.t_rep_1))
print("Total votes for " + str(t_rep2_final))
print("Total votes for " + obj.t_rep3_name + " = " + str(obj.t_rep_3))
obj.fourth_yr_rep()
break
elif t_rep_vote == 3:
obj.t_rep_3 += 1
t_rep3_final = obj.t_rep3_name + " = " + str(obj.t_rep_3)
print("--------------------------------------------------------------------
--")
print("Total votes for " + obj.t_rep1_name + " = " + str(obj.t_rep_1))
print("Total votes for " + obj.t_rep2_name + " = " + str(obj.t_rep_2))
print("Total votes for " + str(t_rep3_final))
obj.fourth_yr_rep()
break
else:
print("Invalid input. Please try again.")
elif proceed_t_rep == 2:
obj.fourth_yr_rep()
else:
print("Invalid input. Please try again.")
def fourth_yr_rep(obj):
print("--------------------------------------------------------------------
--")
proceed_frt_rep = int(input("Do you want to proceed voting in Fourth Year
Representative? 1. Yes / 2. No : "))
if proceed_frt_rep == 1:
frt_rep = 1
while frt_rep <= float('inf'):
print("--------------------------------------------------------------------
--")
print("The candidtates running for Fourth Year Representative are: \n")
print(str(obj.frt_rep1_no) + ") " + obj.frt_rep1_name)
print(str(obj.frt_rep2_no) + ") " + obj.frt_rep2_name)
print(str(obj.frt_rep3_no) + ") " + obj.frt_rep3_name)
print("--------------------------------------------------------------------
--")
frt_rep_vote = int(input("Press the number of candidate you want to vote
for: "))
if frt_rep_vote == 1:
obj.frt_rep_1 += 1
frt_rep_final = obj.frt_rep1_name + " = " + str(obj.frt_rep_1)
print("--------------------------------------------------------------------
--")
print("Total votes for " + str(frt_rep_final))
print("Total votes for " + obj.frt_rep2_name + " = " + str(obj.frt_rep_2))
print("Total votes for " + obj.frt_rep3_name + " = " + str(obj.frt_rep_3))
obj.another_vote()
break
elif frt_rep_vote == 2:
obj.frt_rep_2 += 1
frt_rep2_final = obj.frt_rep2_name + " = " + str(obj.frt_rep_2)
print("--------------------------------------------------------------------
--")
print("Total votes for " + obj.frt_rep1_name + " = " + str(obj.frt_rep_1))
print("Total votes for " + str(frt_rep2_final))
print("Total votes for " + obj.frt_rep3_name + " = " + str(obj.frt_rep_3))
obj.another_vote()
break
elif frt_rep_vote == 3:
obj.frt_rep_3 += 1
frt_rep3_final = obj.frt_rep3_name + " = " + str(obj.frt_rep_3)
print("--------------------------------------------------------------------
--")
print("Total votes for " + obj.frt_rep1_name + " = " + str(obj.frt_rep_1))
print("Total votes for " + obj.frt_rep2_name + " = " + str(obj.frt_rep_2))
print("Total votes for " + str(frt_rep3_final))
obj.another_vote()
break
else:
print("Invalid input. Please try again.")
elif proceed_frt_rep == 2:
obj.another_vote()
else:
print("Invalid input. Please try again.")
def another_vote(obj):
a = """ IF ANY OF THE POSITION GOT A TIE VOTE RESULTS, JUST START THE
PROGRAM OVER AGAIN
AND KINDLY SKIP (DO NOT PROCEED) TO THE POSITION THAT DOES NOT HAVE A TIE
VOTE RESULT"""
print("--------------------------------------------------------------------
--")
an_vote = int(input("DO YOU WANT TO PROCEED ANOTHER VOTE? 1. Yes / 2. No :
"))
while True:
if an_vote == 1:
obj.registration()
obj.president()
obj.vice_pres()
obj.secretary()
obj.auditor()
obj.treasurer()
obj.media_info()
obj.first_yr_rep()
obj.sec_yr_rep()
obj.third_yr_rep()
obj.fourth_yr_rep()
break
elif an_vote == 2:
obj.loading_result()
obj.result()
print(a)
sys.exit()
else:
print("Invalid input. Please try again.")
#Results --------------------------------------------------------
def result(obj):
#Ranking for President----------------------------
pres_total = (obj.pres_1, obj.pres_2, obj.pres_3)
pres_result = max(pres_total)
# Ranking for Vice President----------------------------
vp_total = (obj.vpres_1, obj.vpres_2, obj.vpres_3)
vp_result = max(vp_total)
# Ranking for Secretary----------------------------
sec_total = (obj.sec_1, obj.sec_2, obj.sec_3)
sec_result = max(sec_total)
# Ranking for Auditor----------------------------
aud_total = (obj.aud_1, obj.aud_2, obj.aud_3)
aud_result = max(aud_total)
# Ranking for Treasurer----------------------------
tre_total = (obj.tre_1, obj.tre_2, obj.tre_3)
tre_result = max(tre_total)
# Ranking for Media Information----------------------------
media_total = (obj.media_1, obj.media_2, obj.media_3)
media_result = max(media_total)
# Ranking for First Year Representative----------------------------
f_rep_total = (obj.f_rep_1, obj.f_rep_2, obj.f_rep_3)
f_rep_result = max(f_rep_total)
# Ranking for Second Year Representative----------------------------
s_rep_total = (obj.s_rep_1, obj.s_rep_2, obj.s_rep_3)
s_rep_result = max(s_rep_total)
# Ranking for Third Year Representative----------------------------
t_rep_total = (obj.t_rep_1, obj.t_rep_2, obj.t_rep_3)
t_rep_result = max(t_rep_total)
# Ranking for Fourth Year Representative----------------------------
frt_rep_total = (obj.frt_rep_1, obj.frt_rep_2, obj.frt_rep_3)
frt_rep_result = max(frt_rep_total)
print("")
print("***************** SUPREME STUDENT GOVERNMENT S.Y. 2021-2022
******************")
print("")
# Final Result for President
------------------------------------------------------------------------
if ((obj.pres_1 > obj.pres_2) and (obj.pres_1 > obj.pres_3)):
print("****************** New elected President for S.Y. 2021-2022
******************")
print(str(obj.p1_no) + ") " + str(obj.p1_name) + " with a total votes of =
" + str(pres_result))
print("--------------------------------------------------------------------
----------")
elif ((obj.pres_2 > obj.pres_1) and (obj.pres_2 > obj.pres_3)):
print("****************** New elected President for S.Y. 2021-2022
******************")
print(str(obj.p2_no) + ") " + str(obj.p2_name) + " with a total votes of =
" + str(pres_result))
print("--------------------------------------------------------------------
----------")
elif ((obj.pres_3 > obj.pres_1) and (obj.pres_3 > obj.pres_2)):
print("****************** New elected President for S.Y. 2021-2022
******************")
print(str(obj.p3_no) + ") " + str(obj.p3_name) + " with a total votes of =
" + str(pres_result))
print("--------------------------------------------------------------------
----------")
elif ((obj.pres_1 == obj.pres_2) and (obj.pres_1 > obj.pres_3) and
(obj.pres_2 > obj.pres_3)):
print("----------------------- WE HAVE A TIE -----------------------")
print(str(obj.p1_no) + ") " + str(obj.p1_name) + " with a total votes of =
" + str(pres_result))
print(str(obj.p2_no) + ") " + str(obj.p2_name) + " with a total votes of =
" + str(pres_result))
elif ((obj.pres_2 == obj.pres_3) and (obj.pres_2 > obj.pres_1) and
(obj.pres_3 > obj.pres_1)):
print(str(obj.p2_no) + ") " + str(obj.p2_name) + " with a total votes of =
" + str(pres_result))
print(str(obj.p3_no) + ") " + str(obj.p3_name) + " with a total votes of =
" + str(pres_result))
elif ((obj.pres_1 == obj.pres_3) and (obj.pres_1 > obj.pres_2) and
(obj.pres_3 > obj.pres_2)):
print(str(obj.p1_no) + ") " + str(obj.p1_name) + " with a total votes of =
" + str(pres_result))
print(str(obj.p3_no) + ") " + str(obj.p3_name) + " with a total votes of =
" + str(pres_result))
elif ((obj.pres_1 == obj.pres_2) and (obj.pres_1 == obj.pres_3)
and (obj.pres_2 == obj.pres_1) and (obj.pres_2 == obj.pres_3)
and (obj.pres_3 == obj.pres_1) and (obj.pres_3 == obj.pres_2)):
print("----------------------- WE HAVE TRIPLE TIE FOR PRESIDENT
-----------------------")
print(str(obj.p1_no) + ") " + str(obj.p1_name) + " with a total votes of =
" + str(pres_result))
print(str(obj.p2_no) + ") " + str(obj.p2_name) + " with a total votes of =
" + str(pres_result))
print(str(obj.p3_no) + ") " + str(obj.p3_name) + " with a total votes of =
" + str(pres_result))
print("--------------------------------------------------------------------
----------")
#Calling functions--------------------------------------------
call = election()
call.welcome()
call.registration()