Question: Instructions: Write a C++ program that uses a function to shift the rows of a 2D Vector. This C++ program needs to compile successfully on

Instructions: Write a C++ program that uses a function to shift the rows of a 2D Vector. This C++ program needs to compile successfully on Visual Studio 201 5 or 2017. Place your name and which version of Visual Studio you used ( 2015 or 2017 ) in comments at the top of your program . Example: //Your name Visual Studio 2015 Instructions: Define a function that will shift a 2D Vector of integers as : Shift_2D_Vector . Shift_2D_Vector must only have the following 2 parameters : 1. A 2 dimensional vector of integers. Call this parameter: table 2. A unsigned integer that will store the n umber of shifts . C all this parameter: num_of_shifts . The function needs to work with 2D vectors of any size and any number of shifts . Make sure that your function can properly perform shifts that are greater than the size of the vector . Test this function by writing a C+ + program that prompts the user to input the number of rows and columns that the vector will have. Additionally, allow the user to input how many times he wants to shift the vector . System Requirements: If you used code from any source, you must properly cite it in comments. Do not post this question on any online tutoring websites as this will result in a grade of 0. Your program will only attempt to input data into the vector if the number of rows is greater than 0. Your program will only attempt to shift the vector if the number of sh ifts is greater than 0. Your program will conclude by displaying the shifted vector. Your program must run like the file entitled Shift 2D Vector.exe that has been uploaded to Blackboard. Display the results as it is illustrated below:

Instructions: Write a C++ program that uses a function to shift the

How v e a to r rotswt erseshet tor have ? 3 How many columns will row 0 have? Input a value into row 0: 1 How many columns wilI row 1 have? 2 Input a value into row 1: 1 nput a Value into row How many columns wilI row Z have r 3 Input a value into row 2: 1 nput a value into row 4 nput a value into row Z The following is the vector that you inputted 1 2 3 How many times do you want to shift this vector? 4 The following is your shifted vector: 1 2 3 Press any key to cont i nue

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!