The Difference Engine was designed for mathematical calculations
Babbage envisioned and began to design something he called the Analytical Engine which would use punch cards
The punch cards would determine what the "engine" would do
Similar to configuring the Jacquard loom pattern but using punch cards to configure calculations
Ada Lovelace
Lord Byron's daughter Augusta Ada King, Countess of Lovelace, is credited with developing an algorithm for the Analytical Engine to calculate a sequence of Bernoulli numbers
She is considered by many to be the first computer programmer