Programming basics

21
PROGRAMMING BASICS Lesson 2

Transcript of Programming basics

PROGRAMMING BASICS

Lesson 2

GO TO THE WIKISPACE!

Click the link to answer the SOCTRATIVE question.

NO-CONFERING!!!

ROOM NUMBER = 954574

www.glyncomputing.wikispaces.com

LESSON OBJECTIVES

Understand the fundamental principals of object orientated programming:

Objects

Commands

Variables

AND

Branching

Loops

Sub-routines

All

Some

ON THE WIKISPACE!

Go to the programming page to get resources you need

USE THE SHEET TO RECORD YOUR PROGRESSYou can use this to help you add to your revision powerpoint!

OBJECTS – SPEND 5 MINS WITH THIS CODE AND IDENTIFY WHICH ARE THE OBJECTS AND WHICH ARE THE COMMANDS?

End

OBJECT- DOGObjects have states.

Dog is brown

Dog is called Barry

AND behaviours

Barry is sitting

Barry is barking

OBJECT- DOG COMMAND!

Barry.fetch(slippers)

UPDATE YOUR SHEET

Objects and Commands!

2mins 2 minutes

End

OBJECT- DOG VARIABLES

Barry.fetch(slippers)

slippers = 2

VARIABLES

Where are the variables in the code?

WRITE YOUR OWN CODE:

At least 4 OBJECTS

At least 3 VARIABLES

Try and include a branch and a loop!

10 minutes

PLENARY

Write your definition of a VARIABLE in socrative

Then

Lets vote on which is the best definition and why

STARTER

Can you draw

a parallel

between this

camel and

anything you

have done so

far in our

programming

project?

CAMEL CASE

I want to make a new program to calculate the interest I am earning on my savings account.

CalculateInterest

LESSON OBJECTIVES

Be able to effectively plan our programming projects:

-Using Pseudocode

-And Flow diagrams

Understand why it is important to use pseudocode and flow diagrams to plan programs.

PLANNING PROGRAMS

Pseudo-code – What is it? Why use it?