Programming help! Was wondering how you do tasks 3, 4, 5 and 6. Thank you :)
Task 3 13 marks] (a) Write a Python program task3_a.py, which does the following . Reads in the size of the the list . Reads in all the items of the list, storing them in a list. Prints the average value of the list (b) Write a MIPS program which implements task3 a.py faithfully without the use of functions. (c) Reimplement part (b) as a function in MIPS. CHECKPOINT (You should reach this point during week 3) Background The bureau of climate research has a device that records the average temperature in the city for each one of the days in a month. The office is interested in understanding climate variation and has commissioned you to design a collection of programs to help analyse the data collected. Th portable device based on a MIPS processor. For each task, first design the algorithm to be used in Python then write the algorithms in MIPS. In each task, the input list is a list containing a number for each day in the month, one temperature record per day An example of one such list is: 26, 18, 22, 20, 13, 22, 19, 22, 20, 27, 18, 24, 15, 28, 26, 27, 20, 21, 23, 24, 27, 26, 15 23, 22, 20, 23, 17, 18, 18 This list is to be read in at the beginning of each task. The result of each task must be printed. The following tasks describe the functionality required e programs will run in a small Task 4 13 marks] Write some code to find whether a given temperature exists in a list using a simple linear search. Do this without the use of functions, Task 5 l1 mark Rewrite your solution for Task 4 to now be implemented as a function Task 6 15 marks Write a function to sort a given list in order of increasing temperature and then print the sorted list. Hint: This task is easier to implement with functions. First, choose a sorting algorithm to implement and decompose into functions. Make sure you implement this decomposition in Python to enable you to translate it