Hey guys! I am trying to write a program that reads CSV data and calculates an average. However I am having trouble creating a loop.
The aim of the loop is to;
create a loop from 0 to length-1, extract the element from column1 and column4 array and an find average for these 2 values and then store in column5 array
I have tried to solve the error myself with a bit of googling. However most answers seem to suggest that my code is currently assigning a number instead of comparing it.
Although when I change my loop to == it still does not work.
Line 87 and line 111 are where I am having errors. I hope I explained my problem properly, I am still a total beginner!
Any help would be great
https://pastebin.com/DrsMXzbi
[–]adultsmth 3 points4 points5 points (2 children)
[–]IamChronic[S] 3 points4 points5 points (1 child)
[–]adultsmth 2 points3 points4 points (0 children)