(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.