A computer accepts data as input, processes it, produces output, and stores information. It has both hardware and software components. The hardware includes input devices like keyboards and mice, the central processing unit (CPU) which contains the arithmetic logic unit and control unit, primary memory like RAM and ROM, secondary memory like hard drives, and output devices like monitors. The software includes system software that controls the computer and application software that helps users perform tasks. Computer data is measured in bits, bytes, kilobytes, megabytes, and other units, while CPU speed is measured in hertz and megahertz.