SlideShare une entreprise Scribd logo
1  sur  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.

Contenu connexe

Similaire à 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
 

Similaire à 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
 

Plus de mckennadglyn

Programming basics
Programming basicsProgramming basics
Programming basicsmckennadglyn
 
Programming basics
Programming basicsProgramming basics
Programming basicsmckennadglyn
 
Computer legislation
Computer legislationComputer legislation
Computer legislationmckennadglyn
 
01 -what_is_an_information_system - copy
01  -what_is_an_information_system - copy01  -what_is_an_information_system - copy
01 -what_is_an_information_system - copymckennadglyn
 
01 -what_is_an_information_system
01  -what_is_an_information_system01  -what_is_an_information_system
01 -what_is_an_information_systemmckennadglyn
 
Introduction to python
Introduction to pythonIntroduction to python
Introduction to pythonmckennadglyn
 
Logic diagrams starter teacher version
Logic diagrams starter teacher versionLogic diagrams starter teacher version
Logic diagrams starter teacher versionmckennadglyn
 

Plus de mckennadglyn (8)

Programming basics
Programming basicsProgramming basics
Programming basics
 
Programming basics
Programming basicsProgramming basics
Programming basics
 
Computer legislation
Computer legislationComputer legislation
Computer legislation
 
01 -what_is_an_information_system - copy
01  -what_is_an_information_system - copy01  -what_is_an_information_system - copy
01 -what_is_an_information_system - copy
 
01 -what_is_an_information_system
01  -what_is_an_information_system01  -what_is_an_information_system
01 -what_is_an_information_system
 
Introduction to python
Introduction to pythonIntroduction to python
Introduction to python
 
Logic diagrams starter teacher version
Logic diagrams starter teacher versionLogic diagrams starter teacher version
Logic diagrams starter teacher version
 
Algorithm itabq
Algorithm itabqAlgorithm itabq
Algorithm itabq
 

Dernier

TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptxMaritesTamaniVerdade
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxVishalSingh1417
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseAnaAcapella
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxnegromaestrong
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfNirmal Dwivedi
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...ZurliaSoop
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17Celine George
 

Dernier (20)

TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Asian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptxAsian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptx
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 

Programming basics

Notes de l'éditeur

  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