Question

(a) Create a two-dimensional array called yearl for the first year's data, andanother called year2 for the second year's data.nages. (b) Combine the two arrays into a three-dimensional array with

tWo pascalled testdata (c) Use your three-dimensional array to perform the followingcalculations: • Calculate the average score for each question, for each year, and storethe results in a two-dimensional array. (Your answer should be either2 2 X 4 array or a 4 X 2 array.)ll the data. lculate the average score for each question, using all the data.* tract the data for Question 3 for each year, and create an array withthe following format:

Question image 1Question image 2Question image 3Question image 4Question image 5Question image 6Question image 7