I have to create an array from an input file and then extract the calculated information from the array back to an output file. I understand how to bring in an input file but I am unsure how to put this information into an array. Here is the assignment incase that helps explain what i am trying to ask.
1. Read an input text files called inputFile.txt. You can generate this file using Notepad. The file contains 10 columns and many lines. Each line is a student’s quiz scores (a score is a two or one digit integer). The first column is the names of students. Different words in a name are connected by underscore. E.g., John_Stevens. Each of other columns is a quiz score. There may be multiple spaces or tabs between columns. The first line describes the title in each column (Name Quiz_1 Quiz_2 …. Quiz_9). The rest lines are the student scores. The last line only contains one word END. It is assumed that number of students is no more than 100
2. Write a routine that accepts an array of numbers as input and returns high, low, and average of the array.
3. Calculate the high, low, and average of all quizzes.
4. Print the result in a file outputFile.txt in a format similar to the input file but has three rows representing high, low, and average of each quiz