I need a MIPS code that will find the roots of the quadratic equation ax2 + bx + c = 0 , where a, b,
and c are entered by the user as integer values. Once read, these integer values should be stored in
$a0, $a1, and $a2, respectively. The main code should call a procedure roots that computes the
roots of the quadratic equation as double-precision floating point numbers. The roots procedure
should return the real part of the roots in the ($f1$f0) and the ($f3$f2) pairs. If there are
imaginary parts to the roots (i.e., the part that is multiplied by
i = sqrt(-1)
), then they should be returned
by the roots procedure in the ($f5$f4) and the ($f7$f6) pairs. A zero value in the ($f5$f4)
and the ($f7$f6) pairs signify that the roots do not have an imaginary part (i.e., the roots are real).
After returning from the roots procedure call, the main code should print the results by first printing
the nature of the roots (i.e., two distinct real roots, duplicate real roots, or two distinct complex
roots), then printing the values of the roots. Print each root value as two parts; real and imaginary.