# 1. Many commentators today say only a few “Swing states&rdquo...

## Question

1. Many commentators today say only a few “Swing states” (states where voters are almost equally divided among Republicans and Democrats) are determining the election.
States with heavy majorities of Republicans or Democrats are less important due to the Electoral college versus the Popular Vote.
Write a two page essay on your evaluation of the statement “Only Swing States matter”, using the election data available in the Election data files provided.
Consider how many “swing states” there are, if these states change the party they vote for often.
Your submission should include at least the following:
-A clear description of your approach to evaluating the statement
-Some statistics generated by a program you wrote using the election data
2. Write a program that uses the file ElectoralVotes.csv and the file Election Data 2012 to calculate the number of electoral votes earned by Obama and Romney in the 2012 election.
Your program should build a lookup table with the state names, another table with the associated electoral votes for that state.
The output should show two numbers – the total electoral votes earned by each candidate.
And print each state’s name, the winner, and number of electoral votes won.

## Solution Preview

These solutions may offer step-by-step problem-solving explanations or good writing examples that include modern styles of formatting and construction of bibliographies out of text citations and references. Students may use these solutions for personal skill-building and practice. Unethical use is strictly forbidden.

import java.io.File;
import java.io.FileNotFoundException;
import java.util.ArrayList;
import java.util.Scanner;

/**
*
* @author
*/
public class Election {

public static void main(String[] args) {
ArrayList<ElectionData> eds = new ArrayList<>();

showResult(eds, evs);
}...

By purchasing this solution you'll be able to access the following files:
Solution.zip.

\$48.00
for this solution

or FREE if you
register a new account!

PayPal, G Pay, ApplePay, Amazon Pay, and all major credit cards accepted.

### Find A Tutor

View available Java Programming Tutors

Get College Homework Help.

Are you sure you don't want to upload any files?

Fast tutor response requires as much info as possible.