Exercise Using Files

Create a file named filea.dat that contains a list of floating point numbers. Write a program to read these numbers and
  1. echo the numbers to the screen,
  2. add 1 to each number and write it back to a file named file4b.dat, and
  3. print the average and the largest value to the screen.