Question: Please do in C++, HOMEWORK #10-Local Election You need to determine the winner of a local election based upon the number of votes each candidate
Please do in C++,


HOMEWORK #10-Local Election You need to determine the winner of a local election based upon the number of votes each candidate received. re igmanohat als aoffi cecn Specifications: and the number of votes received by each candidate. The program should then output each candidate's name, the number of votes received, and the percentage of the total received by the candidate. Your program should also output the winner of the election Use the following function prototypes: // Reads in the Voting Data void getVotes (string candidates [N], int votes [N] int &totalVotes) /1 Calculates the Voting Percentages void calculatePercentages (const int votes [N], const int totalVotes, double percentages [N]) // Calculates the Election Winner void calculateWinner (const int votes [N], int &winnerIndex); // Prints the Election Results void printResults (const string candidates [N] const int votes IN], const int totalVotes, const double percentages [N], cons tint winnerIndex)i N should be declared as a global constant expression. Use the
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
