Write a program to accomplish all of the following task. Each task should be handled by independent function. The functions complete these tasks should take the entire array as an argument.
(1) Read four sets of five double numbers each from a text file named “data.txt”, store the numbers in a 4*5 array which is defined in main() function. This function has no return value.
(2) Compute and show the average of each set of five values. This function has no return value.
(3) Compute the average of all the values in the array. Return the result.
(4) Determine the largest value of the entire array. Return the result.
Write a main() function to test all functions and show the returned value. You can prepare the text file with necessary data for the program running.
急,多谢多谢