Question: In C coding: Write a program that reads in a 2d grid of decimal values, you should * prompt the user for the number of
In C coding: Write a program that reads in a 2d grid of decimal values, you should * prompt the user for the number of rows and number of columns in the 2d * grid making sure that the number of rows or number of * columns requested is not larger than 10 x 10 and looping until values * less than 10 are entered. Read the appropriate decimal values * into the 2d array, we do not need separate prompts * for each row, we can assume the user will enter all the data at once in row * major order (row 0 then row 1 then row 2...) * Call two functions you will write to process the array. * The 2d array and any other information MUST be passed to the functions. * No global variables should be used. The first function, * printGrid, prints the 2d array of numbers as a grid * The second function you should find the max of a column picked by the user. In the main of your program you should call * and display any results from these functions in an appropriate * manner. */
void printGrid(/*PLACE APPROPRIATE FUNCTION PARAMETERS HERE*/) { // place code for printGrid here }
// place code for second function here, description will be // posted on the board during your assigned lab period
int main() { double ourGrid[10][10]; // largest grid we will need
// place code here for reading in values, calling functions
return 0;
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
