Sie sind auf Seite 1von 1

DEFINE ALGORITHM, FLOWCHART & PSEUDOCODE

ALGORITHM FLOWCHART PSEUDOCODE


1. DEFINITION 1. DEFINITION 1. DEFINITION
- sequence of steps required - an algorithm represented graphically - detailed description of what a
for problem solution computer program or algorithm
2. SYMBOLS must perform
2. CHARACTERISTIC  terminal
- instruction  Simple  input / output 2. KEYWORD
 Accurate  processing KEYWORD DESCRIPTION
 General statements  decision // Comment entry
 Not be repeated  connecter begin .. end Block of statements that performs a
infinitely  row line specific task
- should be stopped after performing Accept Accept input values
the instruction 3. ADVANTAGE & DISADVANTAGE
Display Display output
3. EXAMPLE ADVANTAGE DISADVANTAGE Set Initializes value of variables

if .. else Block of statements


PROCESS - easy to understand - time-consuming
INPUT OUTPUT - easy identify the reason - difficult to draw if For Number of times the block
of any errors program contain
- Boiling
- avoid forgetting any complex branches & 3. ADVANTAGE & DISADVANTAGE
- Water the water steps while writing loops
- Coffee - Adding program - amount is not ADVANTAGE DISADVANTAGE
Coffee
powder coffee - easier to write program standardized - enable even non-program - difficult to beginners to
- Sugar powder & after drawing - time taken to write is less write
sugar 4. EXAMPLE - easier to modify - no standard rules
- easy converted into a
- Mixing the Start the process of program
contents making coffee
INPUT Take water, coffee
powder and sugar 4. EXAMPLE
// Pseudo code to find whether a student a student has
Boil water passed in a examination
begin
PROCESS
Add coffee powder and sugar accept the mark obtained by the student
then mix the contents if the mark is greater than or equal to 40
display “Pass”
OUTPUT coffee or else
display “Fail”
end
Drink / serve the coffee

Das könnte Ihnen auch gefallen