1) Be given the name of a file and open the file for input. If the file cannot be opened, program should immediately print an error message and then exit.
2) Given a reference to an open input file, reads the integers in that file and returns their average. The list of integers is terminated by -1. The -1 should not be averaged with the other numbers.
3) Given the name of a file and the average of the numbers in that file and prints that information to the screen in nicely formatted form.