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
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