Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write a program that prompts the user to input the value of a (the coefficient o

ID: 3527603 • Letter: W

Question

Write a program that prompts the user to input the value of a (the coefficient of x 2 ), b (the coefficient of x), and c (the constant term), and outputs the type of roots of the equation. Furthermore, if b 2 4ac 0, the program should output the roots of the quadratic equation. I need the program to prompt up in a cmd window and ask for the coefficent of the square then ask for the coefficient of x then asks for the constant term at the end of the prompt it needs to say "The equation has complex roots"

Explanation / Answer

#include using namespaces std; int main() { int a,b,c; cout > a >> b >>c; if(b*b-4*a*c ==0) { cout