Question: Can someone help me with this question please.. Part 1 Write a function with header given as folloMa or int expand 2D vector vector vector

Can someone help me with this question please..
Part 1 Write a function with header given as folloMa or int expand 2D vector vector vector int veco int n int m Suppose that the input 2D vector vec0 has r rows and c columns the above function returns a vect with r rows and c n columns The original values in the vector veco remain unchanged in the expanded vector, the other elenents in the expanded vector are set as 1. This function should be defined in a file with nane lab6task2 expand 2D vector-cpp Part 2. Write a main function to generate a 2D vector The main function gets two positive integera and y from the user suppose that the user al Mays inputs two positive integers then generates a 2D int vector veel with x rows and y columns The elements are set as random integers in the range I10 50 This vector is printed to the creen The main function then generates two random integers rano and ranl in the range call the function expan 2D vector the rows of the above vector ran0 rows. and to increase the columns by ranl columns. This modified vector is printed to the screen in the main function The nain function should be defined in a file with name labotask2.cpp Note that your program should use the c++ random engine nt 19937 to and use time (D generate the random n to set the two positive i he elements of vector are
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
