write a program to determine whether a person is eligible for voting or not

write a program to determine whether a person is eligible for voting or not

A) Implement the Python script to read the person’s age from the keyboard and see if it is eligible to vote.
Purpose: to read a person’s age from the keyboard and to demonstrate whether he is eligible to vote.

Case:

Voting for a meeting or a group such as a voter is a method to collectively decide or generally form an opinion after deliberations, debates or election campaigns. Democratic elects holders of high office by vote. Residents of the place represented by an elected official are called “constituents”, and those constituents who vote for their chosen candidate are called “voters”. There are different systems for collecting votes.

Algorithm:

Step1: Start
Step 2: Declare the variable ‘age’ and read the age.
Step 3: Check Status Age = 18
Step 4: If this condition is true then that person is eligible to vote
Step5: Otherwise print that person is not eligible to vote
Step 6: End

program:

Age = int (input (“Enter age:”))
If (age> = 18):
Print (“Person is eligible to vote”)
other:
Print (“Person not eligible to vote”)

Output:

>>> Entrance Age: 25
Person is eligible to vote
>>>

 

Flowchart to sort the list of numbers in python-my programming school

Flowchart for swapping two values using functions in python

Flowchart to display the reverse of a number in python

Flow chart to check odd and even number

write a program to determine whether a person is eligible for voting or not

Leave a Comment

Your email address will not be published. Required fields are marked *