Write a program using multiple functions. Make use of an arrayto store data Make use of searching techniques Read data from afile Write data to a file Instructions: In this lab, you will beexamining a set of stock collected over a twenty four day period.Be sure to make use of an array to store these stocks. You will berequired to read in the data points from a file. Write a functionto read in the data. (See data details below.) After reading in thedata, you will need to write a function that will calculate theaverage of the data set. You need to define a struct to containstock investments, gain, etc. Then you should write a function todisplay the stocks in the table format shown below. Table Format:Hour stock Difference from Avg 1 35 -02.29 2 32 -05.29