Question: please write on atom software 3. The NYC wants to make a program which determines voter eligibility and displays one of three messages. Case l:

please write on atom software
3. The NYC wants to make a program which determines voter eligibility and displays one of three messages. Case l: Person is younger than 18yr"You are too young to vote." Due date: Mar 1, 11:59 PM Case II: Person is at least 18yr and is registered to vote>"You can vote. Case IlI: Person is at least 18yr but is not registered to vote. You must register before you can vote." Please write a program that determines voter eligibility based on input of user's age Example 1 Output (input in bold italics) Please enter your age: 10 You are too young to vote Example 2 Output (input in bold italics) Please enter your age: 20 Did you registered to vote (1 for yes/ 0 for no): 1 You can vote. Example 3 Output (input in bold italics) Please enter your age: 20 Did you registered to vote (1 for yes/0 for no): 0 You must register before you can vote
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
