Create a QuadraticEquation application that gives the solution to any quadratic equation. The application should prompt the user for values for a, b, and c (ax2 + bx + c = 0) and then display the roots, if any
//you have not mentioned the language, i have done in c++, if you need in C,C#,Java, python, r, matlab,octave, scilab etc
//please comment
#include <iostream>
#include <math.h>
using namespace std;
int main()
{
double a,b,c;
cout<<"enter value of a:";cin>>a;
cout<<"enter value of b:";cin>>b;
cout<<"enter value of c:";cin>>c;
double D=b*b-4*a*c;
if(D>=0)
{double root1= (-b+sqrt(D))/(2*a);
double root2= (-b-sqrt(D))/(2*a);
cout<<"roots are
:"<<root1<<","<<root2;
}
else
{
cout<<"roots are: (-"<<b<<"+i
sqrt("<<(-1*D)<<"))/"<<(2*a)<<",";
cout<<"(-"<<b<<"-i
sqrt("<<(-1*D)<<"))/"<<(2*a)<<",";
}
return 0;
}

Create a QuadraticEquation application that gives the solution to any quadratic equation. The application should prompt...