hello all, i am new here ,, and i need some help to do this array problem.. i can't figure it out..
any help will be greatly appreciated..
here is the question:
1- define an array of size 100 of integers, and fill it with random numbers between 1 and 20,
2- define a function accepting the array as a first argument and an two arrays of size 20 as second and third arguments. Regardless of the number of times that a value repeats (values that occur more than one time in the first array) the second array should contain that value only once. Count the number of times each value occurs in the first array and store the information in the third array.
3- Print each element of the second array followed by a tab, and then the number of times that value occurred in the first array on one line. Print your output to the screen.
i have done filling the random numbers between 1 and 20 in the array of size 100.. but couldn't do the rest of it..
thanks for the help.