Learning Objective To be able to… Understand flow chart symbols Complete and correct flow chart algorithms Create a program based on a flow chart.

Slides:



Advertisements
Similar presentations
Working With Algorithm and Flowcharts
Advertisements

Nested if-else Statements.  Should be indented to make the logic clear.  Nested statement executed only when the branch it is in is executed. For example,
1 1 Eng. Mohamed Eltaher Eng.Ahmed Ibrahim Programming & Flowchart.
Microsoft Visual Basic 2005: Reloaded Second Edition Chapter 4 Making Decisions in a Program.
COMPUTER PROGRAMMING I Understand Problem Solving Tools to Design Programming Solutions.
Selection Flow Charts If statements. Flow of Control The flow of control is a concept we’ve already encountered. The concept of control relates to the.
Introduction to Flowcharting
Introduction to Flowcharting
PSEUDOCODE & FLOW CHART
Flow Control Analysis & Design Tool: Flowcharts
Creating Flowcharts Principles Of Engineering
Introduction to Flowcharting A Supplement to Starting Out with C++, 4th Edition by Tony Gaddis Published by Addison-Wesley.
Documentation Letts Study Guide Information Systems - IT Chapter 19.
Basics of Computer Programming Web Design Section 8-1.
Flow Chart.
Chapter 2- Visual Basic Schneider
Flowchart Diagram Risanuri Hidayat. What A Flow Chart is a sequential diagram that shows the steps involved in an operation or task and the decisions.
An Introduction to Programming with C++ Fifth Edition Chapter 6 More on the Selection Structure.
Developing logic (Examples on algorithm and flowchart)
Chapter 3 Planning Your Solution
Flow Charts. Thinking Creatively Flow Charts START END Is A==6? No A = 1 Yes Print A A = A + 1.
Game city International Starting on the road to programming. This project is all about learning how to program using scratch and other languages. The aim.
Chapter 1 Pseudocode & Flowcharts
CSC103: Introduction to Computer and Programming
Flow Charting. Goals Create Algorithms using Flow Charting procedures. Distinguish between Flow Charting and Pseudocode. Top-Down Design Bottom-up Design.
1 Introduction to Flowcharting. 2 Writing a program Defining the problem –Write down what the program will do Planning –Write down the steps, draw a flowchart.
1 Introduction to Flowcharting. 2 Writing a program Defining the problem –Write down what the program will do Planning –Write down the steps, draw a flowchart.
Flowcharts! January 13, 2005 These are today’s notes! Do you think we will get more snow?
Input, Output, and Processing
Flowcharts.
Computational Thinking – Lesson 3 Lesson Objective To be able to construct an algorithm and flowchart for a given problem.
1 Chapter 2 - Algorithms and Design print Statement input Statement and Variables Assignment Statement if Statement Flowcharts Flow of Control Looping.
LO: We’re learning to demonstrate the need for breaking down problems into smaller ones.
Program Design BUILDING A HOUSE. Steps to Designing a Program 1. Define the Output 2. Develop the logic to get that output 3. Write the program.
Flowcharting An Introduction. Definition A flowchart is a schematic representation of an algorithm or a process.
(C)opyright 2000 Scott/Jones Publishers Introduction to Flowcharting.
Its structure and the kind of information it gives.
Fundamentals of Algorithms MCS - 2 Lecture # 5. Representation of Algorithms (continued) Flowcharts.
Sequencing The most simple type of program uses sequencing, a set of instructions carried out one after another. Start End Display “Computer” Display “Science”
CSC 1010 Programming for All Lecture 3 Useful Python Elements for Designing Programs Some material based on material from Marty Stepp, Instructor, University.
Selection Flow Charts If statements. Flow of Control The flow of control is a concept with which we’re already familiar. The concept of control relates.
Flowcharts. Learning Objectives To learn how to break down tasks How to create a flowchart.
IPC144 Session 4 Flowcharts 1. Objectives: By the end of this session, the student will be able to: List the three elements of the Structure Theorem Identify.
GCSE Computing: Programming GCSE Programming Remembering Python.
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 Charts. Flow charts A flowchart is a schematic (idea of doing something) representation of a process. They are commonly used in Computer Science.
Problem Solving Flowcharts. Flowcharts Introduction  Flowcharts allow us to create a visual representation of a solution to a problem DRAW  With flowcharts,
CSE 110: Programming Language I Matin Saad Abdullah UB 404.
Algorithms and Flowcharts
Understand Problem Solving Tools to Design Programming Solutions
Introduction to Flowcharting
Basics of Computer Programming
7/14/16 CTC-RI IBH Pilot Quarterly Meeting
Computer Programming Flowchart.
Numbering System TODAY AND TOMORROW 11th Edition
Basics of Computer Programming
Basics of Computer Programming
Microsoft Visual Basic 2005 BASICS
Print slides for students reference
For -G7 programing language Teacher / Shamsa Hassan Alhassouni.
Structured Program Design
Design and Implementation
ME 142 Engineering Computation I
Start or end of algorithm: Action/process step:
Programming In Lesson 4.
Introduction to Python
WJEC GCSE Computer Science
Introduction to Programming
Introduction to Flowcharts
Presentation transcript:

Learning Objective To be able to… Understand flow chart symbols Complete and correct flow chart algorithms Create a program based on a flow chart

Symbols TERMINATOR PROCESS DECISION INPUT or OUTPUT

What do they do? TERMINATOR The terminator is the start and end of any program. The start symbol can only have one arrow leading away from it. This is ALWAYS a rounded rectangle.

What do they do? The process box is used when something happens, normally as a result of something in the program. This symbol can only have one arrow leading away from it, but can have more than one going into it. This is ALWAYS a rectangle. PROCESS

What do they do? The decision box is used when a question can be asked in a program, such as an IF…ELSE statement. This can have many arrows going into it, but only ever has TWO leaving – YES and NO (or TRUE and FALSE). This is ALWAYS a diamond. DECISION

What do they do? The I/O box is used when a question is asked to the user, or something is printed on the screen. This can have many arrows going into it, but only ever has one leaving. This is ALWAYS a parallelogram. INPUT or OUTPUT

Symbols TERMINATOR PROCESS DECISION INPUT or OUTPUT These symbols together create any program or set of instructions for any task. Let’s write one together on the whiteboard for making toast.

Now it’s your turn… TERMINATOR PROCESS DECISION INPUT or OUTPUT Use these symbols to create your own flowchart algorithm. Your flowchart must ask the user their age. If they are under the age of 3, tell them they’re a baby. If they are between 3 and 18, tell them they’re a child. If they’re over 18, call them an adult. If you’re finding that tough – just create a flowchart that calls them a baby or NOT a baby!

START If age < 3 How old are you? Print “Baby” If age < 18 Print “Child” Print “Adult” END Y Y N N This is just one method of completing the flow chart – there are many more! When you’ve completed your flow chart, have a go at creating it in Python!

What it could look like… Extend this program so that if the user enters nothing for the age, or if they enter a letter, they receive an error message.