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
PayPal Gateway not configured
PayPal Gateway not configured