Hardware is the physical components of a computer system and includes input devices like keyboards and mice, processing devices like the central processing unit (CPU) and memory, output devices like monitors and printers, and storage devices like hard drives. Software refers to the programs and other operating information used by hardware. A computer accepts data as input, processes it, and produces output using both its hardware and software.