Algorithms and Flowcharts how to build them and read them
Here today my friends I
am gonna talk about the most essential thing that every IT student, or
programming student should know
THE ALGORITHS AND FLOW CHART
It’s not that hard as we all think you just have clear your
logics and set up your mind in one direction
Here next what will come will be in my teachers notes so
read it and carefully read it
To write a program these are some initial
steps that every programmer should follow
1.
Understand the problem of user
2.
Plan a logic that how will your program will
work
3.
Write the code
4.
Test the program
First of all we will talk about some initial thing like definition
etc.
·
Algorithm: - A
precise step by step method of solving a problem
Too short
ahhh…read this one
or
A sequential solution of any program that written in
human language, called algorithm.
or
Algorithm is first step of the solution process, after
the analysis of problem, programmer write the algorithm of that problem.
Now in the Beginning it will easy like piece of cake
but after some post it will become nightmare to you ( don’t worry I’m just joking :-D)
Remarks
1. Every algo
should be started with “START” and
Ended with “STOP”
2. If you
want to display any massage to user use ”PRINT” than type massage in inverted
comma “ “
3. We use
some operators called arithmetic operators and logical operators
4. + - * /
are arthimetic operators
5. AND, OR
are the logical operators
Here is an example of algorithm
Here ARYAN is my collage’s name
No comments: