Question: 1 pts Question 17 Coding Question: A textfile downloaded from the CDC website contains COVID vaccination data as of Friday Feb. 5. 2021 for the

 1 pts Question 17 Coding Question: A textfile downloaded from the

1 pts Question 17 Coding Question: A textfile downloaded from the CDC website contains COVID vaccination data as of Friday Feb. 5. 2021 for the three US states on the west coast. This textfile is named westcoast_covid.txt and contains the following 6 lines of text: COVID-19 Vaccinations in the State Date generated: Fri Feb 05 2021 13:52:42 GMT-0800 (Pacific Standard Time) State Total_Population Total_Delivered Total_Administered People_with_1+_doses People_with_2_doses California 39510000 6438225 3723803 3085932 625189 Oregon 4218000 706575471983 369704 100414 Washington 7615000 1168625 797358 637940 147498 Note that the numbers correspond to the column header, for example: in Washington there are 637,940 people who have received 1 dose of the vaccine. Write a function who_is_winning that takes one parameter (a textfile such as westcoast_covid.txt) and determines which west coast state has fully vaccinated (i.e. received 2 doses) the largest percent of its population. The function should return a string containing the name of the state who is currently "winning" Your code should be written using CIS 210 style guidelines: include in the function a docstring (type contract and examples of use) use whitespace between operators and operands use descriptive variable names add appropriate comments

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!