Question: Create a program in C that does the following. Develop a set of functions for computing values from a two-dimensional(10 x 8) table of data.
Create a program in C that does the following.
Develop a set of functions for computing values from a two-dimensional(10 x 8) table of data. Use pointer references instead of subscript references in the functions. Allow user input:
Create a data file(.txt) manually.
Read the data from a file to fill the table.
Output the table read to screen.
Output the sum to screen.
a. Write a function that computes the sum of the ith row in a table containing 10 rows and
8 columns of values. Assume that the function prototype statement is the following:
double row_sum(double table[n][m],int i);
b. Write a function that computes the sum of the jth column in a table containing 10 rows
and 8 columns of values. Assume that the function prototype statement is the following:
double col_sum(double table[n][m],int j);
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
