I have created a program that takes a text file with data, consisting of four columns that contain batch, x, y, value, and produces an average value for each batch (I have t