Frequency of the whistle is given as
Speed of wind is given as
Speed of sound in still air is given as
Effective speed of the sound for an observer standing on the platform can be calculated as,
Because the source and the observer have no relative motion, the frequency of the sound received by the observer will be the same.
So,
Wavelength of the sound heard by the observer speed of wave/frequency
There is a relative motion between the observer and the source with regard to the medium when the air is motionless and the observer sprints towards the yard at a speed of .
The medium is at rest. So we have
The change in frequency,
Wavelength
Obviously, the situations in the two cases are entirely different.