Question: Programming Exercise 4-7? Programming Exercise 4-7 Instructions main.cpp i + Summary 1 finclude kiostrean> The roots of the quadratic equation ax+ bx +c 0,at0are given

Programming Exercise 4-7?
Programming Exercise 4-7 Instructions main.cpp i + Summary 1 finclude kiostrean> The roots of the quadratic equation ax+ bx +c 0,at0are given by the following formula: dlil using nanespace std; Write your natn here return 0a 2a In this formula, the term b-4ac is called the discriminant. If b 4ac - 0, then the equation has a single (repeated) root. If bi- dac s 0, the equation has two real roots. If b. 4ac 0, the equation has two complex roots. Instructions Write a program that prompts the user to input the value of . a (the coefficient of x . b(the coefficient of x) ctthe constant term) e program then outputs the type of roots of the equation Th Furthermore, if b2-4ace 0, the program should output the roots of the quadratic equation (Hint: Use the function pox from the header file cnath to calculate the square root Chapter 3 explains how the function pow is used.) Grading When you have completed your program, click the Submit button to record your score O Type here to search
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
