The root of the quardratic equation ax 2 +bx+c=0, a 0 are given by the following
ID: 3614177 • Letter: T
Question
The root of the quardratic equation ax2+bx+c=0, a 0 are given by the following formula: In this formula, the term b2 _ 4ac is called the discriminant. If b2 _ 4ac = 0, then the equation has a simple (repeated) roots. If b2 _ 4ac>0, the equation has two real roots. If b2 _ 4ac < 0, the equation has two complex roots.Write a program that prompts the user to input the value of a (the coeffocient of x2), b ( the coefficent of x), and c (the constant term), and outputs the type of the roots equation. Futhemore, if b2_ 4ac 0, the program should output the root of the quadratic equation (Hint: Use the function pow from the header filecmathto calculate the square root.)Explanation / Answer
please rate - thanks #include #include using namespace std; int main() {double a,b,c; double discriminant,denom; coutRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.