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 07:10
If you want to import a picture into a dtp application, what must you do first? draw an image frame. import text. open the folder containing the file. select get image… from the windows menu.
Answers: 2
question
Computers and Technology, 23.06.2019 12:10
2. fabulously fit offers memberships for$35 per month plus a $50 enrollmentfee. the fitness studio offersmemberships for $40 per month plus a$35 enrollment fee. in how many monthswill the fitness clubs cost the same? what will the cost be?
Answers: 1
question
Computers and Technology, 23.06.2019 12:20
When guido van rossum created python, he wanted to make a language that was more than other programming languages. a. code-based b. human-readable c. complex d. functional
Answers: 1
question
Computers and Technology, 23.06.2019 12:30
How is the brightness of oled of the diaplay is controled
Answers: 1
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
Physics, 24.02.2022 01:00
question
Mathematics, 24.02.2022 01:00
question
Biology, 24.02.2022 01:00
question
World Languages, 24.02.2022 01:00
Questions on the website: 13722360