PseudoCode Damian Gordon.

Slides:



Advertisements
Similar presentations
The Build-up of the Red Sequence at z
Advertisements

Tutorial #6 PseudoCode (reprise)
Calcul mental. Calcul n°1 2 x 7 = Calcul n°2 3x 7 =
Arithmetic Sequences & Series Pre-Calculus Section.
PYTHON PROGRAMMING Week 10 – Wednesday. TERMS – CHAPTER 1 Write down definitions for these terms:  Computation  Computability  Computing  Artificial.
Iteration: WHILE Loop Damian Gordon. WHILE Loop Consider the problem of searching for an entry in a phone book with only SELECTION:
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.
Unit 5 – Series, Sequences, and Limits Section 5.2 – Recursive Definitions Calculator Required.
Sequence Damian Gordon. Pseudocode When we write programs, we assume that the computer executes the program starting at the beginning and working its.
PYTHON PROGRAMMING Week 12 – Tuesday. STARTER What is a flowchart? Do you know any of the symbols used in a flowchart and what they mean?
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.
Minds On MCR 3U – Unit 6 a)Determine the sum of all the terms in the following sequence: {-2, 3, 8, 13} b)Determine the sum of all the terms in the following.
Arithmetic Sequences Recognize and extend arithmetic sequences.
Python: Iteration Damian Gordon. Python: Iteration We’ll consider four ways to do iteration: – The WHILE loop – The FOR loop – The DO loop – The LOOP.
Recursion Damian Gordon. Recursion Factorial Fibonacci Decimal to Binary conversion Travelling Salesman Problem Knight’s Tour.
Iteration: FOR, DO, LOOP Loop Damian Gordon. FOR Loop The FOR loop does the same thing as a WHILE loop but is easier if you are using the loop to do a.
1 4.8 – Newton’s Method. 2 The Situation Let’s find the x-intercept of function graphed using derivatives and tangent lines. |x1|x1 |x2|x2 |x3|x3 Continuing,
Selection: CASE Statement Damian Gordon. Selection As well as the IF Statement, another form of SELECTION is the CASE statement.
P2 Chapter 8 CIE Centre A-level Pure Maths © Adam Gibson.
Rules for the nth term in a sequence modelling linear growth or decay
Warm Up Solve: Simplify:.
Trapezoid Method and Iteration & Acceleration
Jesus Is Born.
Pseudocode (Revision)
Flowcharting Guidelines
Design Patterns Damian Gordon.
Pseudocode Upsorn Praphamontripong CS 1110 Introduction to Programming
Lesson 13 – 6 Limits of Sequences
The Derivative Chapter 3.1 Continued.
Section 1.0 — Fundamentals and General
Analysing the AoA network
Properties of Logarithms
Arithmetic & Geometric Sequences
Python: Array Slicing Damian Gordon.
“Finding the difference”
Math –Series.
Multiple Inheritance Damian Gordon.
10:00.
Python: Algorithms Damian Gordon.
Grab a calculator and a highlighter Complete the following:
A graphing calculator is required for some problems or parts of problems 2000.
Iterator Pattern: Generator Expressions
Algorithmic Complexity
Simple Statistics on Arrays
Simple Statistics on Arrays
Some Common Issues: Iteration
Arithmetic Sequence Objective:
Algorithms and Convergence
Backtracking with addition and subtraction
3.8 Newton’s Method How do you find a root of the following function without a graphing calculator? This is what Newton did.
Chapter 2 Control Structures.
Flowcharts and Pseudo Code
Unit 3 Review (Calculator)
12 Further mathematics Recurrence relations.
Some Common Issues: Print, Maths, Variables
Python: Sorting – Selection Sort
How do you plan your lessons?
Generating Sequences © T Madas.
Unit 3: Linear and Exponential Functions
Warm-Up Study the patterns below to determine the next five numbers in each sequence. You may use the calculator to check your answers. 2, 4, 6, 8, 10...
Writing Focus: Rhyming Poem
UMBC CMSC 104 – Section 01, Fall 2016
Writing Focus: Sequence Story
Calculate 9 x 81 = x 3 3 x 3 x 3 x 3 3 x 3 x 3 x 3 x 3 x 3 x =
Writing Focus: Sentence About Events
WJEC GCSE Computer Science
Y X Equation of Lines.
Game Description Player 1: Decides on integer x > 0
62 – Arithmetic and Geometric Sequences Calculator Required
The sum of an Infinite Series
Presentation transcript:

PseudoCode Damian Gordon

Pseudocode The first thing we do when designing a program is to decide on a name for the program.

Pseudocode The first thing we do when designing a program is to decide on a name for the program. Let’s say we want to write a program to calculate interest, a good name for the program would be CalculateInterest.

Pseudocode The first thing we do when designing a program is to decide on a name for the program. Let’s say we want to write a program to calculate interest, a good name for the program would be CalculateInterest. Note the use of CamelCase.

Pseudocode The first thing we do when designing a program is to decide on a name for the program. Let’s say we want to write a program to calculate interest, a good name for the program would be CalculateInterest. Note the use of CamelCase.

Pseudocode So we start the program as: PROGRAM CalculateInterest:

Pseudocode So we start the program as: PROGRAM CalculateInterest: And in general it’s: PROGRAM <ProgramName>:

Pseudocode Our program will finish with the following: END.

Pseudocode Our program will finish with the following: END. And in general it’s the same:

Pseudocode So the general structure of all programs is: PROGRAM <ProgramName>: <Do stuff> END.

Components Sequence Selection Iteration