Sequence Damian Gordon. Pseudocode When we write programs, we assume that the computer executes the program starting at the beginning and working its.

Slides:



Advertisements
Similar presentations
Working With Algorithm and Flowcharts
Advertisements

Slide 1 Today you will: Review knowledge and understanding of systems Understand what a system is and what it consists of Apply this understanding by working.
Algorithms CSC1310 Fall What Is Programming? Programming Programming means writing down a series of instructions that tell a computer what to do.
Basic Programming Concepts INTRO TO PROGRAMMING. Questions to answer  What is a computer program?  What are computer instructions  How is a program.
H OW TO MAKE A CUP OF T EA ! By Paris Bell. Safety Instructions Equipment Ingredients Instructions Instructions (continued) Tips.
Unit 7.6 Lesson 2 Goals Identify and use flowchart symbols. Plan a sequence of events and incorporate them into a flowchart. Create a simple flowchart.
Tutorial #6 PseudoCode (reprise)
First steps  First get out a mug from your cupboard.  Next pour cold water into your kettle.  Then press the button and wait for it to boil.
place a teabag in a mug; boil some water; pour over teabag; wait until strong enough; remove the teabag; add some milk and stir. what is this?
SDP Languages and Environments. Types of Languages and Environments There are 4 main types of language that you must be able to describe at Higher level.
Flow Charting, Structured English and PseudoCode
Tutorial #7 Flowcharts (reprise) Program Design. Introduction We mentioned it already, that if we thing of an analyst as being analogous to an architect,
Lecturer: Fintan Costello Welcome to Hdip 001 Introduction to Programming.
Programming Fundamentals (750113) Ch1. Problem Solving
Methods: a first introduction Two ways to make tea: 1: boil water; put teabag into cup;... etc : tell your younger brother: makeTea(1 milk, 0 sugar);
Flow Charts. Thinking Creatively Flow Charts START END Is A==6? No A = 1 Yes Print A A = A + 1.
Original Source : and Problem and Problem Solving.ppt.
Introduction to Algorithm – part one Jennifer Elmer Form 3 Computing.
Polly put the kettle on Polly put the kettle on Polly put the kettle on We’ll all have tea.
CS001 Introduction to Programming Day 5 Sujana Jyothi
Algorithms In general algorithms is a name given to a defined set of steps used to complete a task. For example to make a cup of tea you would fill the.
Project Management Project Planning Estimating Scheduling.
Selection: IF Statement Damian Gordon. adsdfsdsdsfsdfs dsdlkmfsdfmsdl kfsdmkfsldfmsk dddfsdsdfsd.
A PowerPoint about Algorithm’s. What is an algorithm?  a process or set of rules to be followed in calculations or other problem-solving operations,
Iteration: WHILE Loop Damian Gordon. WHILE Loop Consider the problem of searching for an entry in a phone book with only SELECTION:
A PowerPoint about Algorithm’s. What is an algorithm? A list Of cammands / instructions to do a tasks.
End Show Writing a computer program involves performing the following tasks. 1. Understanding the problem 2. Developing an Algorithm for the problem 3.
‘How to make perfect English tea’ Ewa Pacykowska.
For this unit, you will develop a new swimming / leisure business. 2. You will need to think of a name & concept for the business. 3. Over the.
Top-Down Design Damian Gordon. Top-Down Design Top-Down Design (also known as stepwise design) is breaking down a problem into steps. In Top-down Design.
How to make a Perfect Cup of Tea Supplies Kettle Ceramic tea-pot Large ceramic mug and spoon Microwave oven.
Variables Damian Gordon. Variables We know what a variable is from maths. We’ve all seen this sort of thing in algebra: 2x – 10 = 0 2x = 10 X = 5.
A PowerPoint about Algorithm’s. What is an algorithm? A step by step process of instruction.
Slide 1 What makes up an information system? Input Process Output Temperature and rainfall from a variety of places Analyse the information and present.
How to Make the Perfect Homemade Pumpkin Spice Latte.
By Zoe Cornell. Mug Kettle Tea bag Milk Sugar Pour water into the kettle and switch it on.
Learn about the system life cycle Plan the outline of your project
Mug Tea bag Kettle Milk Sugar (only if you like it in your tea) A spoon Biscuits A plate for the biscuits.
QUALITY MANAGEMENT PRINCIPLES. Objectives 4 Understand usefulness of CASE tools 4 Types of CASE tools 4 Data flow diagrams (DFD)
PI “I am the Tea Expert” Management Case Study of My Cup of Tea Organising Business Activities in the Most Effective Way PI & MSC.
Prime Numbers Damian Gordon. Prime Numbers So let’s say we want to express the following algorithm: – Read in a number and check if it’s a prime number.
Computer Control Using computers to do tasks. What are Computers used for? ringing your alarm clock. microwaving your breakfast checking for text messages.
Pseudocode Skill Area Materials Prepared by Dhimas Ruswanto, BMm.
PROCEDURE TEXT. Learn carefully.  Teabag  Coffee mix  Fried rice  Cake  Chili  Powder  Sugar  Pan  spoon  Cut it into pieces  Boil water 
Sequences, Modules and Variables David Millard
Comp1004: Programming in Java II Computational Thinking.
Introduction to Python Damian Gordon e:
HOW TO MAKE A GOOD CUP OF TEA SKW 3061 ENGLISH WORKPLACE MISS GURMINDERJEET KAUR MOHAMAD SHAZRYL B. MOHD SHUKOR B01SPS13F
BOILED EGGS © PDST Home Economics. BOILING IS COOKING FOOD IN FAST BUBBLING WATER IN A SAUCEPAN.
Project Management module
Introduction to Algorithm – part 1
Remove toast from toaster
Programming Logic n Techniques
Algorithms & Logic Mr Conti.
Design and Technology Academic Year 2017/2018 Grade 7 First Semester.
Algorithms Today we will look at: what the word algorithm means
Algorithms Y10 Introduction.
Comp1202: Building Better Programs
Programming Languages
Programming Fundamentals (750113) Ch1. Problem Solving
Flow Charts AQA - Graphic Products.
Process/ Instruction Writing
A programming language
Giving and following instructions
Speaking Presentation
Flowcharts Activity One
Algorithms TASK Outcomes What is an algorithm?
Giving and following instructions
PseudoCode Damian Gordon.
Presentation transcript:

Sequence Damian Gordon

Pseudocode When we write programs, we assume that the computer executes the program starting at the beginning and working its way to the end. This is a basic assumption of all algorithm design.

Pseudocode When we write programs, we assume that the computer executes the program starting at the beginning and working its way to the end. This is a basic assumption of all algorithm design. We call this SEQUENCE.

Pseudocode In Pseudo code it looks like this: Statement1; Statement2; Statement3; Statement4; Statement5; Statement6; Statement7; Statement8;

Pseudocode For example, for making a cup of tea: Organise everything together; Plug in kettle; Put teabag in cup; Put water into kettle; Wait for kettle to boil; Add water to cup; Remove teabag with spoon/fork; Add milk and/or sugar; Serve;

Pseudocode Or as a program: PROGRAM MakeACupOfTea: Organise everything together; Plug in kettle; Put teabag in cup; Put water into kettle; Wait for kettle to boil; Add water to cup; Remove teabag with spoon/fork; Add milk and/or sugar; Serve; END.

Pseudocode Or as a program: PROGRAM MakeACupOfTea: Organise everything together; Plug in kettle; Put teabag in cup; Put water into kettle; Wait for kettle to boil; Add water to cup; Remove teabag with spoon/fork; Add milk and/or sugar; Serve; END.

Organise everything together Plug in kettle Put teabag in cup Put water into kettle Turn on kettle Wait for kettle to boil Add boiling water to cup Remove teabag with spoon/fork Add milk and/or sugar Serve

Organise everything together Plug in kettle Put teabag in cup Put water into kettle Turn on kettle Wait for kettle to boil Add boiling water to cup Remove teabag with spoon/fork Add milk and/or sugar Serve START END

Pseudocode So let’s say we want to express the following algorithm: – Read in a number and print it out.

Pseudocode PROGRAM PrintNumber: Read number; Print out number; END.

Pseudocode So let’s say we want to express the following algorithm: – Read in a number and print it out double the number.

Pseudocode PROGRAM PrintDoubleNumber: Read number; Print 2 * number; END.

etc.