Skip to content
Advertisement

Tag: mean

Program ignoring the last row in the file in calculation

I have a text file with data that looks like this (TestData.txt): My code parses the file and does some calculations with it. However, in the method arrangeList() within which calls another method called getTestAvg() (calculates column means), the program ignores Tyler Perez’s scores. I noticed that the results I am getting were inaccurate so I went and printed the

Advertisement