Question: In the driver program define the following: 1. non-member function of the following form to do the following: void operations(Clothing Item c[], int size, int

In the driver program define the following: 1. non-member function of the following form to do the following: void operations(Clothing Item c[], int size, int i, int sales_value) If the value in the sold_items array in the index (i) is smaller than the sales_value, then replace the value in the sold_items array at that index with the sales_value. Do that for all objects in the carray. The following example shows the sold_items arrays of each Clothing Item object in c array. celements sold_items c[0] -----> {3,4,4,5) c[1] -----> {4,3,3,7) c[2] -----> {7,3, 8, 3} If the index (i) is 2 and the sales_value is 6. Then the sold_items arrays of each Clothing_Item object in c array should be as follows: celements sold_items c[O] -----> {3,4,6,5} c[1] -----> {4,3,6,7} c[2] -----> {7,3, 8, 3}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
