Considerthe loads F1&nbsp ,F2 ,…………, FN and their locat

Considerthe loads F1  ,F2 ,…………, FN and their locations D1  ,D2 ,…………, DN  as elements of thearrays F and D. Feed all the elements FJ and DJ into the computer. Note:Refer to figure as shown to obtain values for the elements FJ and D(J). An applied load FJ is to be considered positive if it acts toward thebeam, negative if it acts away from the beam.Write an Ansi C program to compute beam reaction (R) for each case using ONE DIMENSIONAL arrays andFUNCTION.Definitionof terms:F1  ,F2 , …………, FN   Loadsapplied to the beamD1  ,D2 , …………, DN   Location of applied loads N  Maximumnumber of applied loadsR1  ,R2  Beam reactions at the simple supportsL1  ,L2      locations of thereactions R1 and R2 from the      reference  use proper out-put formatting to display yououtput Yourlogic must handle external file(s). Your output not only must have interactiveoutput, but the output should be copied to external file. Display all the external output.