I am supposed to write a program that asks the user for a file name. The program should read the contents of the file and display the following data:
the lowest number, the highest, the total of the numbers, and the average of the numbers.
My program will compile but it never reads the numbers from the file. It just gives me random numbers. My teacher wants us to use functions for everything, but I don't get what to do in the function readNumbers. My teacher completely left us on our own to do this. He just walked out of class so can anyone please help me with this?
2007-12-07
06:18:30
·
2 answers
·
asked by
USAman
6
in
Programming & Design