Write a C++ function printArray (A, m, n) that prints an m X n two-dimensional array A of integers, declared to be "int** A", to the standard output. Each of the m rows should appear on a seperate line.
The program must ask a user for the value of m and n to creat an mxn two-dimensional array A of integers, declared to be "int** A". The range of m and n must be between 1 and 10 (including 1 and 10). If the user provides invalid input for either m or n, use default value 1. For example, if the user inputted "abcd" for m, you should use 1 for m. Or if the user entered 100 for n, you hsould use 1 for n.
The program must ask user to enter the integer value for array from row to row. If an invalid value (non-integer value) is provided, use default value 0.
main() method must generate appropriate outputs to demonstrate all functions have been implemented.
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
C++ programming code, needs to be able to compile on Unix using g++ command. It does not matter what text editor is used or what enviorment is used.