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) { coutRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.