SGS - Intro to Coding session

Preview:

DESCRIPTION

Presentation created for use with staff to introduce 'Coding'

Citation preview

Working with ‘CODE’- An introduction to algorithms and pseudo-code.

- A look at Binary digits and how they work

- Beginning LOGO with basic commands

- Sample worksheets and activities

Michael Macnamara 2014

Most people picture something like this when thinking about ‘Coding’

We see the result of that code every day !!

http://www.abc.net.au/btn/story/s3720544.htm

procedure n 1 a: a particular way of accomplishing something or of acting 2: a series of steps followed in a regular definite order. ( Webster's New Collegiate Dictionary )

http://www.youtube.com/watch?v=k0xgjUhEG3U

Start

Insert original

Input 23

Press ‘Go’

Wait

Output = 23

Remove original

Stop

Does copy output equal

input number ?

No

http://code.org/educate/k5

http://csunplugged.org/

http://www.kodugamelab.com/

http://www.alice.org/index.php

http://scratch.mit.edu/

http://pencilcode.net/

http://www.youtube.com/watch?v=b6vHZ95XDwU

Why ‘BINARY NUMBERS’ ?

Computers work on electrical circuits which can have TWO states –OFF or ON

This aligns perfectly to a number system with TWO digits –‘0 & 1’

http://forums.cisco.com/CertCom/game/binary_game_page.htm?site=celc

CISCO online BINARY game ….

To download this game for ‘iPad / iPhone’ or ‘Android’ use this link …https://learningnetwork.cisco.com/docs/DOC-11119

http://teachers.egfi-k12.org/bits-binary/

http://www.mathsisfun.com/binary-number-system.html

http://lightbot.com/hocflash.html

The next few pages are for creating paper copies.

Instruction Shortcut DescriptionSHOWTURTLE ST Shows the Turtle on the screenHIDETURTLE HT Hides the Turtle from the screenFORWARD number FD Moves the Turtle forward according to the number

indicatedBACK number BK Moves the Turtle back according to the number

indicatedRIGHT angle RT Changes the direction of the Turtle by turning it to the

rightLEFT angle LT Changes the direction of the Turtle by turning it to the

leftCLEARSCREEN CS Erase the picture before a new picture is drawnREPEAT number [ ] No shortcut Repeats a command [inside brackets] a number of

timesPENUP PU Lets you move Turtle without leaving a linePENDOWN PD Used after PU to let Turtle leave a line again

The Logo Primitives - Basic Logo CommandsThere about 200 logo commands. It is not necessary to know all of them to draw in logo.

The following instructions are the first you need to know to get started.

Let 1 square = 10 steps.

Write the ‘code’ tomove turtle from‘Start to Finish’ throughthe path.

Write the ‘code’ tomove turtle aroundthe shape outlines.

SQUARE

RECTANGLE

EquilateralTRIANGLE

CIRCLE

Recommended