Answered You can hire a professional tutor to get the answer.
Hi I cannot get my head around this with this computer science question
Question 5 (14 marks)This question is about Block 2 Part 5. This question requires you to calculate values using Python functions. There are twoapproaches you can use.add suitable code to the provided file, then run itrun the provided file first, to load the required function and data into memory, then do the calculation in the interactive Pythonshell.Feel free to choose the approach you prefer.The download folder for this TMA contains TM112_200_TMA02_05_files. zip (go to TMA02 - Python files and downloadTM112_20D_TMA02_Q5files. zip and unzip the file). While you are working on this question, keep all the files inTM112_20D_TMA02_Q5_files together in that folder. Moving files out of the folder may result in some of the code not working.Open the folder TM112_20D_TMA02_05_files and inspect the contents of q5. py. The Python list population in q5. py holds UKpopulation in millions 1990 - 2017 (ONS, 2018). The Python list gas in q5. py holds 28 yearly values for the retail price of gasolinein the US (in $) (Statista 2019).a. q5. py imports the Python function median ( ) you used in Block 2 Part 5 to calculate the median of a list of numbers.Use this function to find the median of the list of the population.In your Solution document give the median, correct to two decimal places. Also provide the Python code you used for callingthe median() function and explain how you executed it.(4 marks)b. In Section 5.1 you were introduced to Polya's four stage process for problem solving. List the four stages(2 marks)c. Figure 2 shows a scatterplot of the two python lists in q5. py - population and gas. The python file q5. py imports the functioncorr_coef( ) which you used in Section 5.4 of Block 2 Part 5 to calculate the correlation coefficient between two lists.Use this function to calculate the correlation coefficient and provide the resulting figure rounded to two decimal ploClassify the size of the effect, following Table 5.4 in Block 2 Part 5.Briefly discuss whether any effect you have found is likely to be causal.The maximum word limit for the Question 5(c) is 60 words.(8 marks)3.53.Price of gasoline in $2.52.1.51........0.50.56.0057.0058.00 59.0060.0061.0062.0063.0064.0065.0066.00 67.00UK Population in millionsFigure 2 Price of gasoline in the US (in $) Vs UK Population in millions. Both are from 1990 - 2017.(Total 14 marks)ReferencesOffice for National Statistics (ONS) (2018) United Kingdom population mid-year estimate [Online]. Available athttps://www.ons.gov.uk/peoplepopulationandcommunity/populationandmigration/populationestimates/timeseries/ukpop (Accessed2nd October, 2019)Statista (2019) Retail price of regular gasoline in the United States from 1990 to 2018 [Online]. Available https://www.statista.com/statistics/204740/retail-price-of-gasoline-in-the-united-states-since-1990/(Accessed 30th January 2019).References created using the OU Harvard guide to citing references for online materials.