import java.io.*; public class Quadratic { //Quiz: Write realRoots method here. //realRoots returns true if quadratic has real roots //Driver public static void main(String[] args) { try{ BufferedReader myReader = new BufferedReader (new FileReader("Quiz.txt")); double a = Double.parseDouble(myReader.readLine()); double b = Double.parseDouble(myReader.readLine()); double c = Double.parseDouble(myReader.readLine()); if(realRoots(a,b,c) ) System.out.println("Real roots exist"); else System.out.println("No real roots exist"); }//end try catch(Exception e) { System.out.println(e + " error opening file"); System.exit(1); }//end catch }//end main }//end class