Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

%%% Python Jupiter Notepad %% Q7 (4 pts) Polling for America's Got Talent Winners Ultimate Challenge Contest Poll people about the past contestents of America's

%%% Python Jupiter Notepad %%

image text in transcribed

Q7 (4 pts) Polling for America's Got Talent Winners Ultimate Challenge Contest Poll people about the past contestents of America's Got Tallent to determine the most popular performers and select the top 5 contestents to go head to head in America's Got Tallen Ultimate Challenge Contest. Use the following steps to tally the votes and select the contestents 1. Initialize a dictionary with the keys "Darci Lynne", "Angelica Hale", and "Angelina Green" with each having the value 0 2. Prompt the user for each contestant name as they receive a vote, adding/updating the relevant key/value pair in the dictionary to tally the votes. The user should enter "done" when they have entered all the contestants. Make sure your code handles any upper/lower case variation of "done 3. After all the votes have been entered, print the sum of the votes for each contestent 4. 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 Example input: Darci Lynne Celine Tam Darci Lynne Darci Lynne Bello Nock Angelina Green Celine Tam Done Output should look something like this Darci Lynne 34 Bello Nock 29 Oscar Hernadez 1 Celine Tam 25 Preacher Lawson 2 Brobots & Mandroidz 14 The Masqueraders 13 If you implement the optional piece Congratulations, Darci Lynne, you're in the Ultimate Challenge with 34 votes! Congratulations, Bello Nock, you're in the Ultimate Challenge with 29 votes! Congratulations, Celine Tam, you're in the Ultimate Challenge with 25 votes! Congratulations, Brobots & Mandroidz, you're in the Ultimate Challenge with 14 vot es ! Congratulations, The Masqueraders, you're in the Ultimate Challenge with 13 votes! In [11

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Processing

Authors: David J. Auer David M. Kroenke

13th Edition

B01366W6DS, 978-0133058352

Students also viewed these Databases questions

Question

Do women and men define sexual harassment differently?

Answered: 1 week ago

Question

1. What might have led to the misinformation?

Answered: 1 week ago

Question

2. How will you handle the situation?

Answered: 1 week ago