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++,

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

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 header file and the cout.imbue () function to format the numbers. See https:/www.cplusplus.com/reference/ios/ios/imbue/ as a starting point for learning how to use the imbue member function

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!