// // Joshua Moyerman & Michael Andacht - COP 3223H 0201
// Electoral votes - Problem A
// 9/3/10

#include <stdio.h>

//Define Constants
#define USPOP 299000000
#define MEMBERS 435.0

int main() {
    //Define Variables
    int State_pop, Electoral;
    
    //Ask for and read in population of  the state.
    printf("What is the population of your state?\n");
    scanf("%d", &State_pop);
    
    //Calculate electoral votes.
    Electoral = State_pop / 1000 * MEMBERS / ( USPOP / 1000 ) + 2;
    
    //Output number of electoral votes.
    printf("Your state has %d electoral votes.\n", Electoral);
    
    //Hold the program open, return 0 when done.
    system("PAUSE");
    return 0;
}
    
    
       
    
    
    
    
    
