Answered step by step
Verified Expert Solution
Question
1 Approved Answer
c++ Write a program that opens up a 2D integer array (**numberDBase) via dynamic memory allocation based on the user input. First, the user will
c++
Write a program that opens up a 2D integer array (**numberDBase) via dynamic memory allocation based on the user input. First, the user will enter how many ID arrays there will be (i.e., rows) within the 2D array (rowCount). Then, the user will give that many integers each represent the size of each ID array within the 2D array (columnCount[]). After opening up the 2D array, the program will start putting numbers inside the integers of the 1D arrays within this 2D array. The oth element of each 1D array will start from 2 and each consecutive element will have the next integer number Example: 3 1 4 5 means : the 2D array will have the size of 3 oth ID array within this 2D array will have the size of 1 13* 1D array within this 2D array will have the size of 4 2nd 1D array within this 2D array will have the size of 5 NOTE: The sizes of each 1D array will be given as AT LEAST 1. You DO NOT need to check this. 5 1 1 1 3 2 9 3 Input 4 3 1 5 2 1 2 3 4 2 Output 12 3 4 5 6 12 3 Nee 2 3 3 4 5 6 7 8 9 10 34Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started