Write a program that allows the user to enter the last names of five candidates in a local election and the votes received by each candidate. The program should then output each candidate's name, the votes received by that candidate, and the percentage of the total votes received by the candidate. Your program should also output the winner of the election

This sounds familiar. Like an old homework assignment that has priors in C or such. http://www.cplusplus.com/forum/beginner/29631/ for example.

It sounds harsh for you to write such a demand here. Usually folk post about the problem they are having and the demands to do their homework are thankfully rare.

Share how far you got and where you are having issues.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.