My teacher wants me write c++ statements that computes the value of (-b + (b^2-4ac)1/2 )/2a and assigns the result to y. Here a, b, c, and y are variables of type float. Assume there is a function sqrt that computes power 0.5 so that sqrt(16) evaluate to 4.
I have no idea where or how to start. Please help!