hi everyone. i got class test today and i think this question is pretty messed up or am stupid and ignorant. i can write the program in my way but this question i cant understand. i dont need the coding, i just need some explanation. it goes like this
(i) Write a piece of code to declare a function which will do the following:
(a) return void
(b) take as input parameters two arrays of integer values
(c) take as output parameters the sum of these two arrays into a third array to calculate the average temperatures over the last 10 days.
(ii) Write a piece of code to define an appropriate function for the above to do a sum of the corresponding values in the two input arrays.
(iii) Write a piece of code to call the above function from the main function.
I have written the question exactly how it was written in the question paper. Please explain this to me. thank you