5.
please help me get the correct code that runs correctly
Module 3-Pointers and Array-Based Lists 5) Please provide C++ source code that would create a two-dimensional dynamic array of 5 rows and 6 columns. Each element inside of this array is an integer that is equal to the row number plus 1 times the column number plus 1-that is, for an integer array named someArray: someArray[row][column] =(row + 1) x (column + 1) This means that the element in position [0][0] of this array would be equal to 1x1=1, the element in position [0][1] would be equal 1x2 = 2, and so on. Use code similar to the one shown on pg. 150 of the text to create this array. Once you have created the code, run it and provide a screenshot of it executing (10 pts). **Hint: You may use one for loop to create as shown on pg. 150 and a separate nested for loop to place the numbers inside of this array.
5. please help me get the correct code that runs correctly
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am