"1. Read the rainfalls: Prompt for and get the input file name and try to open the file. If the file opens, read the rainfalls from the file, store them into the array, and return 0. If the file does not open, print an error message on the console and return -1. If the file is not found, do NOT process the rainfalls or attempt to write to the output file"
I'm really having trouble with the first array. This is an example of the inputs and info needed for the function.