lesson flow charts 2

38
WILL LEARN TO READ AND CREATE ALGORITHM FLOWCHARTS.

Upload: lexume1

Post on 12-Apr-2017

43 views

Category:

Education


0 download

TRANSCRIPT

Page 1: Lesson flow charts 2

L.O: STUDENTS WILL LEARN TO READ AND CREATE ALGORITHM

FLOWCHARTS.

Page 2: Lesson flow charts 2

There are no set rules for writing pseudocode, but you will often see the following:

• INPUT – indicates a user will be inputting something• OUTPUT – indicates that an output will appear on the screen• WHILE – a loop (iteration that has a condition at the

beginning)• FOR – a counting loop (iteration)• REPEAT – UNTIL – a loop (iteration) that has a condition at

the end• IF – THEN – ELSE – a decision (selection) in which a choice is

made• any instructions that occur inside a selection or iteration are

usually indented

Page 3: Lesson flow charts 2

A flowchart is a type a diagram that uses shapes and arrows to represent an algorithm.

Page 4: Lesson flow charts 2
Page 5: Lesson flow charts 2
Page 6: Lesson flow charts 2
Page 7: Lesson flow charts 2
Page 8: Lesson flow charts 2
Page 9: Lesson flow charts 2
Page 10: Lesson flow charts 2
Page 11: Lesson flow charts 2
Page 12: Lesson flow charts 2
Page 13: Lesson flow charts 2
Page 14: Lesson flow charts 2
Page 15: Lesson flow charts 2
Page 16: Lesson flow charts 2
Page 17: Lesson flow charts 2
Page 18: Lesson flow charts 2
Page 19: Lesson flow charts 2
Page 20: Lesson flow charts 2
Page 21: Lesson flow charts 2
Page 22: Lesson flow charts 2
Page 23: Lesson flow charts 2
Page 24: Lesson flow charts 2
Page 25: Lesson flow charts 2
Page 26: Lesson flow charts 2
Page 27: Lesson flow charts 2
Page 28: Lesson flow charts 2
Page 29: Lesson flow charts 2
Page 30: Lesson flow charts 2
Page 31: Lesson flow charts 2
Page 32: Lesson flow charts 2
Page 33: Lesson flow charts 2

Algorithms can be expressed in natural language or in pseudocode, text that describes the steps a program might carry out. These

languages for human understanding may help write the algorithm in a programming language.

Pseudocode:

Input: An integer Limit Ouput: Two integers: Number and Sum

1. Enter Limit 2. Set Number = 0. 3. Set Sum = 0. 4. Repeat the following: a. If Sum > Limit, terminate the repitition, otherwise. b. Increment Number by one. c. Add Number to Sum and set equal to Sum. 5. Print Number and Sum.

Page 34: Lesson flow charts 2
Page 35: Lesson flow charts 2
Page 36: Lesson flow charts 2
Page 37: Lesson flow charts 2
Page 38: Lesson flow charts 2