queues and reqular queues

Hello:

I have a project with priority queues and reqular queues.
I need to organize products by IDs from min to max using priority queues.

And then using reqular queues I need to put them into 3 categories: (over-stock, under-stock, within limits); so the output should look like this:


I wrote this code, but something is off that I am not sure and my out put looks like:

Last edited on
If you look at the normal output to your output you can see that the numbers are change around to the wrong set of stocks if you look at your code you will find the problem. Its just minor error nothing too major so you are able to fix this problem yourself. I hope I did not say this in a rude way.
Last edited on
I see my code is wrong and so is the output. But still not sure how it set this up correctly.
Can any one give me a hint ? please:-)
help
help!!!
Topic archived. No new replies allowed.