Answered step by step
Verified Expert Solution
Question
1 Approved Answer
reference: I don't know how to provide them in text format. candidates.py In text: import sys import copy import os.path if len(sys.argv) != 2:
Assignment #3 - Voting and Elections Background: One of the most important rights of American citizens is the franchise the right to vote. Originally under the Constitution, only white male citizens over the age of 21 were eligible to vote. This shameful injustice has been corrected and voting rights have been extended several times over the course of our history. All States, except for Maine and Nebraska have a winner-take-all policy where the State looks only at the overall winner of the state-wide popular vote. Maine and Nebraska, however, appoint individual electors based on the winner of the popular vote for each Congressional district and then 2 electors based on the winner of the overall state-wide popular vote. Objectives: Electoral votes are allocated among the States based on the Census. Every State is allocated a number of votes equal to the number of senators and representatives in its U.S. Congressional delegation two votes for its senators in the U.S. Senate plus a number of votes equal to the number of its Congressional districts. This assignment will assess your mastery of the following objectives: Write conditionals, loops, variables, and console output. Read structural data in file Use list to store information and produce the processing data. Follow prescribed conventions for spacing, indentation, naming methods, and header comments.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started