Friday, October 12, 2018

Use of Programming

Programming is a set of instructions. We give instruction to machine and machine do that thing.

Example of Programming

1. There is a machine which cut woods. We need to give the instruction that how much the machine cut. If someone said 5 then the machine cuts 5 cm  wood. In this case we use programming. A program which take value from the user and give instruction to the machine.

2. We regular use calculator. When we want to add something, we press the one value then press '+' sign and then press the second value and then press = and get the result. To multiply we give an instruction with value and * sign and when we press = we get result. How calculator give the right answer when you give an instruction? This is happen because of programming. We tell the calculator when what and how. Calculator just follow our instruction.

3. We use Facebook. When you give your user id and password and press log in then why you get your profile. Why this not happen that you give your id and password but open your friend's account. Because of programming.