A computer is an electronic device that can store, retrieve, and manipulate data. It has basic components like an input unit, output unit, CPU, memory, and control unit. Common input devices include keyboards, mice, and scanners, while output devices include monitors, printers, and plotters. The CPU contains a microprocessor, memory, and expansion slots to perform computations and transfer data and signals. Memory is used to store data, instructions, and results.