Question: Write a program in Python with the following: This program should simulate a poll for Mayor of Center City. There must be 5 candidates: John

Write a program in Python with the following: This program should simulate a poll for Mayor of Center City. There must be 5 candidates: John Cole, Anne Drake, Alex Wood, Mary Lee and Ethan Barn. The simulation must be able to input the number of voters and present the results in terms of percentage for each candidate, in order of votes. Steps: show some information about the program on screen: input the number of voters: create a list to store the individual votes for each candidate (the size of the list should be the number of voters): use the function randint to simulate the votes: use the list with the votes to count the votes for each candidate: create a second list to store the number of votes per candidate (the size of the list should be the number of candidates): and show the results on screen program on screen. For example: This is a poll simulation for Mayor of Center City. Candidates: John Cole Anne Drake Alex Wood Mary Lee Ethan Barn Please, input the number of voters: 10512 In this poll, the statistics are
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
