0

I need to make a code that opens a file that contains random numbers and then calculate and display the number of numbers, the sum, and average. I have it so that it will open the file and check for errors and close it. I am also able to get it to display the numbers with a loop I'm just lost on getting the three things figured out.

2
Contributors
2
Replies
4
Views
9 Years
Discussion Span
Last Post by stacyfrench
0

I need to make a code that opens a file that contains random numbers and then calculate and display the number of numbers, the sum, and average. I have it so that it will open the file and check for errors and close it. I am also able to get it to display the numbers with a loop I'm just lost on getting the three things figured out.

I am having the same problem. Not getting it to work. How did you do it?

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.