A computer is an electronic device that processes data into useful information by following programmed instructions. Early mathematicians in the 17th century tried to build machines for basic math functions. In 1804, Charles Babbage designed the difference engine, which had a mechanical memory. Computers have since progressed through generations based on technological advancements - from vacuum tubes to transistors to integrated circuits and microprocessors - making them smaller, faster, and more efficient. Today, supercomputers are the most powerful for complex tasks, mainframes are for large organizations, and personal computers are most common.