What is programming ?
 

C=A+B is a formula
What is the value of C if A=1 and B=2 ?
C=1+2
C=3

This is simple math.
But how did we found C=3, why C=4 is wrong ?

in C=A+B A and B are inputs, C is the result

What is C, if A=2 and B=2 ?
C= 2+2=4

What is C, if A=0 and B=0 ?
C= 0+0=0

C varies depending on values of A and B
How do we differentiate these different situtions ?
What if another person calculate these math ?
How does same answer come all the times for same values ?

It's because our brain is programmed (taught) to think 1+2 = 3
and 0+0=0 or 2+2 =4.

If someone say 2+2=5, we dont accept it, it's because we are taught (programmed) to think 2+2 not eqaul 5 but 4.

What if numbers become larger A=3245, C=6524, we cant calculte it in one single throught, we need to intiate a process

One method
3245=3000+200+40+5
6524=6000+500+20+4
=9000+700+60+9
=9769

We did it it 4 steps, There are other ways, some shorter
What we did was processed the numbers using a rule, braking numbers to 1000s, 100s, 10s and add each set to get 9769
This method is true for any number adding,

Programming is like this, we set rules, get inputs, process the rules and inputs and output something.

Computers only understand 1 and 0

If you go back to your lessons of data representation in computers, you know that computers are designed to process 1 and 0s only. What ever you input, although they are seen as letters, numbers, lines,circles, colors -- what ever is represnted in 1s and 0s inside hardware.

There is a language called assembler which has a small setup instructions to process your 1 & 0s. A langauge like C makes it easier as it compiles the program you write to assemble, so you don't need to handle 1s and 0s.

So Assembler is a low level langauge
C is a high level langauge

Programming is the process of writing, testing, debugging/troubleshooting, and maintaining the source code of computer programs. This is also explained as Software Development Software Engineering when complex programming and methodologies used.

(c) Shilpa Sayura Foundation 2006-2017