QuestionAsk Questions?

Develop a java program to find the roots of a quadratic equation ax2+bx+c=0, with the following specification :- Class name :- Quad Data members float a,b,c,d, with a,b,c are the co-efficient & d is the discriminant, x & x2 are the roots of the equation Member methods ? Quad (int x, int y, int z) to initialize a=x, b=y, c=z & d=0. Void calw ( )- to find d = b2 ? 4ac If d>0, then print ? root not possible;? otherwise, find & print x1 = (-b+?d)/2a & x2 = (-b-?d)/2a

View Answers

Related Tutorials/Questions & Answers:

Advertisements