SlideShare a Scribd company logo
PROGRAMMING    Lesson 2
      BASICS
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           All
       Variables
AND
       Branching
       Loops              Some
       Sub-routines
ON THE WIKISPACE!
Go to the
programming page to
get resources you
need
USE THE SHEET TO
RECORD YOUR
PROGRESS
You 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- DOG
Objects 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!
2 minutes

            2mins


End
OBJECT- DOG
  VARIABLES
Barry.fetch(slippers)
slippers = 2
VARIABLES

 Where are
the
variables
in the
code?
10 minutes
WRITE YOUR OWN CODE:
At least 4 OBJECTS
At least 3 VARIABLES
Try and include a branch and a
loop!
PLENARY
Write your definition of a VARIABLE in socrative
Then
Lets vote on which is the best definition and why
LASAGNE INGREDIENTS
Tomatoes
Dried Lasagne Sheets
Minced Pork
Minced Beef
                        See Recipe for
Homemade Béchamel Sauce Homemade
                          Béchamel Sauce
Can you draw
STARTER     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?
GROUPS OF 3

Write the pseudocode for a program that makes
lasagne

     PROGRAM MakeLasagne:
       <Do stuff>
     END.
BRANCHING OR SELECTION

What if you are cooking for a vegetarian?
You need to branch or select.
Edit your code to reflect this.
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.

More Related Content

Similar to Programming basics (20)

PPT
Project
socubus0527
 
PPT
Introduction to Programming
Chaffey College
 
PPT
Program logic and design
Chaffey College
 
PDF
Object Oriented Programming - Chapter 1 - Introduction.pdf
ephremmulu486
 
PDF
Chuck moorebook2012 01_27
juergenuk
 
PPT
Introduction To Programming
cwarren
 
PPT
programming.ppt
AdrianVANTOPINA
 
PPT
Programming Fundamentals - Lecture 1.ppt
FarhanGhafoor7
 
DOCX
C++ 25 programs Class XII
Saurav Ranjan
 
PPT
computer programming introduction ppt.ppt
AlazarAlemayehu2
 
PDF
Tutor Py
AkramWaseem
 
PPTX
Pseudocode intro (for grade 8 students).pptx
nseaton
 
PPTX
problem_solving - term 1n2 2024_2025 - Slides 1 to 29.pptx
GabriellaCharles1
 
PPTX
Computer Studies 2013 Curriculum framework 11 Notes ppt.pptx
mbricious
 
PPT
Learn Programming with Livecoding.tv http://goo.gl/tIgO1I
livecoding.tv
 
PDF
Basics of Programming - A Review Guide
Benjamin Kissinger
 
PPTX
Fundamentals of programming final
Ricky Recto
 
PPT
Chapter 2- Prog101.ppt
JosephObadiahTuray
 
PPTX
C++ Tutorial
freema48
 
PPTX
Pseudocode
Harsha Madushanka
 
Project
socubus0527
 
Introduction to Programming
Chaffey College
 
Program logic and design
Chaffey College
 
Object Oriented Programming - Chapter 1 - Introduction.pdf
ephremmulu486
 
Chuck moorebook2012 01_27
juergenuk
 
Introduction To Programming
cwarren
 
programming.ppt
AdrianVANTOPINA
 
Programming Fundamentals - Lecture 1.ppt
FarhanGhafoor7
 
C++ 25 programs Class XII
Saurav Ranjan
 
computer programming introduction ppt.ppt
AlazarAlemayehu2
 
Tutor Py
AkramWaseem
 
Pseudocode intro (for grade 8 students).pptx
nseaton
 
problem_solving - term 1n2 2024_2025 - Slides 1 to 29.pptx
GabriellaCharles1
 
Computer Studies 2013 Curriculum framework 11 Notes ppt.pptx
mbricious
 
Learn Programming with Livecoding.tv http://goo.gl/tIgO1I
livecoding.tv
 
Basics of Programming - A Review Guide
Benjamin Kissinger
 
Fundamentals of programming final
Ricky Recto
 
Chapter 2- Prog101.ppt
JosephObadiahTuray
 
C++ Tutorial
freema48
 
Pseudocode
Harsha Madushanka
 

More from mckennadglyn (8)

PPTX
Programming basics
mckennadglyn
 
PPTX
Programming basics
mckennadglyn
 
PPTX
Computer legislation
mckennadglyn
 
PPT
01 -what_is_an_information_system - copy
mckennadglyn
 
PPT
01 -what_is_an_information_system
mckennadglyn
 
PDF
Introduction to python
mckennadglyn
 
PPTX
Logic diagrams starter teacher version
mckennadglyn
 
PPTX
Algorithm itabq
mckennadglyn
 
Programming basics
mckennadglyn
 
Programming basics
mckennadglyn
 
Computer legislation
mckennadglyn
 
01 -what_is_an_information_system - copy
mckennadglyn
 
01 -what_is_an_information_system
mckennadglyn
 
Introduction to python
mckennadglyn
 
Logic diagrams starter teacher version
mckennadglyn
 
Algorithm itabq
mckennadglyn
 
Ad

Programming basics

Editor's Notes

  • #8: What object states and behaviours are in the code?
  • #9: This is a command we could give to a dog
  • #11: 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.
  • #15: Sub-Routine