free hit counter

What is program?

Date: 26 Mar 2013

Program is a collection of instructions. Instruction specifies an operation such as add, subtract, multiply, store and so on. Computer works by executing the programs stored in its memory. One who writes programs is called programmer. The first programmer in the world is Lady Ada. Collection of programs is called software.

Program should be written in a programming language. Before writing a program, it is better to write a pseudo code as given below.

Input Number1, Number2
Add Number1 and Number2
Print Sum

Pseudo code is one that explains the logic in a simple unambiguous manner. Programmer can write this in his own way. The code says that two numbers (as input) symbolically represented as Number1 and Number2 respectively to be fed into the system, add the given two numbers and print the sum in an output device, say console (or monitor).

Now it is possible to write a simple program that adds two numbers is written can be written in a programming language, say, BASIC programming language.

10 READ Number1, Number2
20 SUM = Number1 + Number2
40 END

Now the computer should be asked to execute the program. This can be done by command, for example, Run. Once the program is executed the data should be fed and the result, that is, sum will be displayed in the monitor. For example, if the two numbers are given as input are 10 and 20 then the sum 30 will appear on the screen.

  1. 7 Comments to “What is program?”

    1. […] works as per the given set of instructions what is known as program. It gets data as input and operates on it as per the instructions given in the […]

    2. […] is initialized by loading the program counter by the address of the first instruction of the program. Once the first instruction is executed the register is automatically incremented to point to the […]

    3. […] in the Read/Write memory. It is used for storage of binary information during the execution of a program. The beginning of the stack is defined in the program by using the […]

    4. […] of California, San Diego has developed a video game to teach students how to write programs in Java. The researchers selected 40 girls in the age group of 10 to 12 who did not have any […]

    5. […] robot, e-David is provided software to make decisions. The built-in computer program consists of drawing commands to be executed by the […]

    6. […] former refers to micro operations and the latter refers to small components.Both use ROM to store program that specifies the operations in the system. The instructions stored in a microcomputer is called […]

    7. […] equivalent to finite-state machines – a mathematical concept to describe logical processes or computer programs. The network connectivity patterns is quite similar to human […]