1.) Write a program that writes a series of random numbers to a file. Each random umber should be in range of 1 through 500. The application should let user specify how many numbers the file will hold.
2.) Write a program that reads the file written in the program 1. Display all numbers stored in the file, maximum number, minimum number, and average of all numbers.