Array function. Read data from the text file and generate the output. This program evaluate the gred for student mark.