Question: The book I am using is this Data Structures and Other Objects Using C++ (4th Edition) Chapter #2 (Classes) Do problem #8 & #9 (Page

The book I am using is this Data Structures and Other Objects Using C++ (4th Edition) Chapter #2 (Classes) Do problem #8 & #9 (Page 91) in our textbook. Ignore the part of the problem that talks about overloading operators. We will do this next class. Call your class quadraticExpression. Your private data will be a, b, c. Make them doubles. Create an enumerated list with o NO_ROOTS = 0 o ONE_ROOT = 1 o TWO_ROOTS = 2 o INFINITE_ROOTS = 3 Write the constructor as stated in the book Write the changeCoeeficients as stated in the book Write the getACoeeficient, getBCoeeficient, getCCoeeficient as inline constant functions Write evaluate function to take a double a return a double. Constant function. Write getNumberOfRoots function to return an integer. Constant function. Write getFirstRoot and getSecondRoot to return the first and second roots. Return a domain_error is there is no first or second root. Constant Functions. Thank you for any help.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!