Question: Use Python code. Write a program that accepts a persons age and years of citizenship as input and outputs their eligibility for the Senate and

Use Python code. Write a program that accepts a

Use Python code. Write a program that accepts a

Use Python code. Write a program that accepts a persons age and years of citizenship as input and outputs their eligibility for the Senate and House.

A person is eligible to be a U.S. senator if they are at least 30 years old and have been a U.S. citizen for at least 9 years. To be a a U.S. representative, these numbers are 25 and 7 respectively. Write a program that accepts a person's age and years of citizenship as input and outputs their eligibility for the Senate and House. Sample output: Congressional Eligibility... Enter your age: 35 Enter years of citizenship: 10 You are eligible for the Senate and the House. Congressional Eligibility... Enter your age: 25 Enter years of citizenship: 25 You are eligible for the House. Congressional Eligibility... Enter your age: 52 Enter years of citizenship: 6 You are not eligible for the House. Congressional Eligibility... Enter your age: 25 Enter years of citizenship: 30 You've been a citizen longer than you've been alive? Add new file # Add to the code below: def main(): print("Congressional Eligibility... ")

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 General Management Questions!