A computer is an electronic device that processes data using programs and binary language. Its main components include the motherboard, input unit, CPU, GPU, RAM, and output unit, each serving specific functions in data processing and computation. The CPU, often referred to as the brain of the computer, manages the execution of instructions via its arithmetic logic unit, control unit, and memory registers.