Election Simulation

We are going to simulate a Presidential Election.

Election Simulation - Batman vs Superman


Starting Files

Election Data - "StateInfo.txt"
Initials - Municipality - 2010 Electoral Votes - Bias - 2010 Voting Eligible Population

AL Alabama 9 R 3539018
AK Alaska 3 R 511792
AZ Arizona 11 R 4383008
AR Arkansas 6 R 2109664
CA California 55 D 23666758
CO Colorado 9 S 3674216
CT Connecticut 7 D 2542607
DE Delaware 3 D 663663
DC District_of_Columbia 3 D 477582
FL Florida 29 S 13485081
GA Georgia 16 R 6603887
HI Hawaii 4 D 982615
ID Idaho 4 R 1091410
IL Illinois 20 D 8899143
IN Indiana 11 R4 754726
IA Iowa 6 S 2251485
KS Kansas 6 R 2030350
KY Kentucky 8 R 3228938
LA Louisiana 8 R 3311501
ME Maine 4 D 1046008
MD Maryland 10 D 4062931
MA Massachusetts 11 D 4808650
MI Michigan 16 D 7312108
MN Minnesota 10 D 3861043
MS Mississippi 6 R 2166811
MO Missouri 10 R 4432424
MT Montana 3 R 774459
NE Nebraska 5 R 1316676
NV Nevada 6 S 1800969
NH New_Hampshire 4 S 1013302
NJ New_Jersey 14 D 5916716
NM New_Mexico 5 D 1436189
NY New_York 29 D 13319786
NC North_Carolina 15 S 6946385
ND North_Dakota 3 R 539152
OH Ohio 18 S 8648932
OK Oklahoma 7 R 2713268
OR Oregon 7 D 2834868
PA Pennsylvania 20 S 9650361
RI Rhode_Island 4 D 768849
SC South_Carolina 9 R 3486345
SD South_Dakota 3 R 613114
TN Tennessee 11 R 4735808
TX Texas 38 R 16111165
UT Utah 6 R 1832988
VT Vermont 3 D 493355
VA Virginia 13 S 5834057
WA Washington 12 D 4821144
WV West_Virginia 5 R 1447048
WI Wisconsin 10 S 4208757
WY Wyoming 3 R 425101


ElectionDriver
import java.io.*;

public class ElectionDriver
{
    public static void main(String[] args) throws Exception
    {
    	File file = new File("StateInfo.txt");
    	Election election = new Election(file);
    	election.simulateElection();
    	while(election.isSplit())
    	{
    		election = new Election(file);
    		election.simulateElection();
    	}

    }
}

Expected Output / Test Cases