$25
CSE 102 Homework Assignment 2
Example
• input.txt:
12 10 12 12 5 10 5 5 5 5
-8 5 5 10 4 -8 4
• Your program counts the repetitions of integers and writes the counted values to output.txt
• output.txt after the execution:
-8:2
4:2
10:3
12:3
5:7
Ordering (30pts)
output.txt should have the numbers in ascending order( with respect to their counts). The number which repeats the least should appear first. If the counts are the same, the smallest number should appear first.
.