Help!

So, I have this program running almost perfectly. Requirement 8 is a little buggy tho. The unique values array is supposed to end up having all unique values in order without any empty elements between them. The empty elements should only be the last few elements. Any ideas what I need to change to make this run properly?

Also, code tags are very helpful, I will post how to use them again for you.
[code ]<-omit space
YOUR CODE HERE
[/code]

Also, my suggestion to you is to split section 8 up. Instead of nesting and doing everything at once, it may be helpful to do one step at a time. Get the logic for one thing first, then worry about the next part.

Try this, first, generate all the unique values. Once you do that, you can count the occurrences in the original array. I am imagining sets are not allowed, however; using a set would greatly simplify generating of unique values(since sets do this automatically).

I'm sorry for double posting. If I knew how to go about asking a moderator, i would. I don't even know how to access my posted threads from the home site (without searching through 'forums' for them). I figured there would be a link for 'my threads', but i can't find one. Again, I'm sorry.