Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Vote Regestration Program The solution must be in python! Create a program that

ID: 3918169 • Letter: V

Question

Vote Regestration Program

The solution must be in python!

Create a program that helps users to regester for an election (National or Local). The program should be interactive with the user and should varify the age, full name, and address of the voters first. The code must include the following:

1. Use of at least one class with executed subclasses. This means you must instantiate at least one subclass to show inheritance and polymorphism. Your classes base classes must be in separate modules. Your subclasses can be in the same module as their related base class.

2. Only include main logic in your main function and use functions for reusable code

3. Use of a loop of your choice

4. Use of a decision structure

5. You must include a menu (Add, Edit, Delete, View, and Exit) in your program, and your program must allow the user to repeat the program if necessary.

6. Use of functions in your main program that require you to pass values from the main.

7. Use of a list, tuple, or dictionary to store data

8. Write some type of data to a file as well reading data from a file

9. Use of exception handling. Your program should attempt to catch most of the common exceptions.

10. Include comments in the code

Explanation / Answer


Greeting1 = print ("Hello, lets determine if you're of legal voting age ...")

age = input("Type in your age number as of today, and press ENTER: ")
age = int(age)

result1 = (2011-age-1)
result2 = (2011-age-1)

# Statement for persons 64 years and older.
if result2 < 1947:
print ("You're a Senior Citizen .. you deserve 2 votes!")

# Statement for persons 18-63 years old.
if result1 < 1993:
print ("Yes - you're old enough to vote.")

# Statement for persons 17 years and younger.
else:
print ("No - you're just too young to vote right now.")