LEARN TO PROGRAM WITH ALICE - PowerPoint PPT Presentation

1 / 11
About This Presentation
Title:

LEARN TO PROGRAM WITH ALICE

Description:

Repetition: loop, while, for. Counting loop: loop, for. Conditional ... Dimensions: height, weight, depth. Directions: up, down, forward, backward, left, right ... – PowerPoint PPT presentation

Number of Views:27
Avg rating:3.0/5.0
Slides: 12
Provided by: xianno
Category:
Tags: alice | learn | program | with | for | height | right | weight

less

Transcript and Presenter's Notes

Title: LEARN TO PROGRAM WITH ALICE


1
LEARN TO PROGRAM WITH ALICE
  • Xiannong Meng
  • Computer Science Department
  • Bucknell University

2
Lecture Nine
  • Summary

3
Computer Science ConceptsGeneral Concepts
  • Program a set of instructions that tell the
    computer what to do
  • Programming language instructions following a
    fixed set of syntax
  • Different levels of programming language
  • High level language
  • Machine level language
  • Assembly language

4
Computer Science ConceptsGeneral Concepts --
continue
  • Object an entity that has data and methods (or
    states and actions)
  • Algorithm a list of actions to perform a task or
    solve a problem
  • Pseudo-code when an algorithm description is
    detailed and very close to the actual program
    code, this description can be called pseudo-code

5
Computer Science ConceptsGeneral Concepts --
continue
  • Four stages of programming (This is in Alices
    term, in software engineering, more steps are
    involved)
  • Read understand what needs to be done
  • Design create scenes and actions associated with
    each scene, using storyboard
  • Implement turn the design into code
  • Test make sure program works properly in various
    conditions

6
Computer Science ConceptsGeneral Concepts --
continue
  • Abstraction hide details to a lower level so the
    code modules are coherent
  • Method a collection of code to accomplish a
    specific task which would change the state of a
    program
  • Function a collection of code to compute a value
    which would not change the state of a program

7
Computer Science ConceptsGeneral Concepts --
continue
  • Parameters an object that is used to pass
    information from one object to another or from
    one method to another
  • Selections if-then-else
  • Repetition loop, while, for
  • Counting loop loop, for
  • Conditional loop while

8
Computer Science ConceptsGeneral Concepts --
continue
  • Inheritance creating an object using an existing
    object as the base

9
Computer Science ConceptsAlice Specific Concepts
  • Virtual world an animation is implemented in
    Alice as a virtual world
  • Alice object basic entity in Alice that has
    features
  • Dimensions height, weight, depth
  • Directions up, down, forward, backward, left,
    right
  • Center

10
Computer Science ConceptsAlice Specific Concepts
-- continue
  • Distance measured from the center of the objects
  • Location in a 3-D space, described by (x,y,z)
  • Alice IDE (integrated develop environment)
  • Object tree
  • Detailed pane
  • World view
  • Event editor
  • Method editor

11
Computer Science ConceptsAlice Specific Concepts
-- continue
  • Vehicle an object can be a carrier of another.
    The carrier is called a vehicle
  • Event an event is something that happens (a
    change of the state)
  • Event-handler method that responds to an event
Write a Comment
User Comments (0)
About PowerShow.com