SlideShare a Scribd company logo
1 of 7
Learning outcomes
By the end of today’s lesson;
• All of you will understand the purpose of
  pseudo code and flow charts (D-E)
• Most of you will be able to write some clear
  pseudo code and be able to translate others
  work (B-C)
• Some of you will add complicated functions
  into their pseudo code to make it complete
  advanced skills (A*-A)
Flow charts
How do you make a
cup of tea? Is it
anything like this?
Your turn
Create a flow
chart for how
you would make
a cup of tea or
coffee using
only these
symbols?
PSEUDO CODE
What is pseudo code?

This is when you write you ideas for a
program in plain English to give you a
good idea of how to structure your
coding.
PSEUDO CODE
           If student's grade is greater than or equal to 60
                   Print "passed"
           else
                   Print "failed"


Begin one's move.
Throw the dice.
Move the number of spaces on the board shown on the dice.
If the token landed on "Go to Jail,"
           then go there immediately.
Else if the token landed on "Chance" or "Community Chest,"
           then draw a card and follow its instructions.
Else
           follow the usual rules for the square (buying property, paying rent, collecting $200
           for passing "Go", etc.). End one's move.
Pseudo Code
How do we write it?
We literally write the step by step guide of what is in
our heads. If there is ever a ‘decision’ to be made
then this is done like this;
Leave the house
While not at station
         Walk towards station
End
While train is not at station
         Wait for train
End
Get on train

More Related Content

Viewers also liked

Viewers also liked (9)

Algorithms
AlgorithmsAlgorithms
Algorithms
 
Microsoft Visio Detailed Presentation
Microsoft Visio Detailed PresentationMicrosoft Visio Detailed Presentation
Microsoft Visio Detailed Presentation
 
pseudo code basics
pseudo code basicspseudo code basics
pseudo code basics
 
Algorithms
AlgorithmsAlgorithms
Algorithms
 
Visio Tutorial
Visio TutorialVisio Tutorial
Visio Tutorial
 
Writing algorithms
Writing algorithmsWriting algorithms
Writing algorithms
 
Algorithm & flowchart
Algorithm & flowchartAlgorithm & flowchart
Algorithm & flowchart
 
Algorithms and Flowcharts
Algorithms and FlowchartsAlgorithms and Flowcharts
Algorithms and Flowcharts
 
Algorithm and flowchart
Algorithm and flowchartAlgorithm and flowchart
Algorithm and flowchart
 

Similar to Flow Charts and Pseudo Code

Brutal refactoring, lying code, the Churn, and other emotional stories from L...
Brutal refactoring, lying code, the Churn, and other emotional stories from L...Brutal refactoring, lying code, the Churn, and other emotional stories from L...
Brutal refactoring, lying code, the Churn, and other emotional stories from L...Matthias Noback
 
Computational Thinking - 101
Computational Thinking - 101Computational Thinking - 101
Computational Thinking - 101WhizThinkers
 
Planning Your Code
Planning Your CodePlanning Your Code
Planning Your Codelistergc
 
Opw2010 Gsoc
Opw2010 GsocOpw2010 Gsoc
Opw2010 Gsocdhoss
 
Processing Workshop Slides for Ladies Learning Code - March 22, 2014
Processing Workshop Slides for Ladies Learning Code - March 22, 2014Processing Workshop Slides for Ladies Learning Code - March 22, 2014
Processing Workshop Slides for Ladies Learning Code - March 22, 2014Stephen Boyd
 
Deckible Beta U2
Deckible Beta U2Deckible Beta U2
Deckible Beta U2Nick Kellet
 
Teaching the Principles of Computer Science to Primary-Aged Children
Teaching the Principles of Computer Science to Primary-Aged ChildrenTeaching the Principles of Computer Science to Primary-Aged Children
Teaching the Principles of Computer Science to Primary-Aged ChildrenBarry O'Sullivan
 
TDD for the Newb Who Wants to Become an Apprentice
TDD for the Newb Who Wants to Become an ApprenticeTDD for the Newb Who Wants to Become an Apprentice
TDD for the Newb Who Wants to Become an ApprenticeHoward Deiner
 

Similar to Flow Charts and Pseudo Code (13)

Dodo does-math
Dodo does-mathDodo does-math
Dodo does-math
 
Brutal refactoring, lying code, the Churn, and other emotional stories from L...
Brutal refactoring, lying code, the Churn, and other emotional stories from L...Brutal refactoring, lying code, the Churn, and other emotional stories from L...
Brutal refactoring, lying code, the Churn, and other emotional stories from L...
 
Coding scratch
Coding scratchCoding scratch
Coding scratch
 
Burmese Crosswords
Burmese CrosswordsBurmese Crosswords
Burmese Crosswords
 
Computational Thinking - 101
Computational Thinking - 101Computational Thinking - 101
Computational Thinking - 101
 
python.pdf
python.pdfpython.pdf
python.pdf
 
Map your Mind, Your mind on a paper
Map your Mind, Your mind on a paperMap your Mind, Your mind on a paper
Map your Mind, Your mind on a paper
 
Planning Your Code
Planning Your CodePlanning Your Code
Planning Your Code
 
Opw2010 Gsoc
Opw2010 GsocOpw2010 Gsoc
Opw2010 Gsoc
 
Processing Workshop Slides for Ladies Learning Code - March 22, 2014
Processing Workshop Slides for Ladies Learning Code - March 22, 2014Processing Workshop Slides for Ladies Learning Code - March 22, 2014
Processing Workshop Slides for Ladies Learning Code - March 22, 2014
 
Deckible Beta U2
Deckible Beta U2Deckible Beta U2
Deckible Beta U2
 
Teaching the Principles of Computer Science to Primary-Aged Children
Teaching the Principles of Computer Science to Primary-Aged ChildrenTeaching the Principles of Computer Science to Primary-Aged Children
Teaching the Principles of Computer Science to Primary-Aged Children
 
TDD for the Newb Who Wants to Become an Apprentice
TDD for the Newb Who Wants to Become an ApprenticeTDD for the Newb Who Wants to Become an Apprentice
TDD for the Newb Who Wants to Become an Apprentice
 

More from listergc

Validation, verification, output and backup
Validation, verification, output and backupValidation, verification, output and backup
Validation, verification, output and backuplistergc
 
L4 internet security
L4   internet securityL4   internet security
L4 internet securitylistergc
 
L3 more networking
L3   more networkingL3   more networking
L3 more networkinglistergc
 
L1 networking basics
L1   networking basicsL1   networking basics
L1 networking basicslistergc
 
L1 networking basics
L1   networking basicsL1   networking basics
L1 networking basicslistergc
 
L2 communication methods
L2   communication methodsL2   communication methods
L2 communication methodslistergc
 
Introduction to operating systems
Introduction to operating systemsIntroduction to operating systems
Introduction to operating systemslistergc
 
Y12 peripherals
Y12   peripherals Y12   peripherals
Y12 peripherals listergc
 
Y12 peripherals
Y12   peripherals Y12   peripherals
Y12 peripherals listergc
 
L3 how do images work
L3   how do images workL3   how do images work
L3 how do images worklistergc
 
Describe primary and secondary memory inc
Describe primary and secondary memory incDescribe primary and secondary memory inc
Describe primary and secondary memory inclistergc
 
Systems software and applications packages
Systems software and applications packagesSystems software and applications packages
Systems software and applications packageslistergc
 

More from listergc (20)

L2
L2L2
L2
 
Validation, verification, output and backup
Validation, verification, output and backupValidation, verification, output and backup
Validation, verification, output and backup
 
L4 internet security
L4   internet securityL4   internet security
L4 internet security
 
L3 more networking
L3   more networkingL3   more networking
L3 more networking
 
L1 networking basics
L1   networking basicsL1   networking basics
L1 networking basics
 
L1 networking basics
L1   networking basicsL1   networking basics
L1 networking basics
 
L2 communication methods
L2   communication methodsL2   communication methods
L2 communication methods
 
L7
L7L7
L7
 
Introduction to operating systems
Introduction to operating systemsIntroduction to operating systems
Introduction to operating systems
 
L6
L6L6
L6
 
Y12 peripherals
Y12   peripherals Y12   peripherals
Y12 peripherals
 
Y12 peripherals
Y12   peripherals Y12   peripherals
Y12 peripherals
 
L3 how do images work
L3   how do images workL3   how do images work
L3 how do images work
 
Describe primary and secondary memory inc
Describe primary and secondary memory incDescribe primary and secondary memory inc
Describe primary and secondary memory inc
 
Pp t3
Pp t3Pp t3
Pp t3
 
L9
L9L9
L9
 
L8
L8L8
L8
 
L7
L7L7
L7
 
L6
L6L6
L6
 
Systems software and applications packages
Systems software and applications packagesSystems software and applications packages
Systems software and applications packages
 

Flow Charts and Pseudo Code

  • 1.
  • 2. Learning outcomes By the end of today’s lesson; • All of you will understand the purpose of pseudo code and flow charts (D-E) • Most of you will be able to write some clear pseudo code and be able to translate others work (B-C) • Some of you will add complicated functions into their pseudo code to make it complete advanced skills (A*-A)
  • 3. Flow charts How do you make a cup of tea? Is it anything like this?
  • 4. Your turn Create a flow chart for how you would make a cup of tea or coffee using only these symbols?
  • 5. PSEUDO CODE What is pseudo code? This is when you write you ideas for a program in plain English to give you a good idea of how to structure your coding.
  • 6. PSEUDO CODE If student's grade is greater than or equal to 60 Print "passed" else Print "failed" Begin one's move. Throw the dice. Move the number of spaces on the board shown on the dice. If the token landed on "Go to Jail," then go there immediately. Else if the token landed on "Chance" or "Community Chest," then draw a card and follow its instructions. Else follow the usual rules for the square (buying property, paying rent, collecting $200 for passing "Go", etc.). End one's move.
  • 7. Pseudo Code How do we write it? We literally write the step by step guide of what is in our heads. If there is ever a ‘decision’ to be made then this is done like this; Leave the house While not at station Walk towards station End While train is not at station Wait for train End Get on train