the equation of a parabola is
y=ax^2 +bx+c
Use a for loop and if statements in a program capable of finding
the maximum or minimum value of diffenrent parabolas. As input, the
program is to read the data consisting of a,b,c for the four
parabolas from a file called PARA.DAT, which consists of four
lines. Please show me the source code, thanks!
the equation of a parabola is y=ax^2 +bx+c Use a for loop and if statements in a program capable of finding the maximum...
194 C Programming: A Q & A Approach In sists Application Exercises lines 4.1. The equation of a parabola is (Her y= ar2 + bxr + c BIN Use a for loop and if statements in a program capable of finding the maximum or minimum value of four different parabolas. As input, the program is to read the data consisting of a, b and c for the four parabolas line line line lin from a file called PARA.DAT. which consists of four lines: (coefficients for parabola 1) 2 ) (coeffici ents for parabole .. line1 al bl c1 line2 a2 b2 c2 (coeffici ents for parabola 3) (coefficients for parabola) line3 a3 b3 c3 line4 a4 b4 c4 ughuo An example data file is oulev od etaB edd eorsqe s yd 1.1 -2 1 -1.3 1 15 actdem raaan.0 Ix -0.7 15 18.3 1.5 15.5 14.2 -Sx As output, print your result to a file called PARA.OUT in the following form: negative then aswi Parabola 2 VIlid number lbrisrd of rROT nD (x, y) coordinates of uoY minimum or maximum oan Equation y 1.lx*x- 2x + | (0.909,0.0909) min 2 y -1.3x*x + Ix + 15 ae sidarsysr Jodt oto on eow |mO19rt10 920 000 101603 0muoV =-0.7x*x + 15x + 18.3 l viilamia ol brs sornrginsvno no be d 01 9tds 01 Drs so A 1.5x x + 15.5x+ 14.2ib.obuontr- 0 y enm UY t0 .0oedivinlo O0r esknsy 4 y toals eid
194 C Programming: A Q & A Approach In sists Application Exercises lines 4.1. The equation of a parabola is (Her y= ar2 + bxr + c BIN Use a for loop and if statements in a program capable of finding the maximum or minimum value of four different parabolas. As input, the program is to read the data consisting of a, b and c for the four parabolas line line line lin from a file called PARA.DAT. which consists of four lines: (coefficients for parabola 1) 2 ) (coeffici ents for parabole .. line1 al bl c1 line2 a2 b2 c2 (coeffici ents for parabola 3) (coefficients for parabola) line3 a3 b3 c3 line4 a4 b4 c4 ughuo An example data file is oulev od etaB edd eorsqe s yd 1.1 -2 1 -1.3 1 15 actdem raaan.0 Ix -0.7 15 18.3 1.5 15.5 14.2 -Sx As output, print your result to a file called PARA.OUT in the following form: negative then aswi Parabola 2 VIlid number lbrisrd of rROT nD (x, y) coordinates of uoY minimum or maximum oan Equation y 1.lx*x- 2x + | (0.909,0.0909) min 2 y -1.3x*x + Ix + 15 ae sidarsysr Jodt oto on eow |mO19rt10 920 000 101603 0muoV =-0.7x*x + 15x + 18.3 l viilamia ol brs sornrginsvno no be d 01 9tds 01 Drs so A 1.5x x + 15.5x+ 14.2ib.obuontr- 0 y enm UY t0 .0oedivinlo O0r esknsy 4 y toals eid