Java program Roots of Quadratic Equation
The solution or root of quadratic equation is found by the Java programming code. The equation coefficient a,b,c are inputs and returns x1 and x2 are roots of the equation. Quadratic Equation and Solution Quadratic Equation - Java programming code The Java program is to find root of quadratic equation. The coefficients of the quadratic equation are input of the program. They are read from user at run time and returns solutions x1 and x2 as root of the quadratic equation. import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class QuadtraticEqu { public static void main(String[] args) throws IOException { InputStreamReader dis = new InputStreamReader ( System.in ); BufferedReader br = new BufferedReader(dis); System.out.println( "Root of Quadratic Equation" ); System.out.println( "Enter value for a" ); String arg1 =br...