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

Types of Programming Languages
Types of Programming LanguagesTypes of Programming Languages
Types of Programming LanguagesJuhi Bhoyar
 
Presentation of programming languages for beginners
Presentation of programming languages for beginnersPresentation of programming languages for beginners
Presentation of programming languages for beginnersClement Levallois
 
An introduction to coding
An introduction to codingAn introduction to coding
An introduction to codingiain bruce
 
Introduction to computer programming
Introduction to computer programmingIntroduction to computer programming
Introduction to computer programmingNoel Malle
 
Programming languages
Programming languagesProgramming languages
Programming languagesAkash Varaiya
 
Programming Fundamentals lecture 1
Programming Fundamentals lecture 1Programming Fundamentals lecture 1
Programming Fundamentals lecture 1REHAN IJAZ
 
Introduction to Operating Systems
Introduction to Operating SystemsIntroduction to Operating Systems
Introduction to Operating SystemsMukesh Chinta
 
Introduction to Programming Languages
Introduction to Programming LanguagesIntroduction to Programming Languages
Introduction to Programming Languageseducationfront
 
Beginning computer basics
Beginning computer basics Beginning computer basics
Beginning computer basics Vicente Antofina
 
WEB I - 01 - Introduction to Web Development
WEB I - 01 - Introduction to Web DevelopmentWEB I - 01 - Introduction to Web Development
WEB I - 01 - Introduction to Web DevelopmentRandy Connolly
 
Introduction to Computer Hardware Assembling
Introduction to Computer Hardware AssemblingIntroduction to Computer Hardware Assembling
Introduction to Computer Hardware AssemblingRanjith Siji
 
An introduction to Competitive Programming
An introduction to Competitive ProgrammingAn introduction to Competitive Programming
An introduction to Competitive ProgrammingGaurav Agarwal
 
Career in Software Development
Career in Software Development  Career in Software Development
Career in Software Development neosphere
 
Problem solving using Computer
Problem solving using ComputerProblem solving using Computer
Problem solving using ComputerDavid Livingston J
 
Basic Computer Programming
Basic Computer ProgrammingBasic Computer Programming
Basic Computer ProgrammingAllen de Castro
 

What's hot (20)

Types of Programming Languages
Types of Programming LanguagesTypes of Programming Languages
Types of Programming Languages
 
Computer Programming
Computer ProgrammingComputer Programming
Computer Programming
 
Presentation of programming languages for beginners
Presentation of programming languages for beginnersPresentation of programming languages for beginners
Presentation of programming languages for beginners
 
An introduction to coding
An introduction to codingAn introduction to coding
An introduction to coding
 
Introduction to computer programming
Introduction to computer programmingIntroduction to computer programming
Introduction to computer programming
 
Programming languages
Programming languagesProgramming languages
Programming languages
 
Programming Fundamentals lecture 1
Programming Fundamentals lecture 1Programming Fundamentals lecture 1
Programming Fundamentals lecture 1
 
Introduction to computing
Introduction to computingIntroduction to computing
Introduction to computing
 
Introduction to Operating Systems
Introduction to Operating SystemsIntroduction to Operating Systems
Introduction to Operating Systems
 
Introduction to Programming Languages
Introduction to Programming LanguagesIntroduction to Programming Languages
Introduction to Programming Languages
 
Beginning computer basics
Beginning computer basics Beginning computer basics
Beginning computer basics
 
WEB I - 01 - Introduction to Web Development
WEB I - 01 - Introduction to Web DevelopmentWEB I - 01 - Introduction to Web Development
WEB I - 01 - Introduction to Web Development
 
Introduction to Computer Hardware Assembling
Introduction to Computer Hardware AssemblingIntroduction to Computer Hardware Assembling
Introduction to Computer Hardware Assembling
 
Computer Basics
Computer BasicsComputer Basics
Computer Basics
 
Programming Language
Programming LanguageProgramming Language
Programming Language
 
Programming languages
Programming languagesProgramming languages
Programming languages
 
An introduction to Competitive Programming
An introduction to Competitive ProgrammingAn introduction to Competitive Programming
An introduction to Competitive Programming
 
Career in Software Development
Career in Software Development  Career in Software Development
Career in Software Development
 
Problem solving using Computer
Problem solving using ComputerProblem solving using Computer
Problem solving using Computer
 
Basic Computer Programming
Basic Computer ProgrammingBasic Computer Programming
Basic Computer Programming
 

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

social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 
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
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
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
 
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
 
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
 
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
 
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...anjaliyadav012327
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
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
 
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...Pooja Nehwal
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
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
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 

Recently uploaded (20)

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
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
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...
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
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...
 
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
 
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
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
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
 
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
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
 
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.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
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 

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