Hardware: Computer hardware refers to the physical components that make up a computer system. Examples of hardware components are the motherboard, the Central Processing Unit (CPU), random access memory (RAM) to run programs, the computer’s power supply, a video card, a hard drive to store information, peripherals (keyboard, mouse, screen, printer etc) so as to provide user interaction, and more.
Software: The purpose of software is to instruct the hardware components what to do. Software is basically computer code that runs on the computer and includes the operating system as well as all the applications installed on the computer.
Program Input: A program often needs input data that is supposed to be processed. Such data can be provided by the user or read from the hard disk for example.