Menu

(Solved) : Data Structure C Language Please Display Output Thank Write Program Allows User Enter Last Q28169638 . . .

Data Structure C++ language (Please display an output too thankyou)

Write a program that allows the user to enter the lastnames of several candidates in a local election and the votesreceived by each candidate. The program should then output eachcandidate’s name, votes received by that candidate, and thepercentage of the total votes received by the candidate. Yourprogram should also output the names of the winner of the election.Assume that no candidates have the same number of votes. Make sureno candidates have the same last name. A sample output is afollows:

Candidate Votes Received % of Total Votes

Johnson 5000 25.91

Miller 4000 20.72

Duffy 6000 31.09

Robinson 2500 12.95

Sam 1800 9.33

Total 19300

The Winner of the Election is Duffy.

Expert Answer


Answer to Data Structure C Language Please Display Output Thank Write Program Allows User Enter Last Q28169638 . . .

OR