{"base":{"id":"great-lovelace","subject":"Computing","title":"Ada Lovelace: the first computer program","scene":"greats3","steps":[{"mode":"portrait","photo":"/scientists/lovelace.jpg","plaque":"Ada Lovelace · 1815–1852","eyebrow":"Meet the scientist","title":"Poetry and numbers","body":"Ada was born in London in 1815, the daughter of the famous poet Lord Byron. Her mother made sure she studied maths and science. Ada called her mix of imagination and maths 'poetical science'."},{"mode":"engine","eyebrow":"The Analytical Engine","title":"A computer made of brass","body":"Charles Babbage designed a steam-powered calculating machine. Numbers were kept on wheels in the Store; the Mill did the sums. Choose two numbers and press Add.","controls":[{"id":"a","label":"First number","min":0,"max":99,"step":1,"value":25},{"id":"b","label":"Second number","min":0,"max":99,"step":1,"value":17}],"actions":[{"id":"add","label":"Add"}]},{"mode":"cards","eyebrow":"Punched cards","title":"Instructions written in holes","body":"Weaving looms used cards with holes to weave patterns. The Engine would read its instructions from cards the same way. Ada said it would weave patterns of numbers. Pick a card.","actions":[{"id":"p0","label":"Heart"},{"id":"p1","label":"Diamond"},{"id":"p2","label":"Squares"}]},{"mode":"loop","eyebrow":"1843 · Note G","title":"Repeat the steps: a loop","body":"Ada's famous program repeated the same group of steps many times. Here is a simple loop: each round adds the next odd number. Watch the total make square numbers.","actions":[{"id":"step","label":"One round"},{"id":"run","label":"Run"},{"id":"reset","label":"Reset"}]},{"mode":"quiz","look":"loop","eyebrow":"Check yourself","title":"Thinking like Ada","body":"Ada saw something Babbage had not fully seen.","question":"What was Ada's big idea?","options":["Machines could handle any symbols","Machines should run on water","Numbers are not useful"],"answer":0,"right":"Correct. She wrote that the Engine might even compose music if notes were written as numbers.","wrong":"Not quite. She imagined the Engine doing far more than sums."}],"more":[{"type":"profile","id":"profile","eyebrow":"Fact file","title":"Ada Lovelace at a glance","photo":"/scientists/lovelace.jpg","alt":"Watercolour portrait of Ada Lovelace in a white dress","credit":"Ada Lovelace in about 1840. Watercolour by Alfred Edward Chalon, public domain.","lead":"Ada wrote the first published program for a general-purpose computer, a hundred years before electronic computers existed, and imagined computers making art and music.","facts":[{"label":"Born","value":"10 December 1815","note":"London, England","color":"#0f8a63"},{"label":"Died","value":"27 November 1852","note":"London, aged 36","color":"#be185d"},{"label":"Famous work","value":"Notes A–G (1843)","note":"longer than the article itself","color":"#5b3fe0"},{"label":"Program","value":"Bernoulli numbers","note":"in Note G","color":"#c2410c"},{"label":"Worked with","value":"Charles Babbage","note":"inventor of the Engines","color":"#2563eb"},{"label":"Honour","value":"Ada Lovelace Day","note":"2nd Tuesday in October","color":"#b45309"}]},{"type":"timeline","id":"timeline","eyebrow":"Her life","title":"Ada, year by year","intro":"Tap an era to show only that part of her life.","allLabel":"All","eras":[{"id":"young","name":"Childhood","color":"#0b6e8a"},{"id":"learn","name":"Learning","color":"#3a7d17"},{"id":"engine","name":"The Engine","color":"#5b3fe0"},{"id":"legacy","name":"Legacy","color":"#be185d"}],"items":[{"year":"1815","era":"young","title":"Born Augusta Ada Byron","body":"Her father, the poet Lord Byron, left England a few months after she was born and died when she was 8. She never knew him."},{"year":"1828","era":"young","title":"Flyology","body":"At 12 she planned a flying machine. She studied birds' wings and different materials, and wrote a little book about it called Flyology."},{"year":"1829","era":"young","title":"Ill for years","body":"After measles she was ill and unable to walk properly for about three years, but kept studying."},{"year":"1833","era":"learn","title":"Meeting Babbage","body":"At 17 she saw a working part of Charles Babbage's Difference Engine at a party. She was fascinated, and they became friends."},{"year":"1830s","era":"learn","title":"Great teachers","body":"She was taught by the scientist Mary Somerville and the mathematician Augustus De Morgan."},{"year":"1835","era":"learn","title":"Countess of Lovelace","body":"She married William King, who became Earl of Lovelace in 1838. They had three children."},{"year":"1843","era":"engine","title":"The Notes","body":"She translated an Italian engineer's French article about the Analytical Engine and added her own Notes, three times as long, including a step-by-step program."},{"year":"1852","era":"engine","title":"An early death","body":"Ada died of cancer aged 36 and was buried beside her father. The Analytical Engine was never built."},{"year":"1953","era":"legacy","title":"Rediscovered","body":"Her Notes were republished just as the first electronic computers appeared, and people realised how far ahead she had been."},{"year":"1980","era":"legacy","title":"A language named Ada","body":"A programming language used for aircraft and safety systems was named Ada in her honour."}]},{"type":"gifts","id":"gifts","eyebrow":"Her legacy","title":"What Ada gave the world","items":[{"year":"1843","title":"The first published program","body":"A complete, step-by-step method for the Engine to calculate Bernoulli numbers.","today":"Every app and game is a program written in steps.","color":"#2563eb"},{"year":"1843","title":"Loops","body":"Her program repeated a group of operations, an idea now called a loop.","today":"Loops are in almost every program, from games to weather forecasts.","color":"#5b3fe0"},{"year":"1843","title":"Computers beyond numbers","body":"She saw that a machine working with symbols could handle music, pictures or letters, not just sums.","today":"Computers now make music, edit photos and translate languages.","color":"#c2410c"},{"year":"1843","title":"Limits of machines","body":"She wrote that the Engine could only do what we know how to order it to do. People still debate this about AI.","today":"A starting point for questions about artificial intelligence.","color":"#0f8a63"},{"year":"Today","title":"A role model","body":"She shows that imagination and maths belong together.","today":"Ada Lovelace Day celebrates women in science and technology.","color":"#be185d"}]},{"type":"cards","id":"myths","eyebrow":"Myth or fact?","title":"Stories about Ada","intro":"Tap a popular story to see what historians say.","items":[{"tag":"Popular story","title":"Ada was the very first programmer.","body":"Babbage wrote some short programs for his Engine before her, but never published them. Ada published the first complete program, and saw further than anyone what computers could do. Historians still debate the title."},{"tag":"Popular story","title":"Ada built a computer.","body":"She designed a program, not a machine. The Analytical Engine was designed by Babbage and never finished, because of cost and engineering problems."},{"tag":"Popular story","title":"Ada only translated someone else's work.","body":"The translation was short. Her own Notes were about three times longer and contained the program and her most original ideas."}]},{"type":"quiz","id":"quiz","eyebrow":"Check yourself","title":"Quick quiz","intro":"Pick an answer. Wrong answers can be tried again.","questions":[{"question":"Who was Ada's father?","options":["Isaac Newton","Lord Byron, a poet","Charles Babbage"],"answer":1,"right":"Correct. She never really knew him.","wrong":"Not quite. He was a famous poet."},{"question":"What did the Mill of the Analytical Engine do?","options":["Stored numbers","Did the calculations","Ground flour"],"answer":1,"right":"Correct. The Store held numbers; the Mill worked on them.","wrong":"Not quite. The Store held numbers."},{"question":"Where would the Engine read its instructions from?","options":["Punched cards","A keyboard","A screen"],"answer":0,"right":"Correct. The idea came from weaving looms.","wrong":"Not quite. Think about cards with holes."},{"question":"What is a loop in a program?","options":["A mistake","Steps that repeat","A type of wire"],"answer":1,"right":"Correct. Like adding the next odd number again and again.","wrong":"Not quite. Think about the odd-number program."},{"question":"1 + 3 + 5 + 7 = ?","options":["16","14","15"],"answer":0,"right":"Correct. 4 rounds give 4 × 4 = 16.","wrong":"Not quite. Adding the first four odd numbers gives a square number."}]},{"type":"checklist","id":"can-explain","eyebrow":"Your progress","title":"I can explain…","items":["who Ada Lovelace was and when she lived","what the Store and the Mill of the Analytical Engine did","how punched cards could hold instructions","what a loop is, with an example","why Ada's idea of computers handling any symbols was so important"]},{"type":"keywords","id":"keywords","eyebrow":"Words to know","title":"Key words","items":[{"word":"Program","meaning":"A list of instructions a computer follows, step by step."},{"word":"Algorithm","meaning":"A set of steps to solve a problem."},{"word":"Loop","meaning":"A part of a program that repeats."},{"word":"Punched card","meaning":"A card where holes stand for instructions or data."},{"word":"Analytical Engine","meaning":"Babbage's design for a general-purpose mechanical computer."},{"word":"Symbol","meaning":"A mark that stands for something, like a number, letter or note."}]},{"type":"sources","id":"sources","title":"Sources","items":["L. F. Menabrea, Sketch of the Analytical Engine, translated with Notes by A. A. L. (Ada Lovelace), 1843.","Christopher Hollings, Ursula Martin and Adrian Rice, Ada Lovelace: The Making of a Computer Scientist (Bodleian Library, 2018).","Science Museum, London: Babbage's engines; Computer History Museum.","Portrait: Alfred Edward Chalon (c. 1840), Wikimedia Commons, public domain."]}]},"overlay":null}