Computer Science, asked by Golu7715, 6 months ago

Algorithms to read and check whether age is valid for voting

Answers

Answered by Anonymous
2

Answer:

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.

Explanation:

Similar questions