Question: Program 1- COSC 113.101 Due Wednesday, September 12 Write a complete C++ program to report on the roots of quadratic equations of the form ax2
Program 1- COSC 113.101 Due Wednesday, September 12 Write a complete C++ program to report on the roots of quadratic equations of the form ax2 + bxc-0, at 0. The formula for the roots is 242 3 57 t 23 If the discriminant, b - 4ac, is zero, there is a single real root. If b-4ac > 0, there are two real roots. If b - 4ac 0, the program can compute the roots. (When b-4ac = 0, the root value(s). The output is written to a file. Tip: Functions in the header file cmath can be used to raise a value to a power, and to compute the square root
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
