Question: Change to your Assignment directory. Create a new subdirectory called asn3 (all in lowercase) and change to that new directory. Create a new subdirectory called

 Change to your Assignment directory. Create a new subdirectory called asn3
(all in lowercase) and change to that new directory. Create a new

Change to your Assignment directory. Create a new subdirectory called asn3 (all in lowercase) and change to that new directory. Create a new subdirectory called projl (all in lowercase) and change to that new directory Create a program that: 1) prompts the user for three values. (You do not have to check for valid input type.) The values are: (1") - the number of layers in the matrix (2)-the number of rows in each layer (34) - the number of items (places) in each row The loop terminates when the user enters a zero as one or more of the inputs. (t.e. 203). 2) initializes the matrix (three dimensional array: create a function called InitMatrix ) and place it in a file labeled Init Matrix.c using the code below for a random number generator fill the three dimensional array with random integers between 1 and 100 inclusive. 3) prints out the matrix (three dimensional array) create a function called PrintMatrix() and place it in a file labeled PrintMatrix.c label the Layer Number label the Row Number 4) once the user elects to end the program, print out FINISHED. 5) create two (2) header files. one file labeled headers.h with the following contents #ifndef HEADERS_H_INCLUDED define HEADERS_L_INCLUDED #include #include #include #include definitions." tendif // HEADERS_H_INCLUDED the other file is labeled definitions.h with the following contents #ifndef DEFINITIONS_V_INCLUDED #define DEFINITIONS_V_INCLUDED void InitArray ( your parameter list bere void print Matrix your parameter list here) tendi? 17 DEFINITIONS_#_INCLUDED Note: All of your c files will have the single include ONLY. Finclude "headers." Project One (1): Image Imagguil compute-/private/course/ (-2211/W21/assignments/asnapin [Imagguil@compute projijs [Imagguil@compute projijs ./proji Enter values for Layers, Rows, Columns (elements in each row): 2 3 4 Original Matrix Layer 1 ( 1 ) 71 72 ( 2 ) 99 57 ( 3 ) 12 18 57 48 23 layers 58 57 prompt 83 99 Layer 2 (1) se 77 (2) se ge (3) 94 84 12 Be 42 96 row number Enter values for Layers, Rows, Columns (elements in each row): e o e [Imagguil@compute projlis [Imaggui1@compute projijs FINISHED Code for generating random integers: int x, m = 100; time_t t; srand((unsigned) time (t)); x = (rand() $ m) +1; where: time_t is defined in the library of time.h mis range. In this case 100 signifies the range of 0 to 99, so we add I to the result. (note: m will vary in the second project to match to the matrix size.)

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!