Calculating an average, minimum, and maximum, from an imported file (.txt)
<p>I have a project where I need to read in data from a .txt file and run some calculations on it.  No arrays allowed.</p>

<p>The data in the file looks like this.</p>

<p>firstname lastname age scores</p>

<p>example</p>

<p>Brian Moore 55 8 4 3 6 13 2 4 7</p>

<p>I need to print the data with just the initials of the person (first two letters of each name), and find an average for the scores.</p>

<p>This is what I started with, but I am really just stumped at this point, which means getting started.  I feel like if I can get one line down, it's just a matter of making loops to create the rest.</p>

<pre><code>    int scoreCounter = 1;
    int scoreSum = 1;

    while (inputOne.hasNext()) {
        int scoreList = inputOne.nextInt();

        System.out.println(scoreList);
        scoreSum = scoreSum + scoreList;
        scoreCounter++;
    }
    System.out.println("Average: " + (scoreSum/scoreCounter))       
}
</code></pre>
