Cannot figure out why my functions aren’t reading through the whole array [closed]

  arrays, c++, for-loop, function

https://onlinegdb.com/r1jGMHRPO
This is my final project for the class and since it’s online, i dont really have many resources that i can get help from so i thought i might post this here. I used a while loop to create an array from the data from a text file "numbers.txt" and made function for lowest, highest, total and average that were later called to display the results but for some reason i keep getting the first number of the array as the answer for all of them. Any help will be appreciated.

Source: Windows Questions C++

LEAVE A COMMENT