Question: Develop a console program to build dynamically a three dimensional array of integers. ( x , y , z are obtained from the user on

Develop a console program to build dynamically a three dimensional array of integers.
(x,y,z are obtained from the user on every iteration of building, initializing, displaying and destroying)
The application must be capable of receiving its input from:
a) the user interactively
b) from data file using I/O redirection
c) from a data file specified as a command-line argument using the option -if
The output will be sent to the display as a sequence of 2-dim arrays (x and Y) for as many z. If an outfile is specified at the command-line then the output should be sent to the file. The -of option will indicate the output file if available.
The 3-dim arrays are to be initialized with random numbers from 1-9 and displays the array elements. It must allow the user to continue this process until "N" is entered.
please show how to do this and explain the lines of code

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