
These are the headers:
void getData(string names[], int nums[])
int totalVotes(int nums[])
void calcPcts(int nums[],
double fracs[], const int sum)
void tallyHo(string names[],
int nums[], double fracs[])
The data I used for my sample run below was:
Johnson 5000
Miller 4000
Duffy 6000
Robins 2500
Anthony 1800
Sample Output
Here is a screenshot of my code running.
Election Day output
Refer to the deliverables post for comment formatting and required program identification information.
Due Date:
Sunday, December 11th, 6:00pm