Question: I need some help how to solve this lab Program Learning Objectives - Create a 3D array - Iterate through a 3D array - Implement

 I need some help how to solve this lab Program Learning

I need some help how to solve this lab Program

Learning Objectives - Create a 3D array - Iterate through a 3D array - Implement an abstract algorithm Instructions In this lab assignment, you will create a 3-dimensional array of numbers of size 101010 ( 1000 elements), and populate each element of the 3D array with a randomly generated integer value in the range from 0999 (iolusive) The RNG seed will come from the input. Populate the array by generating random numbers and assigning in the following order begin at (x,y,z)=(0,0,0) and progress down the x axis with y=z=0. Put the next random number in that array location. After a line of 10 values in the x-direction is filled, advance to the next row in the y direction. After a (x,y) plane of values are filled, advance in the z-direction This diagram shows in blue the first 13 blocks that would be populated. The 101 st block will be at location (xi,y,z)=(0,0,1) if Next, a specific (x,y,z) location will come from input. First error check that the (xy, z) location.actually occurs within the 30 array. If it does not, write an error statement and end the program. Otherwise, compute the sum of all the values extending from the (x,y,z) location perpendicular to the far edge of the cube in each of the 3-directions; as shown by the-red blocks in this figure. The end of the program will output the sum of these values. When the program is complete: Sample Output [2 examples shown] User Input 22 676 Program Output Paxt B check: 321

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!