Programming Logic Alice.

Slides:



Advertisements
Similar presentations
1 After completing this lesson, you will be able to: Specify options. Customize the appearance of messages. Add a signature to an .
Advertisements

Copyright © 2012 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with Alice: A Visual Introduction to Programming Third Edition.
Guide to Oracle10G1 Introduction To Forms Builder Chapter 5.
Fall 2008ACS-1805 Ron McFadyen1 ACS-1805 Introduction to Programming using Alice 2.0 Ron McFadyen Course OutlineMcFadyenOutline.
A Guide to Oracle9i1 Introduction To Forms Builder Chapter 5.
Classes, Objects, and World-level Methods Alice. Programming in Alice© 2006 Dr. Tim Margush2 Class / Object Class A template describing the characteristics.
Alice: A Free 3D Animation World for Teaching Programming Barbara Ericson Georgia Institute of Technology Oct 2005.
Introduction to Alice Alice is named in honor of Lewis Carroll’s Alice in Wonderland.
01-Intro-Object-Oriented-Prog-Alice1 Barb Ericson Georgia Institute of Technology Aug 2009 Introduction to Object-Oriented Programming in Alice.
Programming Logic Program Design. Objectives Steps in program development Algorithms and Pseudocode Data Activity: Alice program.
IV.Creating & Editing a Video/Movie. Editing Techniques To open a project On the File menu, click Open Project. In the File name box, locate the saved.
Skater World: Part Two By Deborah Nelson Duke University Under the direction of Professor Susan Rodger June
1 1 Lab1 Ismail M. Romi – IT Dept, PPU, Visual Basic 2005 Programming Tour.
Alice 2.0 Introductory Concepts and Techniques Project 1 Exploring Alice and Object-Oriented Programming.
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with Alice: A Visual Introduction to Programming First Edition.
Microsoft Visual Basic 2012 CHAPTER THREE Program Design and Coding.
CS329e – Elements of Visual Programming Implementing Programs Mike Scott (Slides 2-2)
Lesson 12: Creating a Manual and Using Mail Merge.
Introduction to Alice Alice is named in honor of Lewis Carroll’s Alice in Wonderland Slides Credit: Joel Adams, Alice in Action CS120 Lecture August,
1. Chapter 15 Creating Charts 3 Charting Data in Word A chart or graph presents data visually. A chart depicts numeric data in a graphical format. If.
Course ILT Forms and queries Unit objectives Create forms by using AutoForm and the Form Wizard, and add or modify form headers and footers Open and enter.
Flow Control: boolean expressions, “if” selection statements (Alice In Action, Ch 4) Slides Credit: Joel Adams, Alice in Action CS 120 Lecture September.
CSC 230 (Blum)1 Visual Basic 2005 Hello World Fall 2005 T. Blum.
Wimba Pronto Setting Pronto Preferences of the ND University System April 2009.
Alice: A Free 3D Animation World for Teaching Programming.
Using Alice.  Alice is visual  Alice is object-oriented (some might say object- based)  Alice eliminates the need to debug syntax errors  Alice introduces.
CSC 230 (Blum)1 Visual Basic 2005 Hello World Fall 2005 T. Blum.
Methods (part 1) Alice In Action, Ch 2 Slides Credit: Joel Adams, Alice in Action CS120 Lecture August 2012.
Alice in Action with Java Chapter 4 Flow Control.
Applying Borders and Shading Adding Bullets and Numbering.
Word 2010 Edit Page Layout In this lesson, you will learn how to insert columns and page breaks. How to change the page orientation, paper size, page margins,
Alice in Action with Java Chapter 1 Getting Started with Alice.
Alice in Action with Java Chapter 2 Methods. Alice in Action with Java2 Objectives Build world-level methods to help organize a story into scenes and.
Chapter 11 Enhancing an Online Form and Using Macros Microsoft Word 2013.
Creating a Presentation
Classes, Objects, and World-level Methods
Chapter 2: The Visual Studio .NET Development Environment
Professor Susan Rodger
Intro to Dreamweaver Web Design Section 8-1
Chapter 8: Writing Graphical User Interfaces
Building a User Interface with Forms
Top 25 Lists.
Putting Objects in Motion
ASP.NET Web Controls.
Lesson 4 Objectives work with document formatting
Data Validation and Protecting Workbook
Graphics Movies & Games
World-level Methods with Parameters
DB Implementation: MS Access Forms
Learning Java with Alice 3.0 Game Design Kathy Bierscheid
Defining Styles and Automatically Creating Table of Contents and Indexes Word Processing 4.03.
Social Media And Global Computing Introduction to Visual Studio
Classes, Objects, and World-level Methods
Using Objects in Alice.
Alice in Action with Java
Creating an Animation Program
Alice in Action with Java
Making Procedural Methods
Lesson Four: Building Custom Patient Lists
Chapter 2: Programming in Alice
DB Implementation: MS Access Forms
Signature: Microsoft Word 2003
Using Parameters
Alice: A Free 3D Animation World for Teaching Programming
Introduction to Object-Oriented Programming in Alice
Alice: A Free 3D Animation World for Teaching Programming
Headshots in Alice Duke University Professor Susan H. Rodger
under the direction of Professor Susan Rodger
Lecture Set 10 Windows Controls and Forms
Presentation transcript:

Programming Logic Alice

Programming Implementation in Alice

Program Style Change program display styles in Preferences How to access Preferences dialog box Click the Edit menu Click the Preferences choice Selecting a display style in Preferences dialog Click next to “display my program” in General tab Select a style Style recommended for course: Java Style in Color

Program Style (continued)

Adding Objects to Alice Class: blueprint for an object How to populate Alice world with objects Click Add Objects button in world window Locate class specifying the object in the Alice Gallery Right-click class and select “Add instance to world” Objects in sample world: aliceLiddell and whiteRabbit Naming conventions for objects and classes Class: capitalize all words; e.g., AliceLiddell Object: capitalize all but first word; e.g., aliceLiddell Objects can be renamed from the object tree

Adding Objects to Alice (continued)

Accessing Object Subparts Bounding box: encloses any Alice object Impact of selecting an object in the object tree Bounding box is drawn around object in world window Details area adapts to the selected object First action to program: Alice turns head to user First set of programming steps Select + sign next to aliceLiddell in object tree Select + sign next to neck subpart Select head (bounding box is drawn, details change) Drag doInOrder control to top of editing window

Accessing Object Subparts (continued)

Accessing Object Subparts (continued)

Sending Messages Programs rely on sending messages to objects Method: behavior-producing message Programming Alice’s head to turn Select Alice Liddell’s head in the object tree Scan through the methods in the details area Click on pointAt() Drag pointAt()to the editing area and drop it Specify camera as the target

Sending Messages (continued)

Testing and Debugging Bug: error interfering with normal program functions Debugging: process of removing program bugs Click the Play button to test Alice Liddell application Alice Liddell’s head will turn toward the user

Testing and Debugging (continued)

Coding the Other Actions say() message Displays dialog for an object Text can be customized by selecting other… Task: complete first Alice Liddell application Add Alice Liddell’s initial greeting Point the white rabbit to the user Have Alice Liddell introduce herself Have the white rabbit introduce himself Customize messages by selecting from more… Example: adjust fontSize of message text to 30

Coding the Other Actions (continued)

Statements Statement: a line or control structure in a program Computer program is a collection of statements Basic format of a line in a program object.message(value); more... Control structures manage other statements Example: doInOrder contains other statements

The Final Action Sequential execution Actions are performed consecutively Example: actions executed in doInOrder structures Simultaneous execution Actions are performed in parallel Example: actions performed in doTogether structure Finishing the first program Add doTogether control structure to application Send say( )to aliceLiddell and whiteRabbit Message value: Welcome to our world

The Final Action (continued)

Final Testing First set of actions are performed separately Final actions are performed simultaneously

Final Testing (continued)

Questions