1 / 14

Programming for GCSE Topic 8.2: Pseudo Code and Flowcharts

T eaching L ondon C omputing. Programming for GCSE Topic 8.2: Pseudo Code and Flowcharts. William Marsh School of Electronic Engineering and Computer Science Queen Mary University of London. Aims. Design: what it about? Pseudo code Flowcharts My views. Design. Plan Before you build

christmas
Download Presentation

Programming for GCSE Topic 8.2: Pseudo Code and Flowcharts

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. TeachingLondon Computing Programming for GCSETopic 8.2: Pseudo Code and Flowcharts William Marsh School of Electronic Engineering and Computer Science Queen Mary University of London

  2. Aims • Design: what it about? • Pseudo code • Flowcharts • My views

  3. Design • Plan • Before you build • How for s/w? • Software is a description! • Steps towards a solution

  4. Pseudo Code

  5. Pseudo Code • Careless or informal code • Useful for • Making a start • Breaking a problem done (i.e. design) • Algorithms without code • AQA has defined a syntax • Does this miss the point?

  6. Example: Shopping List initialise shopping list and list of purchase forever get command if command is 'add' get item and add it to shopping list if command is 'buy' get item; transfer from shopping to purchase list if command is 'print' print both lists

  7. Flowcharts

  8. Statement Block • Group of instructions • No jumps • Comments! • Arrows implicit • downwards • across description

  9. Decision • Choice of two • If statement false true

  10. Example – Largest Value start • Input two numbers • Output largest input X, Y true X > Y false print X print Y stop

  11. Quiz – Flowchart for A Loop • Pseudo code • Equivalent flowchart While condition statement 1 statement 2 false ? Condition true Statement 1 Statement 2

  12. Syllabus

  13. Specification – Algorithms Candidates should be able to: understand algorithms (written in pseudocode or flow diagram), explain what they do, and correct or complete them produce algorithms in pseudocode or flow diagrams to solve problems. • Also relevant to design in the practical programming activity

  14. Summary • Flowcharts may be useful for understanding programs • Pseudo code like code without the syntax errors

More Related