Problem-Solving Case Study –
City Council Election
Problem: In a city council election, citizens in four
voting precincts have cast their ballots for four
candidates. We want to know how many votes
each candidate received in each precinct, how
many total votes each candidate received, and how
many total votes were cast in each precinct.
Input: An arbitrary number of votes in a file
voteFile, with each vote represented as a pair
of numbers: a precinct number and a candidate
number. The candidate names from keyboard.