subject

The roots of the quadratic equation ax² + bx + c = 0, a ≠ 0 are given by the following formula: Quadratic Formula
In this formula, the term b² - 4ac is called the discriminant. If b² - 4ac = 0, then the equation has a single (repeated) root. If b² - 4ac > 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)
c (the constant term)
The program then outputs the type of roots of the equation.

Furthermore, if b² - 4ac ≥ 0, the program should output the roots of the quadratic equation.

(Hint: Use the function pow from the header file cmath to calculate the square root. Chapter 3 explains how the function pow is used.)

Format your output with a decimal precision of 2.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 24.06.2019 00:30
Which boolean operator enables you to exclude a search term? a} not b} and c} or d} plus
Answers: 1
question
Computers and Technology, 24.06.2019 16:50
How many types of string types does python support?
Answers: 1
question
Computers and Technology, 24.06.2019 22:30
Telling a computer that is already on to turn again is known as what type of boot?
Answers: 1
question
Computers and Technology, 25.06.2019 04:00
Use the wrap text icon to modify which graphic appears in the front of layered images modify the picture effects change the way text is wrapped around an object apply wordart to the text
Answers: 1
You know the right answer?
The roots of the quadratic equation ax² + bx + c = 0, a ≠ 0 are given by the following formula: Qu...
Questions
question
Mathematics, 18.11.2020 04:10
question
Mathematics, 18.11.2020 04:10
question
Mathematics, 18.11.2020 04:10
question
English, 18.11.2020 04:10
question
Engineering, 18.11.2020 04:10
question
English, 18.11.2020 04:10
question
Mathematics, 18.11.2020 04:10
question
Business, 18.11.2020 04:10
question
English, 18.11.2020 04:10
question
Mathematics, 18.11.2020 04:10
Questions on the website: 13722359