In 1842, a young woman by the name of Ada Lovelace, a British mathematician and daughter of Lord Byron, wrote what is considered to be the first computer program. Not to be confused with Grace Hopper, an American scientist that invented the first compiler, Ada Lovelace wrote a set of notes that showed how Charles Babbage’s theoretical Analytical Engine could calculate Bernoulli’s numbers.
In simplest terms, it was the birth of the stepwise sequence of operations for solving certain mathematical problems and in conjunction with Charles Babbage, a path was written for the first executable computer program algorithm.
Lastly, one very important detail about Ada Lovelace and her contribution to computer science is that upon writing the path, she did go on to say the engine “'might act upon other things besides number... the Engine might compose elaborate and scientific pieces of music of any degree of complexity or extent" which gave way to the notion that there was immense, profound potential for engines or machines alike, outside of calculations and mathmatics.
(Click to Enlarge)