Final answer:
Ada Lovelace wrote the first computer program, which was intended for implementation on Charles Babbage's Analytical Engine to compute Bernoulli numbers.
Step-by-step explanation:
The first computer program was devised and written by Ada Lovelace, a 19th-century mathematician. Lovelace worked with Charles Babbage on his invention, the Analytical Engine, and she was the one who recognized that this machine had applications beyond pure calculation. In her notes, she described an algorithm for the Analytical Engine to compute Bernoulli numbers. It's considered the first published algorithm intended for implementation on a computer, so Ada is often regarded as the first computer programmer.
Learn more about First Computer Program