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
41
Answer:
Algorithm:
- input(age)
- if ( age >= 18 )
- print('Eligible')
- else
- print('Not Eligible!')
- //end
Answered by
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