Answer:
public static void quad(double a, double b, double c) {
double D = (Math.pow(b, 2)) - (4 * a * c);
if (D<0){
System.out.println("no real solutions");
}
}
Explanation:
The code snippet above implements the function in Java programming language
As required by the question, the line double D = (Math.pow(b, 2)) - (4 * a * c); evaluates b squared" - 4ac and assignes the value to the variable D
An if statement is used to test if D is less than 0, if this is true the message no real solutions is printed
You already wrote the answer. It is Additions
The focal point is where the eye is drawn to in a photo or image.
Answer:
1.) Write the formula, which assigns double x to double n raised to the double z power.
Answer: 2\times x → 2\times n^(2\times z<u>)</u>
2.) Write a formula, which will add 5 to the cube of double t times double n, and assign it to double x.
Answer: 5\plus 2\times t^3→2\times x
3.) Write a formula, which will assign double x to square root of the sum of the squares of the lengths of the two legs of a triangle. Declare double leg1, and double leg2, in order to find the hypotenuse. (Pythagorean Theorem)
Answer: 2\times x → \sqrt \{(l^2)_1 + (l^2)_2\}= hypotenuse
4.) Write a program that find the distance between two values on the number line by taking the absolute value of their difference. Assign the answer to double x. The two numbers have been declared as follows:
double num1, num2
Answer: length = \sqrt\{|num2 - num1\|} → 2\times x
Explanation:
