A file names USPopulation.txt is attached to this assignment. The file contains the midyear population of the united States, in thousands, during the years 1950 through 1990. The first line in the file contains the population for 1950, then second line contains the population for 1951, etc.
Write a Java program that reads the file’s contents into an array. The program should display the following data:
- * The average changes in population during the time period.
- * The year with the greatest increase in population during the time period.
- * The year with the smallest increase in population during the time period.