Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Hi, I need this code for this assignment. The code must be in C language ONLY. Its due in an hour. Please help. Thanks! Its
Hi, I need this code for this assignment. The code must be in C language ONLY. Its due in an hour. Please help. Thanks! Its basically creating functions.
* Write a program that will populate a 2d array of integer values, print out * 2d array you just created, and then calculate some values of the 2d array *Your main should read in a min and max value for the values in the array *as well as the number of rows and columns in the array. (10 points) *The code should * make sure that the number of rows or number of columns requested is not * larger than the 15x15 array and looping until values less than 15 are *entered (10 points). You should have code in the main of your program that *calls and display any results from the three functions in an appropriate *manner (10 points) * The 2d array and any other information MUST be passed to the functions. *No global variables should be used * The first function createGrid will populate the 2d array * with integer values. The function will have arguments for the number of *rows and number of columns in the 2d grid as well as the min and max *for the values in the array. The function will then create the appropriate * integer values for each entry in the 2d array, we do not need separate * min/max for each row, a single min and a single max value will be used *for all the rows. (20 points) * The next function, printGrid, prints the 2d array of numbers nicely as a *table, making sure cols line up (20 points) The next function should change return type f for function from void to appropriate return type void createGrid(/* PLACE APPROPRIATE FUNCTION PARAMETERS HERE ) // place code for createGrid here void printGrid(/ PLACE APPROPRIATE FUNCTION PARAMETERS HERE) // place code for printGrid here I Feel free to change the void so the thirdFunction returns the appropriate /I type for the calculations you are perforing in thirdFunction void thirdFunction /PLACE APPROPRIATE FUNCTION PARAMETERS HERE*/) // place code for third function here, description will be /1 posted on the board during your assigned lab period int main) int ourGrid[15)15 I largest grid we will need double resulti15 I for thirdFunction results // place code here for reading in min, max, number rows, number columns, andStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started