Assignment: Write a C++ program that reads in the coefficients of the quadratic equation and prints the roots. Hints: Quadratic Equation: ax2+bx+c=0 Roots of the given equation can be obtained using...


Assignment:<br>Write a C++ program that reads in the coefficients of<br>the quadratic equation and prints the roots.<br>Hints:<br>Quadratic Equation: ax2+bx+c=0<br>Roots of the given equation can be obtained using<br>-bz vb-4ac<br>the formula:<br>2a<br>Therefore,<br>Root 1<br>and<br>2a<br>Root 2<br>2a<br>Calculated value Output of the program<br>Root 1 Root 2<br>Root 1<br>Root 2<br>x+5x +6 0<br>x- 2x -8 - 0<br>x-6x-27 0<br>

Extracted text: Assignment: Write a C++ program that reads in the coefficients of the quadratic equation and prints the roots. Hints: Quadratic Equation: ax2+bx+c=0 Roots of the given equation can be obtained using -bz vb-4ac the formula: 2a Therefore, Root 1 and 2a Root 2 2a Calculated value Output of the program Root 1 Root 2 Root 1 Root 2 x+5x +6 0 x- 2x -8 - 0 x-6x-27 0

Jun 10, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here