A pulse of a sound is transmitted from a ship and the reflection from the…