![subject](/tpl/images/cats/informatica.png)
Computers and Technology, 11.10.2021 19:50 amoakoh800003
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](/tpl/images/cats/User.png)
Answers: 3
![](/tpl/images/ask_question.png)
![](/tpl/images/ask_question_mob.png)
Another question on Computers and Technology
![question](/tpl/images/cats/informatica.png)
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](/tpl/images/cats/informatica.png)
Computers and Technology, 24.06.2019 16:50
How many types of string types does python support?
Answers: 1
![question](/tpl/images/cats/informatica.png)
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](/tpl/images/cats/informatica.png)
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](/tpl/images/cats/mat.png)
Mathematics, 18.11.2020 04:10
![question](/tpl/images/cats/mat.png)
Mathematics, 18.11.2020 04:10
![question](/tpl/images/cats/mat.png)
Mathematics, 18.11.2020 04:10
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/en.png)
English, 18.11.2020 04:10
![question](/tpl/images/cats/fizika.png)
![question](/tpl/images/cats/User.png)
Engineering, 18.11.2020 04:10
![question](/tpl/images/cats/fizika.png)
![question](/tpl/images/cats/en.png)
English, 18.11.2020 04:10
![question](/tpl/images/cats/en.png)
English, 18.11.2020 04:10
![question](/tpl/images/cats/mat.png)
Mathematics, 18.11.2020 04:10
![question](/tpl/images/cats/biologiya.png)
![question](/tpl/images/cats/ekonomika.png)
Business, 18.11.2020 04:10
![question](/tpl/images/cats/en.png)
English, 18.11.2020 04:10
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 18.11.2020 04:10
![question](/tpl/images/cats/mkx.png)
![question](/tpl/images/cats/istoriya.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 18.11.2020 04:10