SlideShare a Scribd company logo
1 of 21
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

Viewers also liked

Lucy Chen portfolio
Lucy Chen portfolioLucy Chen portfolio
Lucy Chen portfolio琦蓁 陳
 
Rodan + Fields Biz Presentation Oct1-2013
Rodan + Fields Biz Presentation Oct1-2013Rodan + Fields Biz Presentation Oct1-2013
Rodan + Fields Biz Presentation Oct1-2013Kris Vandersloot
 
Computer legislation
Computer legislationComputer legislation
Computer legislationmckennadglyn
 
01 -what_is_an_information_system
01  -what_is_an_information_system01  -what_is_an_information_system
01 -what_is_an_information_systemmckennadglyn
 
презентация резидента сколково Freemium 300711
презентация резидента сколково Freemium 300711презентация резидента сколково Freemium 300711
презентация резидента сколково Freemium 300711ggennix
 
Apostila jogos infantis africanos e afro brasileiros
Apostila jogos infantis africanos e afro brasileirosApostila jogos infantis africanos e afro brasileiros
Apostila jogos infantis africanos e afro brasileirosIsis Alves Rodrigues
 
Programming basics
Programming basicsProgramming basics
Programming basicsmckennadglyn
 
Biz presentation post convention 022013
Biz presentation post convention 022013Biz presentation post convention 022013
Biz presentation post convention 022013Kris Vandersloot
 

Viewers also liked (12)

Lucy Chen portfolio
Lucy Chen portfolioLucy Chen portfolio
Lucy Chen portfolio
 
Vvienda proyect1
Vvienda proyect1Vvienda proyect1
Vvienda proyect1
 
Rodan + Fields Biz Presentation Oct1-2013
Rodan + Fields Biz Presentation Oct1-2013Rodan + Fields Biz Presentation Oct1-2013
Rodan + Fields Biz Presentation Oct1-2013
 
Computer legislation
Computer legislationComputer legislation
Computer legislation
 
Proyect1
Proyect1Proyect1
Proyect1
 
01 -what_is_an_information_system
01  -what_is_an_information_system01  -what_is_an_information_system
01 -what_is_an_information_system
 
презентация резидента сколково Freemium 300711
презентация резидента сколково Freemium 300711презентация резидента сколково Freemium 300711
презентация резидента сколково Freemium 300711
 
Apostila jogos infantis africanos e afro brasileiros
Apostila jogos infantis africanos e afro brasileirosApostila jogos infantis africanos e afro brasileiros
Apostila jogos infantis africanos e afro brasileiros
 
Programming basics
Programming basicsProgramming basics
Programming basics
 
Integral
Integral Integral
Integral
 
Biz presentation post convention 022013
Biz presentation post convention 022013Biz presentation post convention 022013
Biz presentation post convention 022013
 
E-Learning
E-LearningE-Learning
E-Learning
 

Similar to Programming basics

A recipe for succeeding with test automation
A recipe for succeeding with test automationA recipe for succeeding with test automation
A recipe for succeeding with test automationBugbustersbcn
 
PyCon 2015 (Py.15): Python Beginner's Tutorial
PyCon 2015 (Py.15): Python Beginner's TutorialPyCon 2015 (Py.15): Python Beginner's Tutorial
PyCon 2015 (Py.15): Python Beginner's TutorialDamian T. Gordon
 
Funsize Sprint School: Product Design Sprints Workshop
Funsize Sprint School: Product Design Sprints WorkshopFunsize Sprint School: Product Design Sprints Workshop
Funsize Sprint School: Product Design Sprints WorkshopAnthony Armendariz
 
Upwork time log and difficulty 20160523
Upwork time log and difficulty 20160523Upwork time log and difficulty 20160523
Upwork time log and difficulty 20160523Sharon Liu
 
Test Driven Infrastructure
Test Driven InfrastructureTest Driven Infrastructure
Test Driven InfrastructureArthur Maltson
 
Create More Content as a designer.
Create More Content as a designer.Create More Content as a designer.
Create More Content as a designer.Ryan Hayward 👋
 
The React Cookbook: Advanced Recipes to Level Up Your Next App
The React Cookbook: Advanced Recipes to Level Up Your Next AppThe React Cookbook: Advanced Recipes to Level Up Your Next App
The React Cookbook: Advanced Recipes to Level Up Your Next AppFITC
 
Agile2011
Agile2011Agile2011
Agile2011Caelum
 
Corpus Bootstrapping with NLTK
Corpus Bootstrapping with NLTKCorpus Bootstrapping with NLTK
Corpus Bootstrapping with NLTKJacob Perkins
 
Global Day of Coderetreat Munich 2017
Global Day of Coderetreat Munich 2017Global Day of Coderetreat Munich 2017
Global Day of Coderetreat Munich 2017David Völkel
 
Lean Content: Marketing Profs B2B
Lean Content: Marketing Profs B2BLean Content: Marketing Profs B2B
Lean Content: Marketing Profs B2BIan Lurie
 
Refactoring: Code it Clean
Refactoring: Code it CleanRefactoring: Code it Clean
Refactoring: Code it CleanAliGermiyanoglu
 
Getting Started With Apex as an Admin by Christopher Lewis
Getting Started With Apex as an Admin by Christopher LewisGetting Started With Apex as an Admin by Christopher Lewis
Getting Started With Apex as an Admin by Christopher LewisSalesforce Admins
 
Df16 getting started with apex as an admin
Df16  getting started with apex as an adminDf16  getting started with apex as an admin
Df16 getting started with apex as an adminChristopher Lewis
 
Product / Market Fit – Our Travels Towards It
Product / Market Fit – Our Travels Towards ItProduct / Market Fit – Our Travels Towards It
Product / Market Fit – Our Travels Towards ItFlowdock
 
Software Craftsmanship - Code Smells - Bloaters
Software Craftsmanship - Code Smells - BloatersSoftware Craftsmanship - Code Smells - Bloaters
Software Craftsmanship - Code Smells - BloatersRajat Singla
 
Lazy, Lazy, Lazy all the things !
Lazy, Lazy, Lazy all the things !Lazy, Lazy, Lazy all the things !
Lazy, Lazy, Lazy all the things !Shaunak Pagnis
 
programming_tutorial_course_ lesson_1.pptx
programming_tutorial_course_ lesson_1.pptxprogramming_tutorial_course_ lesson_1.pptx
programming_tutorial_course_ lesson_1.pptxaboma2hawi
 

Similar to Programming basics (20)

Week 1
Week 1Week 1
Week 1
 
PROTOBAKE
PROTOBAKEPROTOBAKE
PROTOBAKE
 
A recipe for succeeding with test automation
A recipe for succeeding with test automationA recipe for succeeding with test automation
A recipe for succeeding with test automation
 
PyCon 2015 (Py.15): Python Beginner's Tutorial
PyCon 2015 (Py.15): Python Beginner's TutorialPyCon 2015 (Py.15): Python Beginner's Tutorial
PyCon 2015 (Py.15): Python Beginner's Tutorial
 
Funsize Sprint School: Product Design Sprints Workshop
Funsize Sprint School: Product Design Sprints WorkshopFunsize Sprint School: Product Design Sprints Workshop
Funsize Sprint School: Product Design Sprints Workshop
 
Upwork time log and difficulty 20160523
Upwork time log and difficulty 20160523Upwork time log and difficulty 20160523
Upwork time log and difficulty 20160523
 
Test Driven Infrastructure
Test Driven InfrastructureTest Driven Infrastructure
Test Driven Infrastructure
 
Create More Content as a designer.
Create More Content as a designer.Create More Content as a designer.
Create More Content as a designer.
 
The React Cookbook: Advanced Recipes to Level Up Your Next App
The React Cookbook: Advanced Recipes to Level Up Your Next AppThe React Cookbook: Advanced Recipes to Level Up Your Next App
The React Cookbook: Advanced Recipes to Level Up Your Next App
 
Agile2011
Agile2011Agile2011
Agile2011
 
Corpus Bootstrapping with NLTK
Corpus Bootstrapping with NLTKCorpus Bootstrapping with NLTK
Corpus Bootstrapping with NLTK
 
Global Day of Coderetreat Munich 2017
Global Day of Coderetreat Munich 2017Global Day of Coderetreat Munich 2017
Global Day of Coderetreat Munich 2017
 
Lean Content: Marketing Profs B2B
Lean Content: Marketing Profs B2BLean Content: Marketing Profs B2B
Lean Content: Marketing Profs B2B
 
Refactoring: Code it Clean
Refactoring: Code it CleanRefactoring: Code it Clean
Refactoring: Code it Clean
 
Getting Started With Apex as an Admin by Christopher Lewis
Getting Started With Apex as an Admin by Christopher LewisGetting Started With Apex as an Admin by Christopher Lewis
Getting Started With Apex as an Admin by Christopher Lewis
 
Df16 getting started with apex as an admin
Df16  getting started with apex as an adminDf16  getting started with apex as an admin
Df16 getting started with apex as an admin
 
Product / Market Fit – Our Travels Towards It
Product / Market Fit – Our Travels Towards ItProduct / Market Fit – Our Travels Towards It
Product / Market Fit – Our Travels Towards It
 
Software Craftsmanship - Code Smells - Bloaters
Software Craftsmanship - Code Smells - BloatersSoftware Craftsmanship - Code Smells - Bloaters
Software Craftsmanship - Code Smells - Bloaters
 
Lazy, Lazy, Lazy all the things !
Lazy, Lazy, Lazy all the things !Lazy, Lazy, Lazy all the things !
Lazy, Lazy, Lazy all the things !
 
programming_tutorial_course_ lesson_1.pptx
programming_tutorial_course_ lesson_1.pptxprogramming_tutorial_course_ lesson_1.pptx
programming_tutorial_course_ lesson_1.pptx
 

Programming basics

Editor's Notes

  1. What object states and behaviours are in the code?
  2. This is a command we could give to a dog
  3. 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.
  4. Sub-Routine