Computer Science, asked by aman839427, 1 year ago

Write an algorithm to accept age of a person and print whether he is eligible for vote or not. ​

Answers

Answered by gopalsibapaul01
5

Answer:

Given age of a person and we have to check whether person is eligible for voting or not.

To check that a person is eligible for voting or not, we need to check whether person’s age is greater than or equal to 18. For this we are reading age in a variable a and checking the condition a>=18, if the condition is true, "person will be eligible for voting" else not.

by_Gopal siba paul

please follow me

Answered by StaceeLichtenstein
6

Algorithm of Person is eligible for vote or not is given below

Explanation:

before writing the algorithm one point always remember for voting the person  there age is greater then or equal to 18 that person is eligible for vote otherwise not ,Now algorithm is given below .

  • Start.
  • Read the age in "age1" variable of int type.
  • Test the condition if [age1 >=18] then moves to the next step otherwise print  person is not eligible not for vote .
  • Display person is eligible for vote .
  • End.

Learn More :

https://brainly.in/question/2644446

Similar questions