Write your question here.
I have to write a program to read first value, and that is the number of numbers to be read next. I must calculate average of those numbers and write to an output file the numbers read and the average, and repeat this process until end of file.
The issue is my program is only averaging the first set of 4 numbers. It isn't doing anything after. It also is not outputting the information to an output file. Please help!