Question: c# using printf and scanf Question 1: [4 Points] Write a C program that has the following three functions: 1. A Function called initializeArray that

 c# using printf and scanf Question 1: [4 Points] Write a
c# using printf and scanf

Question 1: [4 Points] Write a C program that has the following three functions: 1. A Function called initializeArray that receives a (2D) two dimensional array of type integer as well as the number of rows n of integer data type. The function initializes this array row by row by random number from 35 to 95. You need to use loop to accomplish the reading process. Number of columns = 4 2. CircularShiftDown function that receives three parameters: a two dimensional integer array A, an integer n represents number of rows n, and integer number m. Assume number of columns is 4. The function should shift the array rows down m times. Each shift operation makes the first row becomes second row, second row becomes third row and so on, the last row becomes the first row in the array Example: if n = 6, Example Array A before Shift Array A after Shift m =2 5 6 1 5 6 1 1 2 3 4 5 6 1 2 3 4 5 6 1 2 3 4 5 6 1 2 3 4 5 6 5 6 1 2 3 4 5 6 1 2 3 4 2 3 4 2 3 4 3. Test your functions in the main, declare an array of type 2D arrays named X and of size 100 by 4. Use ReadArray to read the values of array X, then call function CircularShiftDown to circularly shift it down by 17 print the array X before calling CircularShiftDown and after

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!