Write down the definition of a function termed as quadratic which receives three double parameters a, b, c. If the value of a is entered as 0 then the function prints the message "no solution for a=0" and returns. In case, the value of "b squared" 4ac is negative, then code prints out the message "no real solutions" and returns. On the other hand, the function prints out the largest solution to quadratic equation.