Computer Science, asked by smita83, 1 year ago

What is algorithm and flow chart????? Please explain and Give example.

Answers

Answered by BajpaiAyush
1
algorithm=a set of rules that must be followed when solving a particular problem

flowchart=a diagram that shows the connections between different stages of a process or parts of a system
Answered by Brainlybarbiedoll
17
Answer-:

To solve any problem with computer must be properly planned and organized. Any computer problem must be carefully planned in advance. The person solve the problem having a clear idea of input data, expected output and sequence of steps to get the output processing the input data.

To solve the problem we have to take the help of Algorithm and Flow chart.

Algorithm-:

To solve any problem with step by step method is called Algorithm. It is only the written form of solving the problem.

Example-:

Write an algorithm to substract 2 number 25 and 12.

1. A=25
2. B=12
3.C= A-B
4. Display C

2nd example-:

write an algorithm to add 2 number.

1. Take 1st number in a
2. Take 2nd number in b
3. Calculate c= a+b
4. Display C

Flow chart -:

Flow chart is a pictorial representation of an algorithm. It represents the sequence of operation to be followed for solving problem. Flowchart contains a set of symbols that has specific activity.

A programmer must draw a flowchart before a program is written, like an architect draws a blue print before construction of building.

• while drawing a flowchart, we must use some standard symbols that are widely accepted and universal for drawing flowchart.

Symbols and activity-:

◆Oval => used to indicate the beginning or end of flowchart program.

◆ Parallelogram=> used for input/output option.

◆ Rectangle=> used for processing and assigning values.

◆ Diamond=> Decision-used for condition checking. (Y or N)

◆ Flow lines=> Connects the steps of the flow chart. Indicate the flow of data.

◆ On Page connector => Use to connect one step in the flowchart with another step on the same page.

◆ Off page connector=> Use to connect one step in the flowchart with another step on a different page.

Example-:

Flowchart to add 2 numbers that are 230 and 452.

Ans=

(Oval) Start

(Rectangle)A=230

(Rectangle)B=452

(Rectangle)C=A+B

(Parallelogram) Display C

(Oval) Stop

BajpaiAyush: hi
Similar questions