Programming – Algorithms (Flowcharts)

Slides:



Advertisements
Similar presentations
Introduction to Flowcharting
Advertisements

Introduction to Flowcharting
ME 142 Engineering Computation I Fundamentals of Procedural Computer Programming.
Computer Programming Rattapoom Waranusast Department of Electrical and Computer Engineering Faculty of Engineering, Naresuan University.
ITEC113 Algorithms and Programming Techniques
Algorithm & Flowchart.
Flow Charting. Goals Create Algorithms using Flow Charting procedures. Distinguish between Flow Charting and Pseudocode. Top-Down Design Bottom-up Design.
Flowcharts. Problem Solving Computer programs are written to solve problems or perform tasks Programmers translate the solutions or tasks into a language.
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.
(C)opyright 2000 Scott/Jones Publishers Introduction to Flowcharting.
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”
Sequencing Learning Objective: to be able to design algorithms that use sequencing.
Starter What does the following code do?
ALGORITHMS AND FLOWCHARTS
Movement Game Design (Scratch).
Computer Science Department
INTRODUCTION TO PROBLEM SOLVING
Flowchart Symbols Terminal Process Input/ Output Decision
IGCSE 1 Cambridge Algorithms and flowcharts Unit 7 Computer Science
Lesson 1 - Sequencing.
Lesson 1 An Introduction
Chapter 2- Visual Basic Schneider
Introduction to Computing
Introduction to Flowcharting
Unit 2 Smarter Programming.
Introduction To Flowcharting
Chapter Topics 2.1 Designing a Program 2.2 Output, Input, and Variables 2.3 Variable Assignment and Calculations 2.4 Variable Declarations and Data Types.
Numbering System TODAY AND TOMORROW 11th Edition
Learning Objective: to be able to design programs that use sequencing.
Introduction to Flowcharting
Introduction to Computer Programming
Algorithm and Ambiguity
Computational Thinking
Computational Thinking
Control Structure Senior Lecturer
Algorithms Y10 Introduction.
Sequencing Learning Objective: to be able to design algorithms that use sequencing.
Designing an Algorithm
For -G7 programing language Teacher / Shamsa Hassan Alhassouni.
Structured Program Design
Introduction to Algorithms
Global Challenge Night Sensor Lesson 2.
Chapter 2- Visual Basic Schneider
Global Challenge Night Sensor Lesson 2.
Introduction to Algorithms and Programming
Faculty of Computer Science & Information System
ME 142 Engineering Computation I
Global Challenge Night Sensor Lesson 2.
Global Challenge Night Sensor Lesson 2.
Introduction to Algorithms - 1
Global Challenge Night Sensor Lesson 2.
No Yes START Do you live in Scotland? Take umbrella See last Flowchart
Global Challenge Night Sensor Lesson 2.
Global Challenge Night Sensor Lesson 2.
PYTHON: BUILDING BLOCKS Sequencing & Selection
Click to add Text Computers & Instructions. Computers are given instructions in the form of computer programs that are created through the development.
Introduction to programming
Flowcharts and Pseudo Code
Global Challenge Night Sensor Lesson 2.
COMPUTATIONAL THINKING COMPUTATIONAL THINKING IN PROGRAMMING
Developing a Program.
Global Challenge Night Sensor Lesson 2.
Global Challenge Night Sensor Lesson 2.
Introduction to Flowcharting
WJEC GCSE Computer Science
CMPT 120 Lecture 2 - Introduction to Computing Science – Problem Solving, Algorithm and Programming.
WRITING AN ALGORITHM, PSEUDOCODE, AND FLOWCHART LESSON 2.
Presentation transcript:

Programming – Algorithms (Flowcharts) Computer Science Programming – Algorithms (Flowcharts)

Starter: Python Basics Use Python to work out what these will print to screen. Write code to display your name five times with one print statement. Write code to display ‘BANANA’ by typing ‘AN’ only once. Key Words: Algorithm, Flowchart, Pseudocode

Key Words: Algorithm, Flowchart, Pseudocode Starter 1: Solution Key Words: Algorithm, Flowchart, Pseudocode

Key Words: Algorithm, Flowchart, Pseudocode Learning Objectives Programming Lesson Today we are: Understanding the different types of algorithms and shapes that can be used in Flowcharts. Creating flowcharts/pseudocode based on problems and programs already made. Key Words: Algorithm, Flowchart, Pseudocode

Key Words: Algorithm, Flowchart, Pseudocode What is an Algorithm? A process or set of rules to be followed, especially useful when problem solving. Two types: Flowchart Pseudocode Key Words: Algorithm, Flowchart, Pseudocode

Creating Algorithms – Rice Krispie Cakes What you’ll need (Variables) 60g unsalted butter 3 table spoons golden syrup 1 x 100g bar milk or dark chocolate 90g Rice Krispies How to make them (Instructions) Melt the chocolate Add the butter, and stir in until melted Add the syrup, stir Add the Rice Krispies and gently stir in to the chocolate mix Spoon in to a mould Leave to cool Ask students to think about how they might make the chocolate squares Focus on the recipe being a sequence of one instruction after another – Complete in pairs. Key Words: Algorithm, Flowchart, Pseudocode

Identifying flowchart symbols Terminator – Used to start or stop a program. Input/Output – Used when you get input from the user or output from the computer. Decision – A choice will be given. Usually Yes or No but can also display menu choices. Subroutine- Allows you to call other subroutines. (Other flowcharts could be integrated easily. Process – Performs a process such as adding two numbers. Connector –Allows connection from page to page for extensive diagrams. Key Words: Algorithm, Flowchart, Pseudocode

Task 1 – Flowcharts Recap 8 mins Complete the questions related to algorithms. (You do not need to complete the first activity if you have the shapes in your book.) You can complete this task in pairs. Found on Page 72 (in the book) 81 (on the pdf). Complete tasks in your book. Key Words: Algorithm, Flowchart, Pseudocode

Key Words: Algorithm, Flowchart, Pseudocode Task 2 – Creating Flowcharts Two choices: Create a flowchart for a program previously made. (Reverse engineering – less recommended. Create a flowchart for one of the OCR programming problem tasks on Moodle. (Choose a short one.) 15 mins Key Words: Algorithm, Flowchart, Pseudocode