Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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

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

More Books

Students also viewed these Databases questions

Question

1. Why do people tell lies on their CVs?

Answered: 1 week ago

Question

2. What is the difference between an embellishment and a lie?

Answered: 1 week ago