Programming Concept
Programming concept
A program is a set of instructions that tells the computer how to solve a problem or perform a task.
A prgoram is composed of a list of the instructions to perform a specific job. Instruction is also called a statement. Generally, a statement is an instruction to do only one task.
The group of statement is composed togegther to form a program.
Concept of Programming Statement
A statement is a complete direction instructing the computer to carry out some tasks. For example, in C language, simple statements are those which are finally ended with the semicolon, ready to perform some action. For Example,
printf ("Value of x is %d",x) ;
Differences between Program and Software.
Program | Software |
---|---|
1. The set of instructions that instructs the computer to perform certain particular operations is called a program. | 1. Software is a collection of a computer programs with a series of instructions that instruct the computer on how to solve the problem. |
2. A program is independent of its own. | 2. Collections of programs are required to develop software. |
3. A program is created by a programmer. | 3. Software is created by a group of programmers as team work. |
4. A program is not generally licensed to buy. | 4. Software is generally licensed under a company. |
5. A program cannot be categorized according to need and uses. | 5. Software can be categorized according to various needs and uses. For e.g. application software, system software, utility software, etc. |
6. Example: C programming to input a number and check if it is even or odd. | 6. Example: MS Office, MS Windows Vista, Winzip, Internet Explorer. |
Qualities of Good Program
A program can be considered as a good program if it contains the following qualities:
• A program should be correct.
• It should produce of desired output.
• It should be easy to understand.
• It should be easy to maintain and update.
• It should have an easier user interfaces.
• It should be portable.
• It should be efficient in terms of processing and memory utilization.
A programming language is a unique language used to code a program that instruct the computer hardware to perform specified tasks. The categories of programming language are:
• Low-level language.
• High-level language.