read text file place in Arrays that'll be used in functions

I need to read from a text file, add that data to arrays, that use those arrays in functions that'll perform calculations, then create a new text file, and write calculation results to the new text file.

I can't figure out if I am placing data from the text file into the arrays. I think my problems start around line 120. The program will run and it will output. I have included many cout's to see where the compiler gets hung up.