In the Programming Example Election Results, the class candidateType contains the function calculateTotalVotes. After processing the voting data, this function calculates the total number ofvotes received by a candidate. The function updateVotesByRegion (of the class candidateType) updates only the number of votes for a particular region. Modify the definition ofthis function so that it also updates the total number ofvotes received by the candidate. By doing so, the function addVotes in the main program is no longer needed. Modify and run your program with the modified definition of the function updateVotesByRegion.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.