subject
Mathematics, 01.10.2019 01:20 legendman27

Write a function for computing the roots using the following function header: int compute_roots(double a, double b, double c, double& x1, double& x2) the arguments a, b, c are the coefficients of the quadratic equation, and x1 and x2 are possible computed roots of the equation (depending on the return value). the return value of this function could be one of the numbers: 0 == no roots 1 == one root 2 == two real roots 3 == infinite number of roots 4 == no real roots you should save the return value in a variable, say, nroots and use it later in a switch statement switch(nroots). do not include any input or output statement inside all input/output statements should be in main() only. (b) test your function in main() for five different quadratic equations. use the included flow chart when writing the function.

ansver
Answers: 2

Another question on Mathematics

question
Mathematics, 21.06.2019 15:00
In which figure is de bc ? a. figure 1 b. figure 2 c. figure 3 d. figure 4
Answers: 1
question
Mathematics, 21.06.2019 15:20
The vertices of a rectangle are given in the columns of the matrix . if is found to perform a transformation, what are the coordinates of the transformed rectangle? (0, 0), (0, –3), (–3, –3), (–3, 0) (0, 0), (0, 3), (3, 3), (3, 0) (0, 0), (0, 3), (–3, –3), (–3, 0) (0, 0), (0, 3), (–3, 3), (–3, 0)
Answers: 1
question
Mathematics, 21.06.2019 18:30
Which statement justifies why angle ebc measures 90?
Answers: 3
question
Mathematics, 21.06.2019 19:20
Is the product of two rational numbers irrational or rational? first, make a hypothesis by multiplying two rational numbers. then, use variables such as x=a/b and y=c/d and the closure property of integers to prove your hypothesis.
Answers: 1
You know the right answer?
Write a function for computing the roots using the following function header: int compute_roots(dou...
Questions
Questions on the website: 13722359