I am so lost on this one, i dont know how to do this at all..
-- program will read in a list of random numbers from an input file,
random.txt
d calculate the
following statistics on those numbers:
A. The number of numbers in the file.
B. The sum of the numbers in the file.
C. The average of the numbers in the file.
D. The largest number in the file.
E. The smallest number in the file.
F. The second largest number in the file.
G. The second smallest number in the file.
Your program should then print out a report, similar to the following (note that these are
demonstration numbers only; they are not accurate for the homework data file):
Number of numbers: 235
Sum of numbers: 5346
Average of numbers: 22.8
Largest number: 515
Smallest number: 3
Second largest number: 512
Second smallest number: 7