Question: PYTHON Write a program that determines if the user can legally vote. Voters must be USA citizens and at least 18 years of age. Your

PYTHON Write a program that determines if the user can legally vote. Voters must be USA citizens and at least 18 years of age. Your program should verify both of these requirements before making a positive determination. See possible Sample Outputs. Note that the citizen question should not be asked if the user fails to meet the age requirement. Sample Output 1 Enter your age 17 Sorry, you must be 18 to vote Sample Output 2 Enter your age 18 Are you a US citizen? y/n n You are old enough but only citizens can vote Sample Output 3 Enter your age 22 Are you a US citizen? y/n y You can legally vote

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 Databases Questions!