What is Programming?

Programming means a set of instructions that are fed into a computer or rather a machine. Now you may think-

How it will work?

If I give you an example you can easily understand the Subject. Suppose you are reading this blog on your computer and your mother immediately need some grocery items to make a good meal for you. Assume that no one is there except you and your mother in your house, so she ask you to go to the market and buy those items. So she gives you a list and says:

” At fist go to the shop nearby and buy six eggs, then go to the bazar to buy some vegetables, which include 1 Kg Potato, 500 Grams of Tomato, 1 Cauliflower etc. Then go to the super market nearby to buy a packet of Turmeric, Cardamom, Pepper etc. ”

If you see carefully all these are set of instructions that are fed to your mind by your mother. In this case your mother is doing a programming-  What to do? Where to go? What to Buy?

Now Simply think this about your computer –

“Open the contents of Local Disk D, find out the video folder, play the 6th Episode of GOT…….”

Though it is quite more interesting then Mother’s Grocery Shopping. Still in the language of Computer these instructions are called Programming. But don’t think Programming is just a Sit-Back-Relax work like just navigating to watch GOT. From the basic Calculations to High Graphics Games all are need to be fed to the Computer before. It is to be fed in a special Language just like your mother gives you the Shopping instruction in Hindi , Bengali or Other Language.

Which Language Does Computer Understand ?

Problem is that Human Brain is smarter, day by day it has developed  a language in which it can speak to make others understand the instructions he or she gives. It is not same in case of computer. Though we say it has a Brain Called CPU, but still it is nothing but a bunch of electronic circuit which can do only a lot of mathematical calculations. So to make that block of CPU to understand the instructions given by Human YOU, you need to  know the language of computer, an electronic device, which can understand the presence and absence of Signal or Current denoted by 0 (ZERO), and 1 (ONE). To make a computer understand a number say your age say it is 18, you need to input 10010. For each and every number, letter, word  there is  Binary Number which is need to be inserted.

So, What Is The Solution Now ?

The easiest way is a process called Translation. Translation from your Human Language , mainly English to Binary. Now, mainly there are three LEVELS of language –

1. Low Level ( or Machine Level Language): Binary Language.

2. Assembly Language: A language which is Hard to remember by a normal Human.

3. High Level Language: FORTAN, Cobol, C/ C++, Java, Python etc.

Translators are used here are called Assemblers and Compilers where the codes are mainly executed. These translators are software’s  which you can install in you computer to write programs.

Example:

Dev C, CodeBlocks, TURBO C, etc and now a days online compilers are also available.

Which Language To Deal With ?

For programming we use to deal with the 3rd one, ie:  High Level Language .

This language mainly is written in English with mixture of  logical notations..

If you are interested then Check out this Code in C: (Just For Example)

#include<stdio.h>
int main()
{
int a[10],i,j,temp,n;
printf(“\n Enter the max no.of Elements to Sort: \n”);
scanf(“%d”,&n);
printf(“\n Enter the Elements : \n”);
for(i=0; i<n; i++)
{
scanf(“%d”,&a[i]);
}
for(i=0; i<n; i++)
for(j=i+1; j<n; j++)
{
if(a[i]>a[j])
{
temp=a[i];
a[i]=a[j];
a[j]=temp;
}
}
for(i=0; i<n; i++)
{
printf(“%d\t”,a[i]);
}
}

Leave a comment

Design a site like this with WordPress.com
Get started