Samuel Morse invented the telegraph and Morse code in the 1830s-1840s, creating a system of dots and dashes to transmit messages electrically. His code revolutionized long-distance communication. The other options (Mike, Tom, William) are not real inventors associated with this achievement.