A computer program is a set of clear and ordered instructions that tell a computer how to perform a task. These instructions enable the computer to interact with the user, other devices (peripherals) and information stored in the computer.
The language used to write these instructions is called a programming language. Examples of programming languages include C, Python and Java. The activity of writing instructions in a programming language is called computer programming or simply programming.
When you write a program you must follow the rules of that language. These rules are called the syntax of the language. A programming language also gives you operators and constructs to:
Programming is a way of solving problems step by step. Before writing actual code, programmers often plan the solution using simple language (called pseudocode) or by drawing diagrams called flowcharts. Planning helps to check the logic and to communicate the idea clearly to others.
A flowchart is a diagrammatic way to represent the logic and steps of a program. It shows how input is transformed into output by a sequence of operations and decisions. Flowcharts are useful for understanding, discussing and testing the logic of a program before actual programming begins.
Flowcharts serve as a common language between people who analyse a problem and those who write the program. They help find errors in logic and make it easier to explain the procedure to others.

The following flowchart shows a program that decides and prints the grade of an employee according to his or her salary. The figure illustrates how input, decisions and output are arranged to reach the final result.

Explanation of the flowchart logic:
Flowcharts make it easier for beginners to follow the flow of a program and to translate the steps into real code later. When creating a flowchart, keep symbols clear, label decision outcomes (for example, Yes / No), and ensure that every possible path eventually reaches the Stop symbol.
Summary: A computer program is a set of instructions written in a programming language following its syntax. Before writing code, plan the steps using algorithms or flowcharts. Flowcharts use standard symbols such as Start/Stop, Processing, Input/Output, Decision and Flow Lines to represent the sequence and decisions of the program in a clear visual form.
39 videos|28 docs|6 tests |
| 1. What are the basic symbols used in creating a flowchart? | ![]() |
| 2. What is the importance of flowchart symbols in creating a flowchart? | ![]() |
| 3. How can flowcharts be helpful in computer programming? | ![]() |
| 4. What are some common input and output devices used in computers? | ![]() |
| 5. Can you explain the history of computers briefly? | ![]() |