data int idx double value data push back value if idx gt data size 1 return if i 5155253

&data, int idx, double value ) data.push_back(value); if ( idx >= data.size() – 1) return; if ( idx

void ( vector &data, int idx, double value ) data.push_back(value); if ( idx >= data.size() – 1) return; if ( idx idx; i–) data[i] = data[i – 1]; data[i – 1] = value; Note that this procedure updates the passed in vector. This will change the value in a few of the vector elements, so make sure to give yourself lots of space in those boxes. Take care with this one… 1. Include the following on the fourth image: 1. Hand execute the above with the following values: data : | —- |—- |—-|—-|—-|| 14 -6 018 -7 | | —-|——–|——–| idx : value: 2. In the image, note an appropriate name you could use for this function

"Get 15% discount on your first 3 orders with us"
Use the following coupon
FIRST15

Order Now