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, 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. A sample output is as follows:
Candidate Votes Received % of Total Votes
Johnson 6000 25.91
Miller 7000 20.72
Duffy 8000 31.09
Robinson 3000 12.95
Sam 2000 9.33
The Winner of the Election is Duffy.
Dear customer, Unfortunately, your question requires a lot of work and cannot be done for free. Please submit it with all requirements as an assignment to our control panel and we'll assist you.