Ive been struggling with this for hours now and I just cant seem to get anything ๐Ÿ™

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 programallows any number of numbers to be entered, up to 50 numbers. The output is to be two column list. The first column is a list of the distinct array elements; thesecond 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.

For the Array
-12 3 -12 4 1 1 -12 1 -1 1 2 3 4 2 3 -12

output should be

N Count

4 2
3 3
2 2
1 4
-1 1

-12 4

 

Doing a similar assignment? Save your time and hire our Genuine Essay Writers to do your task. Get 15% Discount on your 1st order. Use code: FREE15