Here’s a simple algorithm to get you in the right direction.
- read file line by line
- using StringTokenizer break up each line on ” ”
- the first token will be the name
- the rest of the tokens will be the scores. Parse these as integers and compute the average
solved Calculating average scores from data inside a file [closed]