Write a c program that prompts the user for the coefficient


Write a C++ program that prompts the user for the coefficient of the quadratic term, the coefficient of the linear term, and the constant term of a quadratic equation. Your program should then compute and display the roots of the quadratic equation. All numeric values in the output should be displayed with five decimal places and the input and output MUST be formatted as below. Name your source file quadraticsolver.cpp.

Your program interactions should appear as shown in the sample run. Be sure to format the output of your program exactly as shown below.

Sample Run 1:

Enter the coefficient of the quadratic term>2.5

Enter the coefficient of the linear term>5

Enter the constant term>2.5

The solution to the equation 2.50000x^2 + 5.00000x + 2.50000 = 0.00000 is {-1.00000, -1.00000}.

Request for Solution File

Ask an Expert for Answer!!
Other Subject: Write a c program that prompts the user for the coefficient
Reference No:- TGS0666225

Expected delivery within 24 Hours