When the U.S. entered World War II, Hopper, a math and physics expert, wanted to serve her country. At first, the Navy rejected the 34-year-old Hopper for being too old and too petite. But she continued to apply, and in 1943, she left her job as a professor to join the Navy.
In 1944, Hopper joined a team using an early electric computer, the Mark I. Computers were new inventions then. They were designed to solve complex calculations quickly. Before computers, people did calculations for things like weather forecasting and navigation by hand.
Hopper, a Navy lieutenant, was one of the first women to become a computer coder. Coders program, or give instructions to, computers. Instead of typing on a computer’s keyboard like coders do today, Hopper had to punch out her code as lines of holes on paper tape. This tape was fed into the computer, which read it as instructions. Hopper programmed the Mark I to calculate missile paths and prepare ships to find and disarm underwater bombs.