Question: Program must be written in C programming Create a function of type void to explain the program to the user with the description printed to

Program must be written in C programming

Create a function of type void to explain the program to the user with the description printed to the terminal. Do not forget to call the function from main().

Input the data while executing from your main() function. Query the user to enter the data. You must enter the parameters from the user in the following order: a, b, c and then xi, xf and Program must be written in C programming Create a function of type . Use double for all variables and calculations.

Your program is to loop over all possible x values in your main() function. The first x value is to be xi, the second

xi + void to explain the program to the user with the description printed , etc. with the last value being xf (or somewhat less than xf if to the terminal. Do not forget to call the function from main(). does not divide evenly into the range).

The calculation of the area A depends on the initial value of x, xi . That is, for each x, we calculate the area as

A=F(x)-F(xi), . In order to calculate A, you must know both x and xi. For the first value of x, it should be that A is zero.

From main() and for each x, you are to call a call-by-reference function that accepts a, b, c, x and xi that calculates and returns (via pointer operations) f(x), f'(x) and A. That is, you must create a single function that accepts five input parameters (a, b, c, x and ), and returns three outputs (related to , and A). There must not be any scan/print statements in your function.

Your function uses the values of a, b and c along with the value of x to compute Input the data while executing from your main() function. Query the user . Similarly, the derivative is computed as to enter the data. You must enter the parameters from the user . Then, using xi in addition to the other parameters, compute in the following order: a, b, c and then xi, xf and and . Use double for all variables and calculations. Your program is to . The area is found as loop over all possible x values in your main() function. The first . Return the result of your calculations back to the main() function (it will be necessary to reference your outputs via pointers).

All output for your table of x versus f(x), f'(x) and A must be displayed via statements in your main() function. Write your table to the terminal (i.e., the default output for printf()). Choose a suitable format for your output numbers.

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!