Question: Write the Pseudocode for the following problem.Do Not write the Java code... e very brief 1. 3.1 (Algebra: solve quadratic equations) The two roots of
Write the Pseudocode for the following problem.Do Not write the Java code... e very brief 1. 3.1 (Algebra: solve quadratic equations) The two roots of a quadratic equation ax + br + e Ocan be obtained using the following formula: lac 2a 2a 0-4ac is called the diseriminant of the quadratic equation. If it is positive, the equation has two real roots. If it is zcro, the equation has one root. Ifit is negative, the equation has no real roots Write a program that prompts the user to enier values for a, b, and e and displays the result hased on the discriminant. If the discriminant is positive, display two roots. If the discriminant is 0, display one root. Otherwise, display The equation has no real roots" Note that you can use Nath.powCx, 0.5) to compute Vi. Here are some sample runs. Enter a, b, c: 1.0 3 1 The equation has two roots-0.381966 and-2.61803 Enter a, b, c: 12.01 pm The equation has one root -1 Enter a, b, c: 1 2 3 The equation has no real roots
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
