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:
head and give four reason for your choice
Answer:
C). rearview mirror (at least of four inches by four inches).
Explanation:
<u>A 'rearview mirror' would be needed in case one is required to pull an individual on water skis after a PWC(personal watercraft) that is rated for carrying two persons only</u>. This wide-angle mirror for rearview would allow the operator to monitor the person who is being towed constantly along with riding the ski at the same time. It is considered illegal to tow a person on a vessel without having a rearview mirror and at the same time, the limited capacity must also be followed strictly. Hence, <u>option C</u> is the correct answer.