SlideShare a Scribd company logo
1 of 37
Download to read offline
Computer Programming




Ed Burns, Oracle Corporation
Computer Programming
                 What is a program?





 A computer program is a file, just like a
document in Microsoft Word or a picture in
KidPix.



               Copyright 2012 Ed Burns, Creative Commons License   2
Computer Programming
                  What is a program?

        +        =





 With Microsoft Word or KidPix you use the
computer to create text or images to be read or
viewed by humans.

            +        =


                Copyright 2012 Ed Burns, Creative Commons License   3
Computer Programming
                  What is a program?

        +        =





 With a computer program, you use the
computer to create instructions to be read by a
computer!



                Copyright 2012 Ed Burns, Creative Commons License   4
Computer Programming
               What are instructions?

       +        =




 The instructions that make up a computer
program can be really simple.




               Copyright 2012 Ed Burns, Creative Commons License   5
Computer Programming
                What are instructions?

        +        =




 The instructions that make up a computer
program can be really simple...



    print “Hello world!”


                Copyright 2012 Ed Burns, Creative Commons License   6
Computer Programming
                What are instructions?

        +        =




...or very complex.






    launch “space shuttle”



                Copyright 2012 Ed Burns, Creative Commons License   7
Computer Programming
                What are instructions?

        +        =





 ...or very complex.

 Instructions are also called statements.




                Copyright 2012 Ed Burns, Creative Commons License   8
Computer Programming
             Why are programs special?





 Since the beginning of humanity, there have
only ever been five different ways that humans
can store and transmit knowledge!



               Copyright 2012 Ed Burns, Creative Commons License   9
Computer Programming
            Why are programs special?





 Brains

 From the beginning
of humans



              Copyright 2012 Ed Burns, Creative Commons License   10
Computer Programming
             Why are programs special?





 Tools

 Scientists say
3.5 million years ago



               Copyright 2012 Ed Burns, Creative Commons License   11
Computer Programming
             Why are programs special?





 Books

 600 years
ago



               Copyright 2012 Ed Burns, Creative Commons License   12
Computer Programming
           Why are programs special?





 Recorded sound and images

 152 years ago




             Copyright 2012 Ed Burns, Creative Commons License   13
Computer Programming
           Why are programs special?





 Computer programs

 68 years ago




             Copyright 2012 Ed Burns, Creative Commons License   14
Computer Programming
             What does a program do?





  Because computer programs are so special,
there are lots of special words to talk about
them.

 The first special word describes what a
computer does with a program.


               Copyright 2012 Ed Burns, Creative Commons License   15
Computer Programming
   What does a program do?




    Copyright 2012 Ed Burns, Creative Commons License   16
Computer Programming
            What does a program do?





 It runs.

 What runs the program?


              Copyright 2012 Ed Burns, Creative Commons License   17
Computer Programming
             What does a program do?





 When a program runs, the computer looks at
each instruction and does what the instruction
says, one instruction at a time.

               Copyright 2012 Ed Burns, Creative Commons License   18
Computer Programming
              Who makes programs?





 A person who writes a computer program is
called a Programmer.

 You can be a programmer too!



              Copyright 2012 Ed Burns, Creative Commons License   19
Computer Programming
              Who makes programs?





 A person who writes a computer program is
called a Programmer.

 You can be a programmer too!

 Let’s get started!



              Copyright 2012 Ed Burns, Creative Commons License   20
Computer Programming




Getting Started With Programming
          Copyright 2012 Ed Burns, Creative Commons License   21
Computer Programming
                  Simple instructions




Five basic concepts



  Variables

  If and if else statements

  Lists

  Loops

  Sub-routines


               Copyright 2012 Ed Burns, Creative Commons License   22
Computer Programming
                  Simple instructions


variable





 A place to store information so the computer
can work with it

Real world example: What’s for lunch?



  Hot dog

  Hamburger
               Copyright 2012 Ed Burns, Creative Commons License   23
Computer Programming
                  Simple instructions


variable





 A place to store information so the computer
can work with it

 Programming example: What’s for lunch?
lunch = “Hot Dog”;
lunch = “Hamburger”;
               Copyright 2012 Ed Burns, Creative Commons License   24
Computer Programming
                   Simple instructions



if





Make choices based on the value of a variable





 Real world example:
If lunch is hamburger, get ketchup. If lunch is
hot dog, get mustard.

                Copyright 2012 Ed Burns, Creative Commons License   25
Computer Programming
                       Simple instructions

 if

 Make choices based on the value of a variable

 Programming example:
if (lunch.equals(“Hamburger”)) {
   getKetchup();
}
if (lunch.equals(“Hot Dog”)) {
   getMustard();
}            Copyright 2012 Ed Burns, Creative Commons License   26
Computer Programming
                  Simple instructions


if else





 Use when you only have two choices to choose
from.

 Real world example:
If lunch is hamburger, get ketchup, otherwise,
get mustard.
               Copyright 2012 Ed Burns, Creative Commons License   27
Computer Programming
                       Simple instructions

 if else

 Use when you only have two choices to choose
from.

 Programming example:
if (lunch.equals(“Hamburger”)) {
   getKetchup();
} else {
   getMustard();
}            Copyright 2012 Ed Burns, Creative Commons License   28
Computer Programming
                   Simple instructions
lists





 A special kind of variable that holds a list of
values

 Real world example:
Your lunch choices are: hamburger, hot dog,
chicken nuggets or green salad

 The items in the list are called elements. The
lunch choices list has four elements.
                Copyright 2012 Ed Burns, Creative Commons License   29
Computer Programming
lists
                    Simple instructions


 A special kind of variable that holds a list of
values

 Programming example:
lunchChoices = { “hamburger”,
   “hot dog”,“chicken nuggets”,
   “green salad” };
print lunchChoices.size();

Prints out “4”.

                  Copyright 2012 Ed Burns, Creative Commons License   30
Computer Programming
                  Simple instructions


loops





 A statement that lets you do something with
each element in a list.

 Real world example:
Look at the lunch menu and decide what to eat.


               Copyright 2012 Ed Burns, Creative Commons License   31
Computer Programming
                  Simple instructions
loops





 A statement that lets you do something with
each element in a list.

 Programming example:
for each (item : lunchChoices) {
   if (iLikeIt(item)) {
     eat(item);
   }
}
               Copyright 2012 Ed Burns, Creative Commons License   32
Computer Programming
                             Simple instructions

 Subroutines

 A program within a program. Basically a way
to organize your program so it’s easier to read.

 Real world example:
To eat lunch, you must:
 
   Decide what to eat
 
   Buy it
 
   Take it to your table
 
   Eat it.       Copyright 2012 Ed Burns, Creative Commons License   33
Computer Programming
                  Simple instructions
Subroutines





 A program within a program. Basically a way
to organize your program so it’s easier to read.

 Programming example:
lunch = readMenuAndPickItem();
buyItem(lunch);
table = chooseTable();
eatLunchAtTable(lunch, table);
               Copyright 2012 Ed Burns, Creative Commons License   34
Computer Programming
                  Simple instructions
Subroutines





 Programming example:
lunch = readMenuAndPickItem();
buyItem(lunch);
table = chooseTable();
eatLunchAtTable(lunch, table);

 Subroutines need information to get their work
done. The pieces of information given to a
subroutine are called arguments.
               Copyright 2012 Ed Burns, Creative Commons License   35
Computer Programming
                  Simple instructions
                       Review



Five basic concepts



  Variables

  If and if else statements

  Lists

  Loops

  Sub-routines


               Copyright 2012 Ed Burns, Creative Commons License   36
Computer Programming




Ed Burns, Oracle Corporation
       Copyright 2012 Ed Burns, Creative Commons License   37

More Related Content

What's hot

Programming languages
Programming languagesProgramming languages
Programming languagesvito_carleone
 
Computer memory
Computer memoryComputer memory
Computer memoryJayapal Jp
 
Basic_Computer_Skills, A_seminar_by_Mohan_Kumar_G_Lecturer
Basic_Computer_Skills, A_seminar_by_Mohan_Kumar_G_LecturerBasic_Computer_Skills, A_seminar_by_Mohan_Kumar_G_Lecturer
Basic_Computer_Skills, A_seminar_by_Mohan_Kumar_G_LecturerMohan Kumar G
 
iGCSE Theory Unit 6 – Effects of Using ICT
iGCSE Theory Unit 6 – Effects of Using ICTiGCSE Theory Unit 6 – Effects of Using ICT
iGCSE Theory Unit 6 – Effects of Using ICTjonspav
 
Programming Fundamentals lecture 2
Programming Fundamentals lecture 2Programming Fundamentals lecture 2
Programming Fundamentals lecture 2REHAN IJAZ
 
An introduction to coding
An introduction to codingAn introduction to coding
An introduction to codingiain bruce
 
Compilers and interpreters
Compilers and interpretersCompilers and interpreters
Compilers and interpretersRAJU KATHI
 
Types of Programming Languages
Types of Programming LanguagesTypes of Programming Languages
Types of Programming LanguagesJuhi Bhoyar
 
Programming Fundamentals lecture 1
Programming Fundamentals lecture 1Programming Fundamentals lecture 1
Programming Fundamentals lecture 1REHAN IJAZ
 
Types and components of computers
Types and components of computersTypes and components of computers
Types and components of computersCik Na Shohaili
 
Introduction to Basic Computer Concepts Presentation
Introduction to Basic Computer Concepts PresentationIntroduction to Basic Computer Concepts Presentation
Introduction to Basic Computer Concepts PresentationAna Tan
 
Programming Fundamental Presentation
Programming Fundamental PresentationProgramming Fundamental Presentation
Programming Fundamental Presentationfazli khaliq
 
Generation of computer languages
Generation of computer languagesGeneration of computer languages
Generation of computer languageskitturashmikittu
 
Language processor
Language processorLanguage processor
Language processorAbha Damani
 
Programming languages
Programming languagesProgramming languages
Programming languagesAsmasum
 

What's hot (20)

Programming languages
Programming languagesProgramming languages
Programming languages
 
Computer Languages
Computer Languages Computer Languages
Computer Languages
 
Computer memory
Computer memoryComputer memory
Computer memory
 
Basic_Computer_Skills, A_seminar_by_Mohan_Kumar_G_Lecturer
Basic_Computer_Skills, A_seminar_by_Mohan_Kumar_G_LecturerBasic_Computer_Skills, A_seminar_by_Mohan_Kumar_G_Lecturer
Basic_Computer_Skills, A_seminar_by_Mohan_Kumar_G_Lecturer
 
iGCSE Theory Unit 6 – Effects of Using ICT
iGCSE Theory Unit 6 – Effects of Using ICTiGCSE Theory Unit 6 – Effects of Using ICT
iGCSE Theory Unit 6 – Effects of Using ICT
 
Computer System Organization
Computer System OrganizationComputer System Organization
Computer System Organization
 
Programming Fundamentals lecture 2
Programming Fundamentals lecture 2Programming Fundamentals lecture 2
Programming Fundamentals lecture 2
 
An introduction to coding
An introduction to codingAn introduction to coding
An introduction to coding
 
Compilers and interpreters
Compilers and interpretersCompilers and interpreters
Compilers and interpreters
 
Types of Programming Languages
Types of Programming LanguagesTypes of Programming Languages
Types of Programming Languages
 
Programming Fundamentals lecture 1
Programming Fundamentals lecture 1Programming Fundamentals lecture 1
Programming Fundamentals lecture 1
 
Types and components of computers
Types and components of computersTypes and components of computers
Types and components of computers
 
INTRODUCTION TO COMPUTERS
INTRODUCTION TO COMPUTERSINTRODUCTION TO COMPUTERS
INTRODUCTION TO COMPUTERS
 
Introduction to computing
Introduction to computingIntroduction to computing
Introduction to computing
 
Introduction to Basic Computer Concepts Presentation
Introduction to Basic Computer Concepts PresentationIntroduction to Basic Computer Concepts Presentation
Introduction to Basic Computer Concepts Presentation
 
Programming Fundamental Presentation
Programming Fundamental PresentationProgramming Fundamental Presentation
Programming Fundamental Presentation
 
Generation of computer languages
Generation of computer languagesGeneration of computer languages
Generation of computer languages
 
Language processor
Language processorLanguage processor
Language processor
 
Introduction to software
Introduction to softwareIntroduction to software
Introduction to software
 
Programming languages
Programming languagesProgramming languages
Programming languages
 

Similar to Kids computer-programming

Lavacon12 rethink content paper to tablet
Lavacon12 rethink content paper to tabletLavacon12 rethink content paper to tablet
Lavacon12 rethink content paper to tabletMaxwell Hoffmann
 
Itroduction about java
Itroduction about javaItroduction about java
Itroduction about javasrmohan06
 
An overview of computers and programming languages
An overview of computers and programming languages An overview of computers and programming languages
An overview of computers and programming languages Ahmad Idrees
 
13 Best IDE for Web Development Projects in 2022.pdf
13 Best IDE for Web Development Projects in 2022.pdf13 Best IDE for Web Development Projects in 2022.pdf
13 Best IDE for Web Development Projects in 2022.pdfmithranmithran1
 
Computer_Programming_Fundamentals in cpp
Computer_Programming_Fundamentals in cppComputer_Programming_Fundamentals in cpp
Computer_Programming_Fundamentals in cppmeharikiros2
 
[Android] Introduction to Android Programming
[Android] Introduction to Android Programming[Android] Introduction to Android Programming
[Android] Introduction to Android ProgrammingNikmesoft Ltd
 
#2 open source introduction
#2 open source introduction#2 open source introduction
#2 open source introductionsscholle
 
Learn android app_development(1)_intro
Learn android app_development(1)_introLearn android app_development(1)_intro
Learn android app_development(1)_introAdel Jaffan
 
Student pc productivity presentation ppt
Student pc productivity presentation pptStudent pc productivity presentation ppt
Student pc productivity presentation pptRyan Joyce
 
201 how to use the computer
201 how to use the computer201 how to use the computer
201 how to use the computerSatoru Hoshiba
 
17h25_closing_keynote_stefano_stinchi_-_innovation_story.pdf
17h25_closing_keynote_stefano_stinchi_-_innovation_story.pdf17h25_closing_keynote_stefano_stinchi_-_innovation_story.pdf
17h25_closing_keynote_stefano_stinchi_-_innovation_story.pdfBrunoAtti1
 
androidPramming.ppt
androidPramming.pptandroidPramming.ppt
androidPramming.pptBijayKc16
 
Latest Android App Development Tools 2019
Latest Android App Development Tools 2019Latest Android App Development Tools 2019
Latest Android App Development Tools 2019Elijahj Williams
 
Android App Development Intro at ESC SV 2012
Android App Development Intro at ESC SV 2012Android App Development Intro at ESC SV 2012
Android App Development Intro at ESC SV 2012Opersys inc.
 
Power point lesson 04
Power point lesson 04Power point lesson 04
Power point lesson 04heidirobison
 
Chapter 01 - introduction for C++
Chapter 01 - introduction for C++Chapter 01 - introduction for C++
Chapter 01 - introduction for C++wahida_f6
 

Similar to Kids computer-programming (20)

Lavacon12 rethink content paper to tablet
Lavacon12 rethink content paper to tabletLavacon12 rethink content paper to tablet
Lavacon12 rethink content paper to tablet
 
Itroduction about java
Itroduction about javaItroduction about java
Itroduction about java
 
An overview of computers and programming languages
An overview of computers and programming languages An overview of computers and programming languages
An overview of computers and programming languages
 
13 Best IDE for Web Development Projects in 2022.pdf
13 Best IDE for Web Development Projects in 2022.pdf13 Best IDE for Web Development Projects in 2022.pdf
13 Best IDE for Web Development Projects in 2022.pdf
 
Computer_Programming_Fundamentals in cpp
Computer_Programming_Fundamentals in cppComputer_Programming_Fundamentals in cpp
Computer_Programming_Fundamentals in cpp
 
[Android] Introduction to Android Programming
[Android] Introduction to Android Programming[Android] Introduction to Android Programming
[Android] Introduction to Android Programming
 
Computer appreciation
Computer appreciationComputer appreciation
Computer appreciation
 
What's in an Android?
What's in an Android?What's in an Android?
What's in an Android?
 
#2 open source introduction
#2 open source introduction#2 open source introduction
#2 open source introduction
 
Learn android app_development(1)_intro
Learn android app_development(1)_introLearn android app_development(1)_intro
Learn android app_development(1)_intro
 
Student pc productivity presentation ppt
Student pc productivity presentation pptStudent pc productivity presentation ppt
Student pc productivity presentation ppt
 
201 how to use the computer
201 how to use the computer201 how to use the computer
201 how to use the computer
 
17h25_closing_keynote_stefano_stinchi_-_innovation_story.pdf
17h25_closing_keynote_stefano_stinchi_-_innovation_story.pdf17h25_closing_keynote_stefano_stinchi_-_innovation_story.pdf
17h25_closing_keynote_stefano_stinchi_-_innovation_story.pdf
 
androidPramming.ppt
androidPramming.pptandroidPramming.ppt
androidPramming.ppt
 
Latest Android App Development Tools 2019
Latest Android App Development Tools 2019Latest Android App Development Tools 2019
Latest Android App Development Tools 2019
 
Training android
Training androidTraining android
Training android
 
Android App Development Intro at ESC SV 2012
Android App Development Intro at ESC SV 2012Android App Development Intro at ESC SV 2012
Android App Development Intro at ESC SV 2012
 
Lecture 1-3.ppt
Lecture 1-3.pptLecture 1-3.ppt
Lecture 1-3.ppt
 
Power point lesson 04
Power point lesson 04Power point lesson 04
Power point lesson 04
 
Chapter 01 - introduction for C++
Chapter 01 - introduction for C++Chapter 01 - introduction for C++
Chapter 01 - introduction for C++
 

More from Edward Burns

Developer Career Masterplan
Developer Career MasterplanDeveloper Career Masterplan
Developer Career MasterplanEdward Burns
 
Jakarta EE 11 Status Update​
Jakarta EE 11 Status Update​Jakarta EE 11 Status Update​
Jakarta EE 11 Status Update​Edward Burns
 
Sponsored Session: Please touch that dial!
Sponsored Session: Please touch that dial!Sponsored Session: Please touch that dial!
Sponsored Session: Please touch that dial!Edward Burns
 
How modernizing enterprise applications gives you a competitive advantage
How modernizing enterprise applications gives you a competitive advantageHow modernizing enterprise applications gives you a competitive advantage
How modernizing enterprise applications gives you a competitive advantageEdward Burns
 
Wie Azure Jakarta EE Nutzt
Wie Azure Jakarta EE NutztWie Azure Jakarta EE Nutzt
Wie Azure Jakarta EE NutztEdward Burns
 
Practical lessons from customers performing digital transformation with Azure
Practical lessons from customers performing digital transformation with AzurePractical lessons from customers performing digital transformation with Azure
Practical lessons from customers performing digital transformation with AzureEdward Burns
 
wls-azure-devnexus-2022.pdf
wls-azure-devnexus-2022.pdfwls-azure-devnexus-2022.pdf
wls-azure-devnexus-2022.pdfEdward Burns
 
Jakarta EE und Microprofile sind bei Azure zu Hause
Jakarta EE und Microprofile sind bei Azure zu HauseJakarta EE und Microprofile sind bei Azure zu Hause
Jakarta EE und Microprofile sind bei Azure zu HauseEdward Burns
 
Java on Your Terms with Azure
Java on Your Terms with AzureJava on Your Terms with Azure
Java on Your Terms with AzureEdward Burns
 
Wars I’ve Seen From Java EE to Spring and more, Azure has you covered
Wars I’ve SeenFrom Java EE to Spring and more, Azure has you coveredWars I’ve SeenFrom Java EE to Spring and more, Azure has you covered
Wars I’ve Seen From Java EE to Spring and more, Azure has you coveredEdward Burns
 
HTTP/2 Comes to Java: Servlet 4.0 and what it means for the Java/Jakarta EE e...
HTTP/2 Comes to Java: Servlet 4.0 and what it means for the Java/Jakarta EE e...HTTP/2 Comes to Java: Servlet 4.0 and what it means for the Java/Jakarta EE e...
HTTP/2 Comes to Java: Servlet 4.0 and what it means for the Java/Jakarta EE e...Edward Burns
 
Programming Language Platform Growth: Table Stakes or Deal Makes?
Programming Language Platform Growth: Table Stakes or Deal Makes?Programming Language Platform Growth: Table Stakes or Deal Makes?
Programming Language Platform Growth: Table Stakes or Deal Makes?Edward Burns
 
Programming Language Platform Growth: Table Stakes or Deal Makes?
Programming Language Platform Growth: Table Stakes or Deal Makes?Programming Language Platform Growth: Table Stakes or Deal Makes?
Programming Language Platform Growth: Table Stakes or Deal Makes?Edward Burns
 
Building a Serverless State Service for the Cloud
Building a Serverless State Service for the CloudBuilding a Serverless State Service for the Cloud
Building a Serverless State Service for the CloudEdward Burns
 
Servlet 4.0 at GeekOut 2015
Servlet 4.0 at GeekOut 2015Servlet 4.0 at GeekOut 2015
Servlet 4.0 at GeekOut 2015Edward Burns
 
Burns jsf-confess-2015
Burns jsf-confess-2015Burns jsf-confess-2015
Burns jsf-confess-2015Edward Burns
 
JSF 2.2 Input Output JavaLand 2015
JSF 2.2 Input Output JavaLand 2015JSF 2.2 Input Output JavaLand 2015
JSF 2.2 Input Output JavaLand 2015Edward Burns
 
Java EE 7 from an HTML5 Perspective, JavaLand 2015
Java EE 7 from an HTML5 Perspective, JavaLand 2015Java EE 7 from an HTML5 Perspective, JavaLand 2015
Java EE 7 from an HTML5 Perspective, JavaLand 2015Edward Burns
 
HTTP/2 comes to Java. What Servlet 4.0 means to you. DevNexus 2015
HTTP/2 comes to Java.  What Servlet 4.0 means to you. DevNexus 2015HTTP/2 comes to Java.  What Servlet 4.0 means to you. DevNexus 2015
HTTP/2 comes to Java. What Servlet 4.0 means to you. DevNexus 2015Edward Burns
 
JSF 2.3 Adopt-a-JSR 10 Minute Infodeck
JSF 2.3 Adopt-a-JSR 10 Minute InfodeckJSF 2.3 Adopt-a-JSR 10 Minute Infodeck
JSF 2.3 Adopt-a-JSR 10 Minute InfodeckEdward Burns
 

More from Edward Burns (20)

Developer Career Masterplan
Developer Career MasterplanDeveloper Career Masterplan
Developer Career Masterplan
 
Jakarta EE 11 Status Update​
Jakarta EE 11 Status Update​Jakarta EE 11 Status Update​
Jakarta EE 11 Status Update​
 
Sponsored Session: Please touch that dial!
Sponsored Session: Please touch that dial!Sponsored Session: Please touch that dial!
Sponsored Session: Please touch that dial!
 
How modernizing enterprise applications gives you a competitive advantage
How modernizing enterprise applications gives you a competitive advantageHow modernizing enterprise applications gives you a competitive advantage
How modernizing enterprise applications gives you a competitive advantage
 
Wie Azure Jakarta EE Nutzt
Wie Azure Jakarta EE NutztWie Azure Jakarta EE Nutzt
Wie Azure Jakarta EE Nutzt
 
Practical lessons from customers performing digital transformation with Azure
Practical lessons from customers performing digital transformation with AzurePractical lessons from customers performing digital transformation with Azure
Practical lessons from customers performing digital transformation with Azure
 
wls-azure-devnexus-2022.pdf
wls-azure-devnexus-2022.pdfwls-azure-devnexus-2022.pdf
wls-azure-devnexus-2022.pdf
 
Jakarta EE und Microprofile sind bei Azure zu Hause
Jakarta EE und Microprofile sind bei Azure zu HauseJakarta EE und Microprofile sind bei Azure zu Hause
Jakarta EE und Microprofile sind bei Azure zu Hause
 
Java on Your Terms with Azure
Java on Your Terms with AzureJava on Your Terms with Azure
Java on Your Terms with Azure
 
Wars I’ve Seen From Java EE to Spring and more, Azure has you covered
Wars I’ve SeenFrom Java EE to Spring and more, Azure has you coveredWars I’ve SeenFrom Java EE to Spring and more, Azure has you covered
Wars I’ve Seen From Java EE to Spring and more, Azure has you covered
 
HTTP/2 Comes to Java: Servlet 4.0 and what it means for the Java/Jakarta EE e...
HTTP/2 Comes to Java: Servlet 4.0 and what it means for the Java/Jakarta EE e...HTTP/2 Comes to Java: Servlet 4.0 and what it means for the Java/Jakarta EE e...
HTTP/2 Comes to Java: Servlet 4.0 and what it means for the Java/Jakarta EE e...
 
Programming Language Platform Growth: Table Stakes or Deal Makes?
Programming Language Platform Growth: Table Stakes or Deal Makes?Programming Language Platform Growth: Table Stakes or Deal Makes?
Programming Language Platform Growth: Table Stakes or Deal Makes?
 
Programming Language Platform Growth: Table Stakes or Deal Makes?
Programming Language Platform Growth: Table Stakes or Deal Makes?Programming Language Platform Growth: Table Stakes or Deal Makes?
Programming Language Platform Growth: Table Stakes or Deal Makes?
 
Building a Serverless State Service for the Cloud
Building a Serverless State Service for the CloudBuilding a Serverless State Service for the Cloud
Building a Serverless State Service for the Cloud
 
Servlet 4.0 at GeekOut 2015
Servlet 4.0 at GeekOut 2015Servlet 4.0 at GeekOut 2015
Servlet 4.0 at GeekOut 2015
 
Burns jsf-confess-2015
Burns jsf-confess-2015Burns jsf-confess-2015
Burns jsf-confess-2015
 
JSF 2.2 Input Output JavaLand 2015
JSF 2.2 Input Output JavaLand 2015JSF 2.2 Input Output JavaLand 2015
JSF 2.2 Input Output JavaLand 2015
 
Java EE 7 from an HTML5 Perspective, JavaLand 2015
Java EE 7 from an HTML5 Perspective, JavaLand 2015Java EE 7 from an HTML5 Perspective, JavaLand 2015
Java EE 7 from an HTML5 Perspective, JavaLand 2015
 
HTTP/2 comes to Java. What Servlet 4.0 means to you. DevNexus 2015
HTTP/2 comes to Java.  What Servlet 4.0 means to you. DevNexus 2015HTTP/2 comes to Java.  What Servlet 4.0 means to you. DevNexus 2015
HTTP/2 comes to Java. What Servlet 4.0 means to you. DevNexus 2015
 
JSF 2.3 Adopt-a-JSR 10 Minute Infodeck
JSF 2.3 Adopt-a-JSR 10 Minute InfodeckJSF 2.3 Adopt-a-JSR 10 Minute Infodeck
JSF 2.3 Adopt-a-JSR 10 Minute Infodeck
 

Recently uploaded

Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingTeacherCyreneCayanan
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...Sapna Thakur
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
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
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...PsychoTech Services
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 

Recently uploaded (20)

Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
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
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 

Kids computer-programming

  • 1. Computer Programming Ed Burns, Oracle Corporation
  • 2. Computer Programming What is a program?  A computer program is a file, just like a document in Microsoft Word or a picture in KidPix. Copyright 2012 Ed Burns, Creative Commons License 2
  • 3. Computer Programming What is a program? + =  With Microsoft Word or KidPix you use the computer to create text or images to be read or viewed by humans. + = Copyright 2012 Ed Burns, Creative Commons License 3
  • 4. Computer Programming What is a program? + =  With a computer program, you use the computer to create instructions to be read by a computer! Copyright 2012 Ed Burns, Creative Commons License 4
  • 5. Computer Programming What are instructions? + =  The instructions that make up a computer program can be really simple. Copyright 2012 Ed Burns, Creative Commons License 5
  • 6. Computer Programming What are instructions? + =  The instructions that make up a computer program can be really simple...  print “Hello world!” Copyright 2012 Ed Burns, Creative Commons License 6
  • 7. Computer Programming What are instructions? + = ...or very complex.   launch “space shuttle” Copyright 2012 Ed Burns, Creative Commons License 7
  • 8. Computer Programming What are instructions? + =  ...or very complex.  Instructions are also called statements. Copyright 2012 Ed Burns, Creative Commons License 8
  • 9. Computer Programming Why are programs special?  Since the beginning of humanity, there have only ever been five different ways that humans can store and transmit knowledge! Copyright 2012 Ed Burns, Creative Commons License 9
  • 10. Computer Programming Why are programs special?  Brains  From the beginning of humans Copyright 2012 Ed Burns, Creative Commons License 10
  • 11. Computer Programming Why are programs special?  Tools  Scientists say 3.5 million years ago Copyright 2012 Ed Burns, Creative Commons License 11
  • 12. Computer Programming Why are programs special?  Books  600 years ago Copyright 2012 Ed Burns, Creative Commons License 12
  • 13. Computer Programming Why are programs special?  Recorded sound and images  152 years ago Copyright 2012 Ed Burns, Creative Commons License 13
  • 14. Computer Programming Why are programs special?  Computer programs  68 years ago Copyright 2012 Ed Burns, Creative Commons License 14
  • 15. Computer Programming What does a program do?  Because computer programs are so special, there are lots of special words to talk about them.  The first special word describes what a computer does with a program. Copyright 2012 Ed Burns, Creative Commons License 15
  • 16. Computer Programming What does a program do? Copyright 2012 Ed Burns, Creative Commons License 16
  • 17. Computer Programming What does a program do?  It runs.  What runs the program? Copyright 2012 Ed Burns, Creative Commons License 17
  • 18. Computer Programming What does a program do?  When a program runs, the computer looks at each instruction and does what the instruction says, one instruction at a time. Copyright 2012 Ed Burns, Creative Commons License 18
  • 19. Computer Programming Who makes programs?  A person who writes a computer program is called a Programmer.  You can be a programmer too! Copyright 2012 Ed Burns, Creative Commons License 19
  • 20. Computer Programming Who makes programs?  A person who writes a computer program is called a Programmer.  You can be a programmer too!  Let’s get started! Copyright 2012 Ed Burns, Creative Commons License 20
  • 21. Computer Programming Getting Started With Programming Copyright 2012 Ed Burns, Creative Commons License 21
  • 22. Computer Programming Simple instructions Five basic concepts   Variables  If and if else statements  Lists  Loops  Sub-routines Copyright 2012 Ed Burns, Creative Commons License 22
  • 23. Computer Programming Simple instructions variable   A place to store information so the computer can work with it Real world example: What’s for lunch?   Hot dog  Hamburger Copyright 2012 Ed Burns, Creative Commons License 23
  • 24. Computer Programming Simple instructions variable   A place to store information so the computer can work with it  Programming example: What’s for lunch? lunch = “Hot Dog”; lunch = “Hamburger”; Copyright 2012 Ed Burns, Creative Commons License 24
  • 25. Computer Programming Simple instructions if  Make choices based on the value of a variable   Real world example: If lunch is hamburger, get ketchup. If lunch is hot dog, get mustard. Copyright 2012 Ed Burns, Creative Commons License 25
  • 26. Computer Programming Simple instructions  if  Make choices based on the value of a variable  Programming example: if (lunch.equals(“Hamburger”)) { getKetchup(); } if (lunch.equals(“Hot Dog”)) { getMustard(); } Copyright 2012 Ed Burns, Creative Commons License 26
  • 27. Computer Programming Simple instructions if else   Use when you only have two choices to choose from.  Real world example: If lunch is hamburger, get ketchup, otherwise, get mustard. Copyright 2012 Ed Burns, Creative Commons License 27
  • 28. Computer Programming Simple instructions  if else  Use when you only have two choices to choose from.  Programming example: if (lunch.equals(“Hamburger”)) { getKetchup(); } else { getMustard(); } Copyright 2012 Ed Burns, Creative Commons License 28
  • 29. Computer Programming Simple instructions lists   A special kind of variable that holds a list of values  Real world example: Your lunch choices are: hamburger, hot dog, chicken nuggets or green salad  The items in the list are called elements. The lunch choices list has four elements. Copyright 2012 Ed Burns, Creative Commons License 29
  • 30. Computer Programming lists  Simple instructions  A special kind of variable that holds a list of values  Programming example: lunchChoices = { “hamburger”, “hot dog”,“chicken nuggets”, “green salad” }; print lunchChoices.size(); Prints out “4”.  Copyright 2012 Ed Burns, Creative Commons License 30
  • 31. Computer Programming Simple instructions loops   A statement that lets you do something with each element in a list.  Real world example: Look at the lunch menu and decide what to eat. Copyright 2012 Ed Burns, Creative Commons License 31
  • 32. Computer Programming Simple instructions loops   A statement that lets you do something with each element in a list.  Programming example: for each (item : lunchChoices) { if (iLikeIt(item)) { eat(item); } } Copyright 2012 Ed Burns, Creative Commons License 32
  • 33. Computer Programming Simple instructions  Subroutines  A program within a program. Basically a way to organize your program so it’s easier to read.  Real world example: To eat lunch, you must:  Decide what to eat  Buy it  Take it to your table  Eat it. Copyright 2012 Ed Burns, Creative Commons License 33
  • 34. Computer Programming Simple instructions Subroutines   A program within a program. Basically a way to organize your program so it’s easier to read.  Programming example: lunch = readMenuAndPickItem(); buyItem(lunch); table = chooseTable(); eatLunchAtTable(lunch, table); Copyright 2012 Ed Burns, Creative Commons License 34
  • 35. Computer Programming Simple instructions Subroutines   Programming example: lunch = readMenuAndPickItem(); buyItem(lunch); table = chooseTable(); eatLunchAtTable(lunch, table);  Subroutines need information to get their work done. The pieces of information given to a subroutine are called arguments. Copyright 2012 Ed Burns, Creative Commons License 35
  • 36. Computer Programming Simple instructions Review Five basic concepts   Variables  If and if else statements  Lists  Loops  Sub-routines Copyright 2012 Ed Burns, Creative Commons License 36
  • 37. Computer Programming Ed Burns, Oracle Corporation Copyright 2012 Ed Burns, Creative Commons License 37