Write a program that reads the data from the file integers.dat generated in Exercise 10. After the data are read, display the smallest, the largest, and the average.

(Exercise – 10)

Write a program that randomly generates N integers and stores them in a binary file integers.dat. The value for N is input by the user. Open the file with a text editor and see what the contents of a binary file look like.

(Exercise -12)

Repeat Exercise 10, but this time, store the numbers in a text file integers.txt. Open this file with a text editor and verify that you can read the contents.