An electronic device that processes data and can be programmed with instructions is called a computer. It consists of both hardware and software. Hardware refers to the physical components like the system unit, keyboard, mouse, and monitor. Hardware components are divided into input devices like keyboards and mice, output devices like monitors and printers, storage devices like hard drives, and other components like the microprocessor.