40m/s will be reduced to 0m/s in 4 seconds. 4 seconds x 40m/s would be 160m up, but you will only get half of that because you decelerate linearly to 0m/s. This leaves you with 4 x 20 = 80m.
In both cases, energy will move from an area of higher temperature to an area of lower temperature. So, the energy from room-temperature air will move into the cold water, which warms the water.