Assignment (1) - Phase (1)

CS1440 Due Friday Feb. 2


1.Design the algorithm and draw the flowchart to solve the quadratic equation:


y = ax2+bx+c

The solution to a 2nd order quadratic equation, y = ax2+bx+c, is:


In our case, a, b, and c are input real values.


Your algorithm must consider all possible solutions and must be able to solve all possible cases and/or display appropriate message for the cases that is unable to solve.


You will ask at the beginning for the number of equations that you want to solve and properly display the answer for each equation.




How many equations to you want to solve:

Enter values for a, b, and c (separate by a blank space):


Your answer to equation 1 is: ..


Repeat the same thing for the next equation.