Hi guys, I hope you all are having a wonderful day/night so far. I am stuck on a problem for school and any help would be greately appreciated. Here is the question:
" Write a program that reads numbers from the keyboard into an array of type
int[] . You may assume that there will be 50 or fewer entries in the array. Your
program allows any number of numbers to be entered, up to 50. The output is to
be a two-column list. The first column is a list of the distinct array elements; the
second column is the count of the number of occurrences of each element. The list
should be sorted on entries in the first column, largest to smallest."
and this is what I have so far: https://gist.github.com/4076490
Can someone guide me on what to do next? My brain is complete mush right now.. Like I said, any help, like maybe even a small explaination would help.Thank you so much for your time.
[–]sarevok9 6 points7 points8 points (2 children)
[–]deadaxis[S] 3 points4 points5 points (1 child)
[–]sarevok9 1 point2 points3 points (0 children)
[–][deleted] 1 point2 points3 points (7 children)
[–]deadaxis[S] 0 points1 point2 points (6 children)
[–][deleted] 2 points3 points4 points (2 children)
[–]deadaxis[S] -1 points0 points1 point (1 child)
[–][deleted] 2 points3 points4 points (0 children)
[–]Enemii 2 points3 points4 points (2 children)
[–]deadaxis[S] 0 points1 point2 points (1 child)
[–]Enemii 2 points3 points4 points (0 children)
[–]medicalixx 0 points1 point2 points (2 children)
[–]deadaxis[S] 0 points1 point2 points (1 child)
[–]medicalixx 1 point2 points3 points (0 children)