Computer Science, asked by avisha43, 11 months ago

write an algorithm to check eligibility for voting if it is greater than equal to 18 then eligibility else not eligible

plz give algorithm step by step​

Answers

Answered by percytrar
41

Answer:

Algorithm:

  1. input(age)
  2. if ( age >= 18 )
  3.       print('Eligible')
  4. else
  5.       print('Not Eligible!')
  6. //end

Answered by StaceeLichtenstein
30

Following are the algorithm to check eligibility for voting

Explanation:

Step 1: Start  the algorithm

Step 2: Read the age by the user .

Step 3: Test Situation if age >= 18 then go to step 4 otherwise go to step 5

Step 4: Display  " person is eligible for the vote"

Step 5: display "person is not eligible for a vote "

Step 6:End  the algorithm

  • To check the condition that a particular person is eligible or not we have to check the age of the person.

Learn More:

  • https://brainly.in/question/7294643
Similar questions