Computer Science, asked by dvsaroja, 10 months ago

write an algorithm to accept a age of a person and check whether he or she is eligible to vote or not a person is eligible to vote only when he or she is 18 years or more​

Answers

Answered by ridhimakh1219
67

Write an algorithm to accept a age of a person and check whether he or she is eligible to vote or not a person is eligible to vote only when he or she is 18 years or more​

Explanation:

Algorithm to check whether a person is eligible for voting or not

Step 1: Start

Step 2: Input age

Step 3: Check age value,

              if age >= 18 then go to step 4 else step 5

Step 4:         print "Eligible to vote" and go to step 6

Step 5:   else

                    print "Not Eligible to vote"

Step 6:  Stop

Note

A person is eligible to cast his/her vote or not is evaluated by person’s age if it is greater than or equal to 18(age >= 18) then only person will be eligible to vote otherwise not.

Answered by babita0598
18

Answer:

Explanation:

The above mentioned question has been answered in the form of an image below

Attachments:
Similar questions