Computers work through the interaction of hardware and software. Hardware refers to the physical parts of a computer like the central processing unit, random access memory, hard disk drive, and motherboard. Software contains the instructions that tell the hardware what tasks to perform by processing inputs and creating outputs.