Question: #include using namespace std; int main () { const int NUMITEMS = 20; intnums[NUMITEMS] = {3, 2, 3, 3,9, 6, 7, 5}; int numItems=8; }

#include using namespace std; int main () { const int NUMITEMS = 20; intnums[NUMITEMS] = {3, 2, 3, 3,9, 6, 7, 5}; int numItems=8; } // deleteNum should delete all of the occurrences // of its3rd argument from the array and return the // number of meaningfulnumbers left in the array. For // examplenums after the call below start// {2, 9, 6, 7, 5, ...} and numItems 5numItems = deleteNum(nums, numItems, 3); void deleteNum (int nums, int numItems, int n){ } // insertNum should insert its3rd argument that // number of times intothe array and return the // number of meaningful numbers in the array. For // instance nums after the call below should start // {2, 2,2, 9, 6, 7, 5, ...}and numItems 7 // You can assume there is enough space in the array.numItems = insertNum(nums, numItems, 2); void insertNum (int nums,int numItems, int n){ }

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!