Introducing 

Prezi AI.

Your new presentation assistant.

Refine, enhance, and tailor your content, source relevant images, and edit visuals quicker than ever before.

Loading…
Transcript

Age calculator pseudo

Things we SHOULD do

✳✱*

input age

if age less than 18 THEN

print child

else THEN

print Adult

Use indentation

Task

Using the paper

in pairs write the Pseudocode for unlocking a mobile phone

Use key terms like print, display, input, add, if, then, else

Converting pseudo

input age becomes.....

age=input("Enter age: ")

if age less than 18 THEN becomes...

Task

if age < 18:

EXT – Modify your pseudocode so that if the head size is 55 cm or less the size is XS

If the head size is 63 or more then the size is XL!

Pseudocode

The code you have just looked at is pseudocode

Half code, half English

It would NOT run if we typed it into IDLE

Helps to plan algorithms

Lesson Objectives

To understand what is meant by the term pseudocode

Learn to write algorithms in pseudocode

Design an algorithm and make it in python

Starter

Use the starter handout to type in and run the colour code!

Python Lesson 4- Pseudocode

Plenary

On your post it note, write down what is meant by the term pseudocode

Learn more about creating dynamic, engaging presentations with Prezi