The assignment is to write a C program that reads in a 2D array and stores it in an array ARY with dimensions M and N read in. The program should include three functions: COPYR to copy the elements of ARY row by row, COPYC to copy them column by column, and POLYNOMIAL to calculate each element using a given polynomial function.
Contribute Materials
Your contribution can guide someone’s learning journey. Share your
documents today.
Engr 103SFSUFall 2016 A. TabriziSchool of EngineeringAll Sections Assignment NO 4 Write a C program to read in a 2-dimestional arrays and store this array in ARYwhose dimensionsMandNare read in. A)Write a function calledCOPYRthat will copy all the elements of the given double arrayARYrow by row to a single array calledVCTR B)Write a function calledCOPYCthat will copy all the elements of the Given double arrayARYcolumn by column to a single array called VCTC C)Write a function calledPOLYNOMIALthat will calculate all the elements of the double array ARY one by one with the given polynomial function calledPOLY.You will store the new double array values toCALCULATEDdouble arrays. POLY(X)=2X3+ 5X2+ 3Sin(X) – 4COS(X) The double arrayARYgiven as: 2.13.51.15.5 ARY =0.53.54.60.75 5.30.950.31.2 Note: a)Draw the flow chart. b)Display the given matrix and calculated matrix and arrays with a proper formatting. Extra Credit 1)for extra credit, use external file(s) to input all the given data. 2)Not only you display the interactive output (Part b), your output should be copied to an external file. 3)Display all the external file(s).