Question: Write a C + + program that asks the user for the dimensions of a 2 D array and: 1 . Dynamically create the array

Write a C++ program that asks the user for the dimensions of a 2D array and:
1. Dynamically create the array (assume that width and height are even numbers)
2. Fill it in with random integers from 0..9
3. Print it out
4. Create a new array with half width and half height
5. Downsize the array to half width and half height
6. Print out the downsized array
7. Deallocate memory

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 Programming Questions!