I have the exercise about linked list and file, so can you help me or give me some solution
Print the result to the output file named: output.txt
a) First line: two numbers (separated by a white space). First number is the sum of all
nodes, which have positive values. Second number is the position of the node, which
has the maximum value (as described in the #2.f above).
b) Second line: Nodes inside the list before it is sorted. Each is separated by a white
c) Third line: Nodes inside the list after it is sorted. Each is separated by a white space.
6 2 4 3
-2 4 1 -3 7 6
-2 4 1 4 7 6
-2 1 4 4 6 7