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, 05.07.2019 19:10
Tech a says never use a water hose to clean up dust after a repair. tech b says never use a floor scrubber to clean up dust after repairs. who is correct?
Answers: 1
question
Engineering, 06.07.2019 03:10
Asolid steel sphere (k=63.9 w m-1 k-1 , ? =7832 kg m-3 , c=0.523 kj kg-1 k-1 ), 100 mm in diameter is initially at a uniform temperature of 500o c and is suddenly quenched in a large oil bath for which t? = 100o c and h = 3200 w m-2 k-1. estimate the time required for the sphere to cool to 200o c and to 110o c
Answers: 1
question
Engineering, 06.07.2019 03:20
Explain in your own word the concept of a solid solution, in alloys, and how it can be created.
Answers: 3
question
Engineering, 06.07.2019 05:10
Asteam turbine is supplied with steam at 28bar and 425c. a fraction of the steam is extracted at 1.2bar to heat the feed water in one open feed water heater. the rest of the steam expands in the low pressure stage of the turbine to 0.08bar. a)-sketch the regenerative rankine cycle with open feed water heater on the t-s diagram. b)-assuming isentropic expansion in both stages of the turbine, find the cycle efficiency. do not assume negligible pump work.
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
English, 08.10.2020 08:01
question
English, 08.10.2020 08:01
question
Mathematics, 08.10.2020 08:01
question
Mathematics, 08.10.2020 08:01
Questions on the website: 13722362