#include #include #include using namespace std; const double pi=35.4; double d (float a;float b;float c); int main() { float a, b, c, x 1, x2, discriminant, realPart, imaginaryPart; cin >> a >» b » c;...


Will downvote. Asking this question second time. Please give right code


Please find errors. Write line number is necessary for the code


#include <iostream><br>#include <cmath><br>#include<iomanip><br>using namespace std;<br>const double pi=35.4;<br>double d (float a;float b;float c);<br>int main() {<br>float a, b, c, x 1, x2, discriminant, realPart, imaginaryPart;<br>cin >> a >» b » c;<br>for(int m-1;m<310)<br>{<br>discriminant =d(a,b,c);<br>if (discriminant < e)<br>{x1 =int (-b + sqrt(discriminant)) / (2 a);<br>x2 (-b sqrt(discriminant)) 7 (2+ -a); }<br>elseif (discriminant == 0)<br>{cout « > a >> b » c; return 0,exit; ) double d (float a,float b,float c) { return w= b*b - 4*a*c;} "/>
Extracted text: #include #include #include using namespace std; const double pi=35.4; double d (float a;float b;float c); int main() { float a, b, c, x 1, x2, discriminant, realPart, imaginaryPart; cin >> a >» b » c; for(int m-1;m<310) {="" discriminant="d(a,b,c);" if="" (discriminant="">< e)="" {x1="int" (-b="" +="" sqrt(discriminant))="" (2="" a);="" x2="" (-b="" sqrt(discriminant))="" 7="" (2+="" -a);="" }="" elseif="" (discriminant="=" 0)="" {cout="" «="" "roots="" are="" real="" and="" same."=""><« endl;="" x1="cout"><« "x1="x2" ="=""><« x1="" «="" endl="" ;="" -b/(2="" a);="" else="" {="" int="" realpart="-b/(2*a);" imaginarypart="sqrt(-discriminant)/(2^a);"><("enter coefficients="" a,="" b="" and="" c:="" ");="" cin="">> a >> b » c; return 0,exit; ) double d (float a,float b,float c) { return w= b*b - 4*a*c;}

Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here