Problem-Solving Case Study –
City Council Election
Output: A tabular report showing how many votes
each candidate received in each precinct, the total
number of votes for each candidate, and the total
number of votes in each precinct, all written to
reportFile.
Discussion: If I were doing this by hand, I would
probably write down the candidate names as the
row labels of a table and use the precinct numbers
as the column labels and put a tally mark in the
appropriate place as I read each vote.