Solved

Assume the Following Variables Have Been Declared as Shown and Given

Question 10

Multiple Choice

Assume the following variables have been declared as shown and given values elsewhere:
double a, b, c;
The discriminant of a quadratic equation is defined to be: Assume the following variables have been declared as shown and given values elsewhere: double a, b, c; The discriminant of a quadratic equation is defined to be:   Which of the following statements will assign the correct value to discriminant?  A) double discriminant = Math.sqrt(b * b - 4 * a * c) ; B) double discriminant = Math.sqrt(b * b)  - 4 * a * c; C) double discriminant = Math.sqrt(b * b)  - Math.sqrt(4 * a * c) ; D) double discriminant = Math.sqrt(b2 - 4ac) Which of the following statements will assign the correct value to discriminant?


A) double discriminant = Math.sqrt(b * b - 4 * a * c) ;
B) double discriminant = Math.sqrt(b * b) - 4 * a * c;
C) double discriminant = Math.sqrt(b * b) - Math.sqrt(4 * a * c) ;
D) double discriminant = Math.sqrt(b2 - 4ac)

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions