















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!
















The algorithm is part of the blueprint or plan for the computer program, an algorithm is: “An effective procedure for solving a class of problems in a finite number of steps.”
Every algorithm should have the following 5 characteristic feature:
Formal description: Written in prose but much closer to the high-level language of a computer program, the following is the more formal coding of the algorithm in pseudo code (find the largest number in an (unsorted) list of numbers)
Algorithm LargestNumber
Input: A non-empty list of numbersL. Output: Thelargest number in the listL.
What is a Flowchart?
A set of useful standard Flowchart
symbols:
ADVANTAGES OF USING
FLOWCHARTS:
Flow chart of the while loop :
Flow chart of the for loop:
The flow chart of the if…else statement :
The flow chart of the switch statement:
Flowchart to find the sum of first 50 natural numbers.
Start
Read A, B
Is A > B
Print A Print B
End
Yes (^) No
Flow Chart to find largest of two numbers: