Pls solve the questions A and B as soon as you can I am so glad If you help me N
ID: 3827459 • Letter: P
Question
Pls solve the questions A and B as soon as you can I am so glad If you help me Note that you should solve it by FORTRAN programing not by other program Sultan Qaboos University College of Engineering Fortran Programming (ENGR2216) Spring 2017 Assignment 4 Date: April 16, 2017 Due Date: April 26, 2017 (a) Write a function that will receive a 1-Danray of real numbers of size k. The function should return the average of that amay. n, a 1-D array of real numbers of size m, and a l-Darrary ofreal numbers of size n. First: the subroutine wi compute the average of the 2-D array Second: the subroutine will cerate and return a 2-D array of size (m+1) by (nr 1) from the three arrays it received as follows: 1-D array 2-D array of size m by n of size m I-D array of size n Average of the 2-D arrayExplanation / Answer
PROGRAM test_sum
REAL :: x(5) = (/ 1.1, 2.2, 3.3, 4.4 ,5.5 /)
print *, SUM(x)/(max(1,size(x))) ! Average of static arrray
END PROGRAM