subject
Engineering, 01.11.2019 04:31 amanzi10

Write a python program to apply this:

write a program that simulates a poll for voting for contestants of america's got talent: the program should repeatedly prompt the user for a contestant name (each entry is a vote: you can pretend that each time the program prompts the user, it's a different voter). optionally, you can determine the most popular performers and select the top 5 contestents to go head to head in america's got talent ultimate challenge contest. use the following steps to tally the votes and select the contestants.

initialize a dictionary with the keys "darci lynne", "angelica hale", and "angelina green" with each having the value 0.

repeatedly prompt the user for a contestant name to vote for, adding/updating the relevant key/value pair in the dictionary to tally the votes for each contestant. stop prompting when the user enters "done".

after all the votes have been entered, print out all the contestants and their corresponding vote tallies.

optional challenge: compute the 5 most popular contestants and wish them congratulations by name. "congratulations, darci lynne! ". do this after you have the rest of the program working and have tested your code.

ansver
Answers: 2

Another question on Engineering

question
Engineering, 03.07.2019 14:10
When at a point two solid phase changes to one solid phase on cooling then it is known as a) eutectoid point b) eutectic point c) peritectic point d) peritectoid point
Answers: 3
question
Engineering, 04.07.2019 18:10
Asingle-geared blanking press has a stroke of 200 mm and a rated capacity of 320 kn. a cam driven ram is assumed to be capable of delivering the full press load at constant force during the last 15 percent of a constant-velocity stroke. the camshaft has an average speed of 90 rev/min and is geared to the flywheel shaft at a 6: 1 ratio. the total work done is to include an allowance of 16 percent for friction a) estimate the maximum energy fluctuation b) find the rim weight for an effective diameter of 1.2 m and a coefficient of speed fluctuation of 0.10
Answers: 1
question
Engineering, 04.07.2019 18:10
Aplate clutch has a single pair of mating friction surfaces 250-mm od by 175-mm id. the mean value of the coefficient of friction is 0.30, and the actuating force is 4 kn. a) find the maximum pressure and the torque capacity using the uniform-wear model. b) find the maximum pressure and the torque capacity using the uniform-pressure model.
Answers: 3
question
Engineering, 04.07.2019 18:10
You are making beer. the first step is filling the glass carboy with the liquid wort. the internal diameter of the carboy is 15 in., and you wish to fill it up to a depth of 2 ft. if your wort is drawn from the kettle using a siphon process that flows at 3 gpm, how long will it take to fill?
Answers: 1
You know the right answer?
Write a python program to apply this:

write a program that simulates a poll for voting...
Questions
question
Mathematics, 16.10.2019 14:00
question
Social Studies, 16.10.2019 14:00
question
Mathematics, 16.10.2019 14:00
Questions on the website: 13722363