Hello guys !! Today we will see what are best tips for writing Flowchart, Algorithm, Pseudo code.
Step by step this page describes what is Flowchart?, What is algorithm?, What is pseudcode?And also take a look at how to draw and write them correctly.We are also going to see Applications of Flowchart , Algorithm, Pseudo code.
The Problem Solving Techniques include Flowchart , Algorithm, Pseudo code, and Program.They are common to all languages may be in C or C++ or java or python,etc.
Lets Start.....
Flowchart:-
It is a diagramatic representation
of flow of execution of program .Each step in the flow chart is
represented by the different symbol and the symbol contains
short description of the process.
The symbols are linked to each other with arrows
showing the direction of the flow.the standard symbols are as follows:-
start/stop = ⭘
input/output = ▱
general = ▭
decision = a rhombus symbol
connector = ⬅
Algorithm:-
It is the logical sequence of operations described in
precise sequence.A algorithm is to be prepared before writing the program . It
is mainly written in english language.
example:- for addition of 2 numbers
1.
start
2.
read a , b
3.
calculate c= a + b ;
4.
display c
5.
stop
PseudoCode:-
Some statements will be converted into higher level language it is a informal high level description of the operating principal of a operating program or algorithm.
example:-( for addition of 2 numbers )
1.
start
2.
input 2 numbers
3.
calculate sum
4.
output sum
5.
stop
Actual Application :-
Flowchart:-
Algorithm:-
1.
start
2.
declare integer variables r , ar
, cir
3.
accept the value of radius of
circle from user
4.
ar = r * r * 3.14;
5.
cir = 2 * 3.14 * r;
6.
print the area and circumference
of the circle.
Program :-
The Flowchart and Algorithm will remain same only program code will differ w.r.t. coding language.
If u have chosen C language here is the code...
#include<stdio.h>
#include<conio.h>
void main()
{
int r = 0 , ar = 0 , cir =
0 ;
clrscr();
printf("\n Enter the radius of circle");
scanf("%d",& r);
ar =
r*r*3.14;
cir = 2*3.14*r;
printf("\n The area of
circle is = %d \n The circumference of circle is = %d ", ar , cir);
getch();
}
Programs:-
For many other Language Programs of microprocessor 8086, C++ , Data Structures and MSBTE diploma and engineering related concepts visit our BLOG
No comments:
Post a Comment