Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

this is all one question Question 1: [4 Points] Write a C program that has the following three functions: 1. A Function called initializeArray that

this is all one question
image text in transcribed
image text in transcribed
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 I 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 Now on No uh GON 1 1 1 1 5 5 5 2 2 2 2 6 6 6 3 3 3 3 1 1 1 4 4 4 2 2 5 5 5 5 3 3 3 6 6 6 6 4 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 Circular ShiftDown and after

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Medical Image Databases

Authors: Stephen T.C. Wong

1st Edition

1461375398, 978-1461375395

More Books

Students also viewed these Databases questions

Question

demonstrate the importance of induction training.

Answered: 1 week ago