Determine the roots of a second order polynomial prompt the


(Programmed in C++)

MUST BE DISPLAYED AS DOUBLES

COMPLEX ROOTS MUST BE DISPLAYED AS (a+bi) and (a-bi) where a is the real part of the complex root and b is the imaginary part of the complex root

(PROTOTYPE FUNCTION ---- void find_root(double&,double&,double&);

(MUST BE PASS BY REFERENCE) (CAN NOT HAVE ANY CALCULATIONS INSIDE MAIN FUNCTION)

Determine the roots of a second order polynomial. Prompt the user for the coefficients of the polynomial. Your program must have a function named "find_root" that will calculate the roots of the polynomial. You must user pass by reference" to return the roots to the main program.

The function "find_root" need only be called once per execution of the program. All output must be from within the main program. Only three arguments can be used in the function and all must be pass by reference. No global variables can be used.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Determine the roots of a second order polynomial prompt the
Reference No:- TGS02900793

Expected delivery within 24 Hours