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 -1 or non-citizen -0) as input and determines whether they are eligible to vote based on the following conditions:
If the person is a citizen and 18 years or older, print "rou are eligible to vote".
If the person is a non-citizen, print "only citizens are eligible to vote".
If the person is younger than 18, print "You must be 18 years on older to vote".
Write a program that takes a person's age and

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!