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

PPSX
Computer basic for kids
PPTX
Introduction to Coding
PPT
Lect 1. introduction to programming languages
PPTX
Scratch Programming
PPTX
Introduction to Computer Science
PPTX
Phobia ; what are you afraid of ?
PPTX
Web Design Basics for Kids: HTML & CSS
PPTX
Integrated Development Environments (IDE)
Computer basic for kids
Introduction to Coding
Lect 1. introduction to programming languages
Scratch Programming
Introduction to Computer Science
Phobia ; what are you afraid of ?
Web Design Basics for Kids: HTML & CSS
Integrated Development Environments (IDE)

What's hot (20)

PPTX
What is Coding
PPTX
Coding with kids
PPTX
Presentation on World Wide Web (WWW)
PPTX
Basic programming concepts
PPTX
What is an algorithm?
PPT
Programming
PPT
Intro To Programming Concepts
PPTX
An introduction to coding
PPT
Js ppt
PPT
Introduction to Scratch Programming
PPTX
Computer Hardware and software
PPTX
Lesson 1: Scratch Computer Programming
PPT
Intro To Scratch
PPTX
PDF
Coding for kids
PPT
Ms Paint Tutorial
 
PPTX
Chapter 1 introduction to computers
PPTX
Fundamental of computer
PPTX
Computer Basics
PPT
Introduction to Basic Computer Concepts Presentation
What is Coding
Coding with kids
Presentation on World Wide Web (WWW)
Basic programming concepts
What is an algorithm?
Programming
Intro To Programming Concepts
An introduction to coding
Js ppt
Introduction to Scratch Programming
Computer Hardware and software
Lesson 1: Scratch Computer Programming
Intro To Scratch
Coding for kids
Ms Paint Tutorial
 
Chapter 1 introduction to computers
Fundamental of computer
Computer Basics
Introduction to Basic Computer Concepts Presentation
Ad

Similar to Kids computer-programming (20)

PDF
Starting Out With Visual C 2010 2nd Edition Tony Gaddis
PPTX
Lavacon12 rethink content paper to tablet
PPTX
ch01.pptxygyygyggy ygygygygygygygyggygygyg
PPT
Itroduction about java
PPT
An overview of computers and programming languages
PDF
13 Best IDE for Web Development Projects in 2022.pdf
PPTX
Computer_Programming_Fundamentals in cpp
PDF
[Android] Introduction to Android Programming
PPT
Computer appreciation
PPT
android Programming with detail slide an
PDF
What's in an Android?
PPTX
#2 open source introduction
PPTX
Learn android app_development(1)_intro
PPT
Student pc productivity presentation ppt
PPTX
201 how to use the computer
PDF
17h25_closing_keynote_stefano_stinchi_-_innovation_story.pdf
PPT
androidPramming.ppt
PPTX
Latest Android App Development Tools 2019
PDF
Training android
PDF
Android App Development Intro at ESC SV 2012
Starting Out With Visual C 2010 2nd Edition Tony Gaddis
Lavacon12 rethink content paper to tablet
ch01.pptxygyygyggy ygygygygygygygyggygygyg
Itroduction about java
An overview of computers and programming languages
13 Best IDE for Web Development Projects in 2022.pdf
Computer_Programming_Fundamentals in cpp
[Android] Introduction to Android Programming
Computer appreciation
android Programming with detail slide an
What's in an Android?
#2 open source introduction
Learn android app_development(1)_intro
Student pc productivity presentation ppt
201 how to use the computer
17h25_closing_keynote_stefano_stinchi_-_innovation_story.pdf
androidPramming.ppt
Latest Android App Development Tools 2019
Training android
Android App Development Intro at ESC SV 2012
Ad

More from Edward Burns (20)

PDF
Jakarta EE 11: What's New and Why You Should Care
PDF
Java and AI with LangChain4j: Jakarta EE gets AI
PDF
Java and AI with LangChain4j: Jakarta EE and AI
PDF
20250403-trusted-ai-favorite-ide-javaland.pdf
PDF
A survey of cloud readiness for Jakarta EE 11
PDF
Java and AI with LangChain4j: Jakarta EE and SmallRye LLM
PDF
Java and AI with LangChain4j: Integrating Jakarta EE and LLMs
PDF
How to get trusted AI in your favorite IDE
PDF
How to get trusted AI in your favorite IDE
PDF
How to get trusted AI in your favorite IDE
PDF
How to get trusted AI in your favorite IDE
PPTX
2024-09-10 Jacksonville JUG Java on Azure with AI
PPTX
Deliver AI infused app innovation with Open Liberty on AKS
PPTX
DevTalks Romania: Prepare for Jakarta EE 11
PDF
Developer Career Masterplan
PPTX
Jakarta EE 11 Status Update​
PDF
Sponsored Session: Please touch that dial!
PDF
How modernizing enterprise applications gives you a competitive advantage
PDF
Wie Azure Jakarta EE Nutzt
PDF
Practical lessons from customers performing digital transformation with Azure
Jakarta EE 11: What's New and Why You Should Care
Java and AI with LangChain4j: Jakarta EE gets AI
Java and AI with LangChain4j: Jakarta EE and AI
20250403-trusted-ai-favorite-ide-javaland.pdf
A survey of cloud readiness for Jakarta EE 11
Java and AI with LangChain4j: Jakarta EE and SmallRye LLM
Java and AI with LangChain4j: Integrating Jakarta EE and LLMs
How to get trusted AI in your favorite IDE
How to get trusted AI in your favorite IDE
How to get trusted AI in your favorite IDE
How to get trusted AI in your favorite IDE
2024-09-10 Jacksonville JUG Java on Azure with AI
Deliver AI infused app innovation with Open Liberty on AKS
DevTalks Romania: Prepare for Jakarta EE 11
Developer Career Masterplan
Jakarta EE 11 Status Update​
Sponsored Session: Please touch that dial!
How modernizing enterprise applications gives you a competitive advantage
Wie Azure Jakarta EE Nutzt
Practical lessons from customers performing digital transformation with Azure

Recently uploaded (20)

PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
VCE English Exam - Section C Student Revision Booklet
PDF
Computing-Curriculum for Schools in Ghana
PDF
Insiders guide to clinical Medicine.pdf
PDF
TR - Agricultural Crops Production NC III.pdf
PPTX
Institutional Correction lecture only . . .
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PDF
O7-L3 Supply Chain Operations - ICLT Program
PPTX
Lesson notes of climatology university.
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PPTX
master seminar digital applications in india
PDF
Sports Quiz easy sports quiz sports quiz
PDF
Complications of Minimal Access Surgery at WLH
PPTX
Cell Structure & Organelles in detailed.
PDF
Classroom Observation Tools for Teachers
PPTX
PPH.pptx obstetrics and gynecology in nursing
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
Renaissance Architecture: A Journey from Faith to Humanism
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
VCE English Exam - Section C Student Revision Booklet
Computing-Curriculum for Schools in Ghana
Insiders guide to clinical Medicine.pdf
TR - Agricultural Crops Production NC III.pdf
Institutional Correction lecture only . . .
Microbial diseases, their pathogenesis and prophylaxis
O7-L3 Supply Chain Operations - ICLT Program
Lesson notes of climatology university.
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Abdominal Access Techniques with Prof. Dr. R K Mishra
STATICS OF THE RIGID BODIES Hibbelers.pdf
master seminar digital applications in india
Sports Quiz easy sports quiz sports quiz
Complications of Minimal Access Surgery at WLH
Cell Structure & Organelles in detailed.
Classroom Observation Tools for Teachers
PPH.pptx obstetrics and gynecology in nursing
Module 4: Burden of Disease Tutorial Slides S2 2025

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