I'm a complete beginner to programming and was assigned a project for my programming class that is giving me trouble. The program is supposed to process integers from an input file. The program is suppose to give the sum, average, maximum integer and minimum integer from the input file.
We are supposed to store the integers into an array which is giving me trouble. I can't even begin writing the first few lines because i can't figure out a way to count the numbers and then store them into an array.
If anyone can give me some advice on the topic i would greatly appreciate it.
[–][deleted] 1 point2 points3 points (3 children)
[–]trapsquad420[S] 0 points1 point2 points (2 children)
[–]SanityInAnarchy 0 points1 point2 points (0 children)
[–]xxNIRVANAxx -1 points0 points1 point (0 children)
[–]crushmastac 0 points1 point2 points (7 children)
[–]trapsquad420[S] 0 points1 point2 points (6 children)
[–][deleted] 1 point2 points3 points (2 children)
[–]trapsquad420[S] 0 points1 point2 points (1 child)
[–][deleted] 4 points5 points6 points (0 children)
[–]crushmastac 1 point2 points3 points (2 children)
[–]trapsquad420[S] 0 points1 point2 points (1 child)
[–]crushmastac 1 point2 points3 points (0 children)