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, 22.06.2019 23:30
What are listed in the vertical columns across the top of the event editor? a. file names b. conditions c. check marks d. action types
Answers: 1
question
Computers and Technology, 23.06.2019 16:30
Which of the following is not an enhancement to the standard wiki to make it more attractive for corporations? encryptionwork spacespermission toolspredictive text
Answers: 2
question
Computers and Technology, 24.06.2019 03:30
What is the purpose of a computer network needs assessment? to analyze which workers need more training to improve their performance to compare worker productivity to determine what steps employees can take to increase company revenue to evaluate how to move from the current status to the desired goal
Answers: 2
question
Computers and Technology, 24.06.2019 07:20
3pointsyou've found an image you want to insert into your slide presentation. youwant to make the image look more gray so that it looks like an older imagewhat would you need to adjust? 0.00o a. sizeo b. hueo c. contrasto d. tones
Answers: 2
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
History, 30.05.2020 09:58
question
Mathematics, 30.05.2020 09:58
question
Mathematics, 30.05.2020 09:58
question
Social Studies, 30.05.2020 09:58
Questions on the website: 13722363