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, 04.07.2019 18:10
Slip occurs via two partial dislocations because of (a) the shorter path of the partial dislocation lines; (b) the lower energy state through partial dislocations; (c) the charge balance.
Answers: 1
question
Engineering, 04.07.2019 18:20
Athin walled concentric tube exchanger is used to cool engine oil from 160°c to 60°c with water that is available at 25°c acting as a coolant. the oil and water flow rates are each at 2 kg/s, and the diameter of the inner tube is 0.5 m and the corresponding value of the overall heat transfer coefficient is 250 w/m2. oc. how long must the heat exchanger be to accomplish the desired cooling? cpwater=4.187 kj/kg-candcpengine el=2.035 kj/kg·°c, oil . 120]
Answers: 1
question
Engineering, 04.07.2019 18:20
Describe one experiment in which the glass transition temperature and melting temperature of a totally amorphous thermoplastic material can be determined. show the relevant experimental results in a diagram which should be properly annotated with the two temperatures clearly marked. what is likely to happen to the curve in the diagram if the amorphous polymer is replaced by a thermosetting type?
Answers: 2
question
Engineering, 04.07.2019 18:20
A2-m rigid tank initially contains saturated water vapor at 100 kpa. the tank is connected to a supply line through a valve. steam is flowing in the supply line at 600 kpa and 300 c. the valve is opened, and steam is allowed to enter the tank until the pressure in the tank reaches the line pressure, at which point the valve is closed. a thermometer placed in the tank indicates that the temperature at the final state is 200°c. determine (a) the mass of steam that has entered the tank (b) the amount of heat transfer.
Answers: 3
You know the right answer?
Write a python program to apply this:

write a program that simulates a poll for voting...
Questions
question
Mathematics, 18.05.2021 01:30
question
Mathematics, 18.05.2021 01:30
question
Mathematics, 18.05.2021 01:30
Questions on the website: 13722367