Question: Write a program with the following variables that are hardcoded values - you should manually change the values for testing: Gender - assume binary gender

Write a program with the following variables that are hardcoded values - you should manually change the values for testing: Gender - assume binary gender of Male and Female with the values being: m orf Age -- assume a whole number Your program should do the following based on the above variables: Identify the person's voter eligibility - you must be 18 or older to vote Identify selective service status males who are eligible to vote must register for selective service Your program should produce the one of the following based on the above variables: You are not eligible to vote. You are eligible to vote. You are eligible to vote and you must register for selective services. Assumptions You can only use a single IF statement. All paths in your IF statement must be reachable with valid input
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
