subject

It will take in three inputs: a, b, and c. It will return the roots of the calculation. ax^2+ bx+c= 0 , x= - b± √ b^2-4ac/2a

It will take in three inputs: a, b, and c. It will return the roots of the calculation. It will also have a function, haveImaginaryRoots, that will take in the inputs a, b, and c and return bool, using the formula: b2 – 4ac. If the result is < 0, it has imaginary roots. Otherwise, all the roots are real. If you get imaginary roots, you will have to add ‘i' to the end. se the library for pow and sqrt

Here's a sample run:

Enter a: 1
Enter b: -3
Enter c: 2
The roots are 1 and 2.

Do you want to continue (Y/N)? Y

Enter a: 1
Enter b: 0
Enter c: 9
The roots are 3i and -3i.
Do you want to continue (Y/N)? N

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 00:00
Suppose you have 9 coins and one of them is heavier than others. other 8 coins weight equally. you are also given a balance. develop and algorithm to determine the heavy coin using only two measurements with the of the balance. clearly write your algorithm in the form of a pseudocode using the similar notation that we have used in the class to represent sorting algorithms
Answers: 1
question
Computers and Technology, 23.06.2019 16:30
How to do this programming flowchart?
Answers: 3
question
Computers and Technology, 23.06.2019 19:30
You can apply several different worksheet themes from which tab?
Answers: 1
question
Computers and Technology, 23.06.2019 22:30
Lakendra finished working on her monthly report. in looking it over, she saw that it had large blocks of white space. what steps could lakendra take to reduce the amount of white space?
Answers: 3
You know the right answer?
It will take in three inputs: a, b, and c. It will return the roots of the calculation. ax^2+ bx+c=...
Questions
question
Mathematics, 26.03.2020 19:10
question
Mathematics, 26.03.2020 19:10
question
Mathematics, 26.03.2020 19:10
question
Mathematics, 26.03.2020 19:10
question
Mathematics, 26.03.2020 19:10
Questions on the website: 13722360