Hardware refers to the physical components of a computer like the monitor, keyboard, and mouse. It is composed of various components like the CPU, RAM, hard drive, and others. Hardware is classified by its function into basic components needed for the computer to work and supplementary devices.
Software consists of instructions that control the behavior of computer hardware. There are three main types: application software used by users, programming software used by developers, and system software that manages hardware resources and allows interaction with the operating system. Software is run on hardware but has no physical existence of its own. Hardware and software have an interdependent relationship and require each other to make the computer functional.