Assembly code Selection Sort
a) Calculating the average value of array elements and assigning it to the variable avg,b) Write the code that implements the Selective Sorting algorithm in assembly language (emu 8086) with the option a, in the blank space below, explain the code.n = 10 (number of elements in array a)a [10] = {32, 16, 64, 128, 2, 8, 0, 4, 1, 3}