5. please help me get the correct code that runs correctly

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

5. please help me get the correct code that runs correctly

Post by answerhappygod »

5.
please help me get the correct code that runs correctly
5 Please Help Me Get The Correct Code That Runs Correctly 1
5 Please Help Me Get The Correct Code That Runs Correctly 1 (44.33 KiB) Viewed 11 times
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.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply