Sorry if this is a dumb question but I want to access the total variable from the while loop so I can calculate the average. It is reading values from a text file for refere