Hey, been working on this code for a while now, and it been having some troubling with it. It is supposed to take numbers from the user, sort them the report the results. But unfortunately, I cannot figure it out why it doesn't run. Hope someone can help, thanks
Well, what you are supposed to do is carry out 'unit testing'.
What this means here is because you didn't write your program all in one slab of code (unless you copied it off someone else ... bad) and then tried to run it, you should just test it in small units.
So go back to main and comment out all the lines of code and bring each back onto line only when the program runs for the preceding ones.
Do that and report where and what errors you are getting after you reach an insurmountable problem.
I know it makes sense. I reckon your teacher would have expected you to do a bit more than just assessing other people's work.
So, c'mon, it's your turn now.
What testing have you done? Maybe just print out some values inside the function as it goes through the loops. Show us what you get as output, modify it with some suggestions of your own and show us here.
PS Don't just throw the problem back to your boss to solve. It's not a good way to further a programming career. Just a suggestion. :)
(PS Past experience says OP won't be back, never to be heard of again, but you're welcome if a bit of effort is shown.)