Vocabulary - PowerPoint PPT Presentation

About This Presentation
Title:

Vocabulary

Description:

Vocabulary * Programming Vocabulary Watch closely, you might even want to take some notes. There s a short quiz at the end of this presentation! – PowerPoint PPT presentation

Number of Views:116
Avg rating:3.0/5.0
Slides: 11
Provided by: DianneMe6
Category:
Tags: quiz | vocabulary

less

Transcript and Presenter's Notes

Title: Vocabulary


1
Vocabulary
2
Programming Vocabulary
  • Jeroo is a fun program. You get to make things
    hop around an island on a great variety of
    adventures.
  • In the process you can learn a lot about
    programming.
  • Watch closely, you might even want to take some
    notes. Theres a short quiz at the end of this
    presentation!

3
Essential Concepts
  • In Jeroo you write your own programs. You type in
    the instructions to make Jeroos follow your
    commands. The code you type in is called your
    source code.
  • Definitions
  • Program a set of instructions for the computer
  • Source code a program written by a programmer
    in a programming language

4
TRANSLATING
  • The computer cannot really understand the source
    code you type in. It has to be translated into
    something much simpler that a computer processor
    can understand. The compiler will turn your
    program into a form that can be processed.
  • Definitions
  • Compiler translates a program (or class) as a
    whole into another form such as byte code or
    machine code
  • Java Byte Code intermediate language created by
    the Java compiler. The JVM translates byte code
    into machine code.
  • Machine Code program in the form of binary
    codes - a series of 1s and 0s - that are
    understandable by the computers CPU

5
  • One really nice thing about Jeroo is that it has
    an interpreter. It translates your source code
    one line at a time and tells the Jeroo to follow
    your instructions one at a time so you can see it
    working.
  • Definition
  • Interpreter translates a program into machine
    language one statement at a time

6
Essential Concepts
  • Before you can write a program, you should have a
    plan. This is your algorithm. Then you have to
    type in your instructions following the syntax of
    the language you are using. Jeroo uses Java
    syntax like this
  • Definitions
  • Algorithm a plan for solving a problem
  • Syntax a set of rules for writing or speaking a
    language
  • Semantics the meaning associated with valid
    expressions

7
Essential Concepts - OOP
  • A Jeroo is an object. There are things you know
    about it, its properties, that can change, such
    as where it is and how many flowers it has, and
    there are the methods which are things it can do.
  • Definitions
  • Object represents a specific concept or item
    that is relevant to a problem to be solved.
    There are 3 parts to an object, facts about the
    object, how it is created, and tasks it can
    perform.
  • Attribute is a fact associate with a specific
    object. Describes things about the object at the
    current time. Also known as a property or
    instance data.
  • Behavior is an action an object can perform in
    response to a request from an external source.
    You write code to turn a behavior into a method.

8
Essential Concepts - OOP
  • Method a collection of statements that are
    written in some programming language to describe
    a specific behavior
  • Method Precondition something that is assumed
    to be true before the method is invoked
  • Method Postcondition something that is assumed
    to be true after the method has been executed

9
Essential Concepts - OOP
  • Class is a collection of statements that are
    written in some programming language to describe
    both the attributes (properties) and the
    behaviors (methods) of an object.
  • Instantiation the process of creating a
    specific object.Jeroo clyde new Jeroo()clyde
    is an instance of the Jeroo class.This is also
    called constructing an object. Construct
    Instantiate

10
Match words with definitions
  1. __Compiler
  2. __Object
  3. __Algorithm
  4. __Byte code
  5. __Interpreter
  6. __Syntax
  7. __Attribute
  8. __Source code
  9. __Instantiate
  10. __Method
  11. __Class
  1. A plan for solving a problem
  2. Translates one line of code at a time
  3. Create a new object in your program. Information
    about the current state of an object
  4. Part of a program that describes how an object
    can accomplish a particular behavior.
  5. Rules of how a language must be written.
  6. Translates a whole program all at once
  7. Defines properties and methods of an object
  8. The code you, the programmer, type in
  9. The code the computer understands
  10. One thing you can use in your program that has
    attributes and methods
Write a Comment
User Comments (0)
About PowerShow.com