hi.My cousin asked me to help with his assignment .Unfortunately the spec does not clarify. I am suppose to find an object in a queue, remove it and shift other members up in the queue.The problem is when I remove the element, and shift everything up.What happens to the  object.
It would benefit your cousin much more, if he would do his homework himself. One does learn by doing, and the goal of homeworks is learning.
You do have a set of elements. If you do remove one element, then the size of the set does reduce by one. If the elements of the set are actually stored in a contiguous block of memory, then obviously some of them have to be relocated, because (a) the removed element did leave an empty hole and (b) the block will shrink.
Visualize. Place some rocks into a line. Take one away. What has to be done for the rest in order to remove the gap from the line?