Question: Write a program that takes a person's age and citizenship status ( citizen - 1 or non - citizen - 0 ) as input and
Write a program that takes a person's age and citizenship status citizen or noncitizen as input and determines whether they are eligible to vote based on the following conditions:
If the person is a citizen and years or older, print "rou are eligible to vote".
If the person is a noncitizen, print "only citizens are eligible to vote".
If the person is younger than print "You must be years on older to vote".
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
