This document provides instructions for programming lesson 2. It discusses objects, commands, variables, branching, loops and sub-routines. It instructs students to go to a wikispace website to answer questions and find resources. It provides examples of objects, commands, and variables using a dog named Barry as an example. It asks students to write their own code using at least 4 objects, 3 variables, and including a branch and loop. It also discusses variables, pseudocode, and flow diagrams for planning programs.
2. GO TO THE WIKISPACE!
Click the link to answer the
SOCTRATIVE question.
NO-CONFERING!!!
ROOM NUMBER =
954574
www.glyncomputing.wikispaces.com
3. LESSON OBJECTIVES
Understand the fundamental principals of object orientated programming:
Objects
Commands All
Variables
AND
Branching
Loops Some
Sub-routines
15. Can you draw
STARTER a parallel
between this
camel and
anything you
have done so
far in our
programming
project?
16. CAMEL CASE
I want to make a new program to calculate the
interest I am earning on my savings account.
CalculateInterest
17. 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.
19. GROUPS OF 3
Write the pseudocode for a program that makes
lasagne
PROGRAM MakeLasagne:
<Do stuff>
END.
20. BRANCHING OR SELECTION
What if you are cooking for a vegetarian?
You need to branch or select.
Edit your code to reflect this.
21. LOOPS OR ITERATION
What if you need to tell the computer to keep doing
something until a condition occurs?
For example; I want to keep frying the mince until it
is brown.
Notes de l'éditeur
What object states and behaviours are in the code?
This is a command we could give to a dog
This is how Barry will be able to remember what he needs to do.It’s a piece of information with a name for that information.