Answer:
The maximum vertical displacement is 2.07 meters.
Step-by-step explanation:
We can solve this problem using energy. Since there is a frictional force acting on the block, we need to consider the work done by this force. So, the initial potential energy stored in the spring is transferred to the block and it starts to move upwards. Let's name the point at which the block leaves the ramp "1" and the highest point of its trajectory in the air "2". Then, we can say that:

Where
is the elastic potential energy stored in the spring,
is the kinetic energy of the block at point 1,
is the gravitational potential energy of the block at point 1, and
is the work done by friction at point 1.
Now, rearranging the equation we obtain:

Where
is the spring constant,
is the compression of the spring,
is the mass of the block,
is the speed at point 1,
is the acceleration due to gravity,
is the vertical height of the block at point 1,
is the coefficient of kinetic friction,
is the magnitude of the normal force and
is the displacement of the block along the ramp to point 1.
Since the force is in an inclined plane, the normal force is equal to:

Where
is the angle of the ramp.
We can find the height
using trigonometry:

Then, our equation becomes:

Plugging in the known values, we get:

Now, we can obtain the height from point 1 to point 2 using the kinematics equations. We care about the vertical axis, so first we calculate the vertical component of the velocity at point 1:

Now, we have:

Finally, the maximum vertical displacement
is equal to the height
plus the vertical displacement
:

It means that the maximum vertical displacement of the block after it becomes airborne is 2.07 meters.