A computer is a programmable machine that can execute a list of instructions. It has both hardware and software components. The hardware includes the central processing unit (CPU), memory, and input/output devices. The software provides instructions to tell the hardware what tasks to perform and includes both system and application programs. Data is stored in the computer in a format that can be manipulated by the hardware and software.