Help on Arrays! Really don't understand, sample code would be very helpful!

Use proper programming practice and modular programming.
Write a program that asks the user for a file name. Assume the file contains a series of numbers, each written on a separate line. The file will contain at most 50 numbers, but may have fewer. The program should create an array of size 50, read the contents of the file into an array and then display the following data:
The lowest number in the array
The highest number in the array
The total of the numbers in the array
The average of the numbers in the array
Okay here is some sample "code" to get you started:

http://www.cplusplus.com/doc/tutorial/arrays/


Topic archived. No new replies allowed.