Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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 1 1 1 1 5 5 5 5 2 2 2 2 6 6 6 6 3 3 3 3 1 1 1 1 4 4 4 4 2 2 2 2 5 5 5 5 3 3 3 3 6 6 6 6 4 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 CircularShiftDown 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

SQL For Data Science Data Cleaning Wrangling And Analytics With Relational Databases

Authors: Antonio Badia

1st Edition

3030575918, 978-3030575915

More Books

Students also viewed these Databases questions

Question

Organize documents logically and according to the audience.

Answered: 1 week ago