Computer is an electronic device that processes data based on a set of instructions. It takes in raw data as input, processes it under the control of a program, and produces output. The basic components of a modern computer are an input device, output device, and central processing unit. Charles Babbage is considered the grandfather of computers, having designed the first mechanical computer called the Analytical Engine in the 1800s. The four main functions of a computer are to accept data through input, process the data, produce output, and store results.