Friday, September 21, 2018

Introduction-Program in general

Suppose we have to add :

10+20

We see there is a plus sign between the numbers.We can understand that it is a sum of addition but the computer can't.It has no brains.To make computer understand this statement we will have to give a set of instructions.This set of instructions is called programming.
:

So,we can say:

A program is a set of instructions which,when executed cause the machine to behave in a predetermined manner.


Programs are written to solve problems.But before writing the program,you should solve the problem by yourself somewhere in rough.
When you have solved the program,just write the main steps somewhere in rough.
This is a rough sketch  of your program.
Thus,the method of solving the problem,it's main steps will make the statements of your program.

In short:

1.Studythe problem.
2.Gather information to solve the problem.
3.Write the main steps to solve the particular problem.
4.Check your result with your book.

In a program,this method of solving the particular program will apply to all such problems.




No comments:

Post a Comment