Part 1:
Write a program in which you create a constwhose value is determined at runtime by reading the time when theprogram starts (hint: use the standard header). In aseparate function, have the program create two arrays of 10,000doubles. Initialize the first array withsequential integral values starting with 100, and initialize thesecond array with the same numbers, but in reverse order (i.e., thefirst array would contain 100, 101, 102… while the second arraycontains 10,099, 10,098, 10,097…). Loop through both arrays using asingle loop, and multiply the corresponding array elements fromeach array together and display the result. Read the time when theprogram completes the multiplication, and compute and display theelapsed time. Do not use inline functions in this program
Part2:
Rewrite program 1 using an inline function to perform thecalculation. In the test plan for this program (actual resultssection), compare the time required by this program to executeagainst the time required by the first (non-inline) program.
Language C++