Need H3lp with a School Programming Project

Can anyone help me out? I just can't seem to get this started, any help even some examples would be much appreciated.

Thanks, here it is...

"Hint: use 2 arrays, one for storing the values, the other for storing the count
For example, 5 is entered 10 times, 5 is stored once and a count of 10 is stored in the second array.

You should declare both arrays at size of 50, which means 50 distinct values may be entered, but each value may re-occur many many times.

When a new number is entered, search the first array to see if the number already exists. If yes, then increment the corresponding array element (the count); if not add the new number to the end of the first array and set its count in the second array to 1, and then sort both arrays.

So a search function and a sort function are needed.

Reading from a file is identical to reading from the keyboard except the way the number is obtained."
Sorry, but we won't h3lp without you try1ng.
If you make an attempt, post your code and we will do our best to show you what you have gotten wrong.
Topic archived. No new replies allowed.