Answer with Explanation:
The general equation of simple harmonic motion is

where,
A is the amplitude of motion
is the angular frequency of the motion
is known as initial phase
part 1)
Now by definition of velocity we have

part 2)
Now by definition of acceleration we have

part 3)
The angular frequency is related to Time period 'T' as
where
is the angular frequency of the motion of the particle.
Part 4) The acceleration and velocities are plotted below
since the maximum value that the sin(x) and cos(x) can achieve in their respective domains equals 1 thus the maximum value of acceleration and velocity is
and
respectively.
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