Question: using c++ Topic 3 DQ 3 Implement a class that models a quadratic equation. The constructor should receive coefficients a, b, and c for the
Topic 3 DQ 3 Implement a class that models a quadratic equation. The constructor should receive coefficients a, b, and c for the equation. Include member functions get Solution 1() and getSolution 20 that calculate and return the solutions, using the quadratie formula. O is returned if no solution exists. getSolution should return the smaller of the two solutions Supply a function that returns false if the discriminant is negative. Post a screenshot of your .h AND .cpp file here
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
