Question: using python spyder 3.3.6 5. display_herd_immunity (fp) None: This function displays all the states whose coverage is less than 90%, the minimal value needed for
using python spyder 3.3.6

5. display_herd_immunity (fp) None: This function displays all the states whose coverage is less than 90%, the minimal value needed for measles herd immunity. Use these strings for the title and header: " States with insufficient Measles herd immunity." "{:5s}".format("State", "Percent") Format the data lines similar to the header state: string, left justified with a field width of 25 value: float, right justified with a field width of 5 and 1 decimal digit of precision Your program should ignore the lines where the values are "NA". a. Parameter: file pointer b. Returns: nothing 6. write_herd_immunity (fp) None: This function writes into a file named herd.txt all the states whose coverage is less than 90%, the minimal value needed for measles herd immunity. Specifications are exactly the same as the previous function display_herd immunity, the difference is that instead of displaying on the screen you will be writing to a file. Remember to close the file after writing to it. a. Parameter: file pointer b. Returns: nothing
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
