•void WritePerPrecinct(
• /*in*/ const VoteArray votes, // Total
votes
• /*inout*/ ofstream& reportFile ) // Output file
•
•// Sums the votes per precinct and writes the totals to
the
•// report file
•
•{
• int precinct; // Loop counter
• int candidate; // Loop counter
• int total; // Total votes for a precinct
•
• for (precinct = 0; precinct <
NUM_PRECINCTS; precinct++)
• {
• total = 0;