can you please draw the flowchart on a paper and write the algorithm please? Question : Passing Parameters to Functions by Reference We are given an array with size N having elements as double data types. The elements of the array are randomly placed. We want to write a function that takes this array with size N and then determines: 1. The average of the values of the array element. 2. The median of the array elements. 3. The max value of the array elements. The function should return 0 if everything is fine but should return 1 if there are no elements in the array, or when N<1. Your code should implement the following: 1. The function described above. 2. You should also write a main function to test your array. 3. You can introduce extra functions to calculate some of the needed values but at the end all values needed above in items 1,2 , and 3 , should be returned from the function by reference. 5. Make other necessary assumptions. 6. Also provide a flowchart for your algorithm for the function implementation..