Write a program that allows the user to enter the last names of five candidates in a local election 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 votes received by the candidate. Your program should also output the winner of the election. sample output:Candidate         Votes Received       % of Total VotesJohnson        5000           25.91Miller                      4000                          20.73Total                         9000The winner of the election is Johnson.

Write a program that allows the user to enter the last names of five candidates in a local election 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 votes received by the candidate. Your program should also output the winner of the election. sample output:Candidate         Votes Received       % of Total VotesJohnson        5000           25.91Miller                      4000                          20.73Total                         9000The winner of the election is Johnson.

Don't hesitate - Save time and Excel

Are you overwhelmed by an intense schedule and facing difficulties completing this assignment? We at GrandHomework know how to assist students in the most effective and cheap way possible. To be sure of this, place an order and enjoy the best grades that you deserve!

Post Homework
Top