(1) Implement the class A- Write a C++ program to define a class QuadraticEquation described as follows: ах* + bx +с — 0 Private data fields a, b, and e that represent three coefficients Set function...


(1) Implement the class<br>A- Write a C++ program to define a class QuadraticEquation described as follows:<br>ах* + bx +с — 0<br>Private data fields a, b, and e that represent three coefficients<br>Set function for the three coefficient.<br>Three get methods for a, b, and c.<br>A method named getDiscriminant) that returns the discriminant, which is<br>b2 — 4ас<br>The methods named getRoot10) and getRoot20) for returning two roots of the<br>equation<br>-b + Vb² – 4ac<br>-b - Vb²<br>4ас<br>2a<br>and<br>2a<br>

Extracted text: (1) Implement the class A- Write a C++ program to define a class QuadraticEquation described as follows: ах* + bx +с — 0 Private data fields a, b, and e that represent three coefficients Set function for the three coefficient. Three get methods for a, b, and c. A method named getDiscriminant) that returns the discriminant, which is b2 — 4ас The methods named getRoot10) and getRoot20) for returning two roots of the equation -b + Vb² – 4ac -b - Vb² 4ас 2a and 2a

Jun 10, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here