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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!