Course Solutions Uncategorized (Solved) : Java Design Class Called Quadraticequation Quadratic Equation Ax2 Bx C 0 X B B2 4ac 2a Uml Q29139730 . . . .

(Solved) : Java Design Class Called Quadraticequation Quadratic Equation Ax2 Bx C 0 X B B2 4ac 2a Uml Q29139730 . . . .

 

IN java

Design a class called QuadraticEquation for a quadraticequation

ax2+ bx + c= 0

x = ?b -+ ?(b2 ? 4ac)/2a

Here is the UML for the class:

Quadratic Equation

– double a

-double b

-double c

QuadraticEquation(double a, double b, double c)

+getA(): double

+getB(): double

+getC(): double

+setA(double a): void

+setB(double b): void

+setC(double c):void

+getDiscriminant(): double// returns the discriminant, returnszero if it is negative

+getRoot1(): double//return zero if the discriminant isnegative

+getRoot2(): double//return zero if the discriminant isnegative.

+equals(QuadraticEquation e): boolean

+getE

quation(): String. This method needs to return the equation inthe form of

: example:

3×2+ 4x + 7= 0

+toString(): String

2.Create a text file using notepad to include the coefficientsa, b, and c for 10 different equations

3.Create a

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post