Grace Hopper, a computer scientist at Harvard University, and her team discovered the first actual bug, a moth, in the Mark II Calculator in 1947.