Question: Cannot see output on text file. Using Java on Netbeans. 110 polynomia!Evaluator . NetBeans lDE&2 p(-T0 - Noteped File Edit Fomat View Help p(x)0.0 File

Cannot see output on text file. Using Java on Netbeans.

Cannot see output on text file. Using Java on Netbeans. 110 polynomia!Evaluator

110 polynomia!Evaluator . NetBeans lDE&2 p(-T0 - Noteped File Edit Fomat View Help p(x)0.0 File Edit View Navigate Source Refactor Run Debug Profile Team Tools Window Help Files Servi| -| Start PagePolynomialEvaluator java x Source Syatem.out.print("Enter the degree of the polymomial (deg p) int deg.nextInt double coerro new double deg+1] System.out.print ("Enter coefficients of p(x) deacendina powe tor (1MT 1-0:1(Coetta. 1ength:1++) 79 Scurce Packages Test Padkages 81 Test Lbraries 83 84 85 86 87 coeffsti1-c.nextDouble Source Packages ystem.aut.print ("Enter x to comput p(x) doublex-se.nextInt ystem.aut.print ("Enter the output file name ->" sc.nexcLine String filenan .nextLine System.out.princ n" default package > ttra 159 proj)1.2ip.zp 188 89 Test Padkages Ei leNriter oucFile new FileWriter{"filenarie.txt"); PrintWriter FM- new PrintNriter (outFile) String result = ("p(x) " +polyToString[coefta)) ; pw. print in (result) ; pw.print ("p!"+8+") = " + hornerEval{coetta, x}) pw-printin("n" pw.wrire (result) pw.close outFile. close () ; Test Lbrariss 93 94 95 96 Source Packages Test Packages Librarnes V100 main - Navigator X -102 104 105 hornerEva (double coeff, man(String[]args) Output-PolynomiaEvaluator (run) Enter the degree of the poiynconiadag pi-> Eacez the ouput file8- p(-O.EX Intec the degree of th. Polynonial deg pl -y 0 gnser coefficiens, of p(x) descending power, -> -s Enter compute pi -> e Enter the output tile nameD-5.tnt Enter the degree of the polynonia2 dog pi-> I Enter the output file naa -> P ( 5) 2-4. tut Rncer eo-fficient" of P(x> descending Pauer. gnser50 compute plx)->-2 Enter the output file name-D-2120-310.cxt 2 0-3 1 0 Clements BUILD SUCCESSFUL (total time : 1 minute econd

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!