Wednesday, November 6, 2013

Java Programming

/***************************************************************** */ /* */ /* planmer(s): */ /* */ /* Program: Homework #5 - quadratic Solver */ /* get around a line: March 5, 2012 */ /* Course: CSCI 188 Java programing I */ /* */ /* Program Description: Displaying users input values astir(predicate) */ /* the roots of the quadratic polynomial equation.
bestessaycheap.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 avail from the following people: */ /* */ /* sky pilot */ /* */ /* */ /* */ /* I engag e : genna duy ! */ /* */ /***************************************************************** */ import java.util.*; in the public eye(predicate) 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 copious essay, order it on our website: BestEssayCheap.com
If you want to get a full essay, visit our page: cheap essay

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.