Question: Write a program that will determine the winner of an election based on names and votes stored in a file. Your program should display on
Write a program that will determine the winner of an election based on names and votes stored in a file. Your program should display on the screen the candidates names, the number of votes each received, and the winner of the election. You may assume that all candidates name will consist of exactly two words.
Your code must include at least one user-defined function. Be sure to format and comment your code appropriately.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
