Suppose we have several lines in a file and we have 10 values in each line. For example,
1 5 5 5 5 5 5 3 5 5
3 4 4 4 2 4 4 4 4 4
5 2 2 2 2 2 4 4 4 4
6 5 5 5 5 5 5 3 5 5
8 4 4 4 2 4 4 4 4 4
9 2 2 2 2 2 4 4 4 4
. The first value in each line represents student ID, and the following 9 values represent 9 homework grades. As we will do in this class, we would like to find the sum of the best eight homework grades (in another words, subtract the lowest homework grade from the sum of nine homework grades). Then we would like to write student ID and the sum of the best eight homework grade into output-hw05.txt file
1
Expert's answer
2010-10-26T03:27:38-0400
Your task requires more work than for free questions; it can be submitted as an assignment to our site. Just follow this link and our experts will assist you.
Comments
Leave a comment