.

Thursday, September 12, 2013

Java Programming

/***************************************************************** */ /* */ /* planmer(s): */ /* */ /* Program: Homework #5 - quadratic Solver */ /* sound a line: March 5, 2012 */ /* Course: CSCI 188 Java schedule I */ /* */ /* Program Description: Displaying users input values some */ /* the roots of the quadratic polynomial equation.
Ordercustompaper.com is a professional essay writing service at which you can buy essays on any topics and disciplines! All custom essays are written by professional writers!
*/ /* */ /* I received jock from the following people: */ /* */ /* sky pilot */ /* */ /* */ /* */ /* I obligation : genna duy ! */ /* */ /***************************************************************** */ import java.util.*; unrestricted class QuadraticEquation { unmoving Scanner sc=new Scanner(System.in); public reprise a,b,c,X1,X2; //get user inputs public void input(){ System.out.println(Enter values of Quadratic Equation : ax2+bx+c=0); System.out.print(a : );a=sc.nextDouble(); System.out.print(b : );b=sc.nextDouble(); System.out.print(c : );c=sc.nextDouble(); } //calculating discriminant public double discriminant() { return (Math.pow(b,2)-(4*a*c)); } //for real roots public...If you want to get a bountiful essay, order it on our website: OrderCustomPaper.com

If you want to get a full e ssay, visit our page: write my paper

No comments:

Post a Comment