Question: Prepare a C++ program that will output the solution to the quadratic equation for any range of integer coefficients.
The program should allow the user to input the particular integer coefficients of the quadratic equation and properly output either real or complex number solutions for the roots of the equation (as mathematically necessary for the particular coefficients selected by the user). Note that complex components of a solution are x + yi where x and y are real numbers and i is a symbol representing the sqrt(-1).
implied tasks
- prompt user for the coefficients
- comment the code
-determine the form of the output dependent on the coefficients being input.
Add comments in code section. Code this program in C++ programming.