A computer program

This section explains what a computer program in simple terms and with everyday objects.

Key statements:

A computer program is a collection of instructions that a computer needs to follow in order to complete a specific task or to solve a particular problem. 

One can compare a computer program to a food recipe required to prepare a particular kind of food. If you take it to your personal life, the list of steps you take to complete a task at work is your program. 

Now, in order for the computer to understand the instructions, you need to speak its language. A programming language is a set of formal constructs or statements and expressions following a set of rules called syntax. Based on those rules, meanings (called semantics) are attached to the expressions in order to complete a task. 

Examples of programming languages are C, Python, JavaScript, Java, and many more.