Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Problem: Declare a 2-D array that willcontain up to 20 rows and 15 columns. The

ID: 3618001 • Letter: P

Question

Problem: Declare a 2-D array that willcontain up to 20 rows and 15 columns. The template for thislab that has been posted on ANGEL contains code to prompt the userto enter the number of rows and columns he/she would like to use,confirms the user’s entry is valid, and contains a functionto print the array. You are to add a function that willaccept the 2D array and the rows and columns specified by the userthen fill the array so that each number in the array is (2 * therow index) plus (3 * the column index). For example a 3 by 4matrix would look like

     0   4 5 9

     1 5   8 11

     4   7   10 13

Before you try to write any code, clearly define the purpose ofyour function, the necessary input for your function and theprocessing that your function will employ as comments before yourfunction. (Do NOT ask for help with code unless thesecomments are written, you may ask for help in answering thequestions.)

Once your function has been written add the function callsand function prototypes for your function and for the function toprint the array.


below is what I tried so far

and I need help on part that I marked ****, thanks

Explanation / Answer

please rate - thanks #include #include using namespace std; void Print2DArray(int [][15], int , int ); void input(int [][15],int ,int ); int main() { //declare an array for whole numbers that may contain 20 rows and15 columns int rows=0, cols=0; int a[20][15]; //getting number rows and columns from user cout
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote