Create a C++ program that will accept three inputs - the coefficients 'a, b, and c' of a quadratic equation and compute the roots of the equation using the given formulas. -b + vb2-4ac rootl 2a -b-...


Create a C++ program that will accept three inputs - the coefficients 'a, b, and c' of a quadratic<br>equation and compute the roots of the equation using the given formulas.<br>-b + vb2-4ac<br>rootl<br>2a<br>-b- vb2-4ac<br>root2<br>2a<br>rules:<br>No equation if a and b is equal to 0<br>If a is 0 calculate the single root equation to -c/b and display the single root<br>If two statement is not qualified compute for discriminant<br>If discriminant is less than 0 display, there are no roots<br>If discriminant is greater than 0 use the formula and display the two roots<br>If discriminant is 0 calculate the root equal to -b/(2a)<br>

Extracted text: Create a C++ program that will accept three inputs - the coefficients 'a, b, and c' of a quadratic equation and compute the roots of the equation using the given formulas. -b + vb2-4ac rootl 2a -b- vb2-4ac root2 2a rules: No equation if a and b is equal to 0 If a is 0 calculate the single root equation to -c/b and display the single root If two statement is not qualified compute for discriminant If discriminant is less than 0 display, there are no roots If discriminant is greater than 0 use the formula and display the two roots If discriminant is 0 calculate the root equal to -b/(2a)

Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here