Im looking for a piece of code that will print the average for each users score from a csv.
It needs to read all scores and then work out an average across the row for each users.
It also needs to calculate how many scores there are to accurately work out the average score so if there are only 2 tests completed it then needs divide by 2.
The CSV is
STUDENT,SCORE1,SCORE2,SCORE3
elliott,12,2,12
bob,0,11,1
test,0,1
I need the code to work out all users averages as described above in the CSV and then print the output.
Cheers.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…