Question: File name: quad_eq roots file funct. Read the coefficients for a quadratic equation using call-by-value and call-by-ref functions # include # include #define FILE|N quadCoef.

 File name: quad_eq roots file funct. Read the coefficients for aquadratic equation using call-by-value and call-by-ref functions # include # include #defineFILE|N "quadCoef. txt" // FUNCTION PROTOTYPES void readFile FILE *infile, double *a,double *b, double *c void getRoots double a, double b, double c,

File name: quad_eq roots file funct. Read the coefficients for a quadratic equation using call-by-value and call-by-ref functions # include # include #define FILE|N "quadCoef. txt" // FUNCTION PROTOTYPES void readFile FILE *infile, double *a, double *b, double *c void getRoots double a, double b, double c, double* xl, double* x2); double cal xl( double a, double b, double c) double cal x2( double a, double b, double c void printResults double a, double b, double c, double xl, double x2; int main) i double a, b, c;// input coefficients double xl, x2; int i, numEq; // output roots FILE *infile; infile fopen (FILEIN, ""); if (infile - NULL) // did the file open correctly? II No. print message, end program printf ("Error in opening input file. " else // Yes, continue program fscanf(infile , "%d", &numEq) ; for (1-0 ; i

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!