Answer:
public static int average(int j, int k) {
return (int)(( (long)(i) + (long)(j) ) /2 );
}
Explanation:
The above code returns the average of two integer variables
Line 1 of the code declares a method along with 2 variables
Method declared: average of integer data type
Variables: j and k of type integer, respectively
Line 2 calculates the average of the two variables and returns the value of the average.
The first of two integers to average is j
The second of two integers to average is k
The last parameter ensures average using (j+k)/2
Answer:
Relative density = 0.7 or 70%
Explanation:
The following information was provided by this question
Pd = 1.72mg/mg³
Pd max = 1.81 mg/mg³
Pd min = 1.54 mg/mg³
We substitute into the formula. This formula is contained in the attachment.
[(1/1.54)-(1/1.72)]/[1/1.54 - 1/1.81]
= 0.649350 - 0.581395 / 0.649350 - 0.552486
= 0.067955/0.096864
= 0.7015
= 0.7
The relative density is Therefore 0.7 or 70% when converted to percentage
Answer:
12
Explanation:
5 • 3 = 15
3 • 3 = 9
4 • 3 = 12