Need help with an assignment solving a quadratic formula in a program. Solve the following quadratic equation for variable x: ax2 + bx + c = 0 taking into consideration all possible solutions.Clearly state the problem. What values need to be supplied by the user of the program? Do you need to place any restrictions on user input (input validation)? If so, specify the conditions. Analyze different kinds of methods (at least 3) that can be used solve a quadratic equation. If your math is rusty, do some internet research or dig up your old algebra book. Is any one of the methods more suitable than the others, from the software development point of view? If so, which one? and why? Select the most suitable method for solving this problem. Are there any 'special cases' that you need to consider? If so, enumerate them. Analyze different ways of presenting output to the user. For example, compare the difficulty of presenting the solution in this form: x1 = -3 x2 = -2 as opposed to this form: The two real solutions of the equation x^2 + 5x + 6 = 0 are -3 and -2 Select output representation (possibly, but not necessarily one of the above) that balances programming complexity and user friendliness. Use instructor-designated design-stage tool(s) to specify the complete algorithm. Are there any calculations performed several times? If so, design your program so the repetition is avoided.
Join our real-time social learning platform and learn together with your friends!