Starter....

Slides:



Advertisements
Similar presentations
Working With Algorithm and Flowcharts
Advertisements

Looping Structures: Do Loops
How SAS implements structured programming constructs
Chapter 2: Understanding Structure
3.1.3 Program Flow control_1 Understand the need for structure Breaking things down.
PSEUDOCODE & FLOW CHART
Basics of Computer Programming Web Design Section 8-1.
1. Know the different types of flow block 2. Understand how problems can be broken down into smaller problems.
TMF1013 : Introduction To Computing Lecture 1 : Fundamental of Computer ComputerFoudamentals.
Bug Session Four. Session description Objectives Session activities summary Resources Prior knowledge of sequencing instructions using Bug Bug website.
Extended Prelude to Programming Concepts & Design, 3/e by Stewart Venit and Elizabeth Drake Chapter 2: Flowcharts.
Chapter 15 JavaScript: Part III The Web Warrior Guide to Web Design Technologies.
ITEC 109 Lecture 11 While loops. while loops Review Choices –1 st –2 nd to ?th –Last What happens if you only use ifs? Can you have just an else by itself?
3.1.3 Program Flow control Structured programming – SELECTION in greater detail.
Algorithms and Pseudocode
P ROGRAMMING L OGIC GWDA123 Sharon Kaitner, M.Ed. Winter 2015: Week 2.
Learning Objective To be able to… Understand flow chart symbols Complete and correct flow chart algorithms Create a program based on a flow chart.
ICS124 Session 9 Flowcharting 1. By the end of this section the student will be able to:  Name the three structures of the Structure Theorem  Identify.
Flow Control in Imperative Languages. Activity 1 What does the word: ‘Imperative’ mean? 5mins …having CONTROL and ORDER!
Learning outcomes 5 Developing Code – Using Flowcharts
Component 1 Logical operators.
Lesson Objectives Aims Key Words
Programming & Scratch.
Flowchart Symbols Terminal Process Input/ Output Decision
Basics of Computer Programming
Spreadsheets.
Topics Introduction to Repetition Structures
Scratch: iteration / repetition / loops
PROGRAM CONTROL STRUCTURE
Warm-up Program Use the same method as your first fortune cookie project and write a program that reads in a string from the user and, at random, will.
Think What will be the output?
Numbering System TODAY AND TOMORROW 11th Edition
Basics of Computer Programming
Diamond Hunt Mock Programming Project.
Basics of Computer Programming
Basics of Computer Programming
Topics Introduction to Repetition Structures
Lesson Outcomes Be able to identify differentiate between types of error in programs Be able to interpret error messages and identify, locate.
Print slides for students reference
LESSON 11 – WHILE LOOPS UNIT 5 – 1/10/17.
For -G7 programing language Teacher / Shamsa Hassan Alhassouni.
Learning to Program in Python
Teaching Computing to GCSE
Problem-Solving and Control Structures By Faith Brenner
Alice in Action with Java
Learning to Program in Python
Scratch: selection / branching/ if / If…else / compound conditionals / error trapping by Mr. Clausen.
Computational Thinking for KS3
Introduction to Algorithms and Programming
Global Challenge Love Heart Lesson 2.
Global Challenge Love Heart Lesson 2.
Global Challenge Love Heart Lesson 2.
Global Challenge Love Heart Lesson 2.
Global Challenge Love Heart Lesson 2.
Global Challenge Love Heart Lesson 2.
Problem-Solving and Control Structures By Faith Brenner
Global Challenge Love Heart Lesson 2.
PYTHON: BUILDING BLOCKS Sequencing & Selection
Global Challenge Love Heart Lesson 2.
ICT Gaming Lesson 2.
Global Challenge Love Heart Lesson 2.
Program Flow.
Plan of Making (Flow Charts)
Plan of Making (Flow Charts)
Topics Introduction to Repetition Structures
SEQUENCE Start Initial situation Step 1 Step 2 Step 3 End
Global Challenge Love Heart Lesson 2.
Scratch 7B IT 1.
Creating behaviours: MOVEMENT
Presentation transcript:

starter...

Program flow control Come up with an example (programming) of when you might use the following building blocks: What would it do? FOR loop IF, THEN, ELSE WHILE LOOP Iteration, repetition, loop Selection For loop – looping through words or lists performing tasks on each IF, THEN ELSE statement -

Structured programming – Flowcharts 3.1.3 Program Flow control_4 Structured programming – Flowcharts

Lesson outcomes Understand how problems can be broken down into smaller problems and how these steps can be represented by the use of devices such as flowcharts + structure diagrams Be able to read and interpret a flow chart. Be able to explain the meaning of: Block, derived, top down design.

? Warm up...tell me a story !=10 ? true false What would you call this? true false

Warm up...tell me a story

What is this? Task 1 Can you read a flow chart? Can you tell me the story of what is happening in this flow chart...? Label: Selection, Iteration, Sequence What is this?

Some Vocab: Some other terms that you may

Nested constructs Sometimes you have to use constructs together Input and output http://users.evtek.fi/~jaanah/IntroC/DBeech/3gl_flow.htm

Program Control Flowcharts Introducing a new block Input and output

Block structure Using the building blocks Enclosed structures between key words such as an IF statement IF (Pay < £10K) Tax Rate = 0% IF (Pay > £40K) Tax Rate = 40% ELSE Tax Rate = 20% END IF CASE Pay OF <£10: THEN Tax Rate = 0% <£40: THEN Tax Rate = 20% <£150: THEN Tax Rate = 40% >£150: THEN Tax Rate = 50% END CASE

Top Down Design What does this mean?

Iteration in another context

QUICK TASK! - Using loops in Scratch Open scratch – Create a loop for a shape that will move until it reaches something (such as bump into something) or fulfils some condition.

Homework challenge: Rock, paper, scissors. Produce a flow chart and psuedocode for a game of Rock, Paper scissors.