Computer Science, asked by sshilpareddy4284, 5 months ago

Write an algorithm to ask nationality and age and display he can vote or not

Answers

Answered by yesiamin6
0

Answer:

STEP 1) START

STEP 2)DECLARE NATIONALITY AND AGE VARIABLES

STEP 3)INITIALIZE NATIONALITY AND AGE INTO VARIABLES

STEP 4)NOW CHECK CONDITIONS

STEP 5)IF NATIONALITY="INDIAN"

AND AGE>=18

STEP 6)PRINT "THIS PERSON IS ELIGIBLE TO VOTE"

STEP 7)ELSE

PRINT "PERSON IS NOT ELIGIBLE TO VOTE"

STEP 8)END

Explanation:

HOPE IT HELPS YOU. DO FOLLOW FOR MORE ANSWERS/PROGRAMS

MARK AS BRAINLIEST

Similar questions