Computer Science A - removal - 9/14/99 Directions: Write a function that returns a vector which removes all occurences of a certain integer from its vector parameter. Declarations: apvector Numbers; int item; //integer to be removed Call: place = location2(Values, N); Before Call: After Call: 4 -3 5 4 4 item = 4 -3 5 (length = 2) 7 8 8 2 2 item = 8 7 2 2 (length = 3) Heading: apvector removal(apvector Numbers, int item) //precondition: Numbers is full, intem is defined //postcondition: Returns a vector containing the values in Number excluding item { apvector temp; for(int lcv = 0; lcv < Numbers.length(); lcv++) if(Numbers[lcv] != item) { temp.resize(temp.length() + 1); temp[temp.length() - 1] = Numbers[lcv]; } return temp; }