Class-level Methods. Chapter 6 part 1

Size: px
Start display at page:

Download "Class-level Methods. Chapter 6 part 1"

Transcription

1 Class-level Methods Chapter 6 part 1

2 Classes and Objects Classes o In Alice, classes are predefined as 3D models Objects o An object is an instance of a class Class: Frog (Uppercase first letter) Objects: frog, frog1, frog2, frog3 (lowercase first letter) 2

3 Methods Built-in (predefined) methods o Examples: move, turn to face, say Custom methods o User created method o Does something that was not predefined in Alice 3

4 Class-level Method Is specific to a class of objects We can give a class new abilities/methods Only involves this one class level object Examples o A person walking o A skater skating Unlike world class-level methods o Which has access to multiple classes 4

5 Example Skater object does not have a skate method To create a skate method for ice skater objects we need to: (1)Write a new method to animate ice skater to skate (2)Tell Alice to associate the new method with the iceskater class 5

6 Associate Animation with Skater Select iceskater tile in Object Tree Select methods tab in details panel Click on create new method button 6

7 Algorithm for skate Method skate: Do together move skater forward 2 meters Do in order slide on left leg slide on right leg Each slide action requires several motion instructions These actions need to be broken down into smaller steps using stepwise refinement 7

8 Stepwise Refinement Process of breaking problem into smaller tasks o Makes large task more manageable Break each task into simpler steps Once algorithm is completed write a method for each task 8

9 Stepwise Refinement For skate skate: Do together 1) move forward 2 meters 2) Do in order slideleft slideright Refinement of slideleft Do in order Lift right leg and turn upper body forward Lower right leg and return body upright Refinement of slideright Do in order Lift left leg and turn upper body forward Lower left leg and return body upright 9

10 Alice Programs for skate Algorithm Notice name of method is iceskater.skate where skate is preceded by iceskater instead of world as in world.my first method 10

11 Demonstration Concepts illustrated o Method defined for a specific type of object defines action for that object o A method can call other methods skate method calls slideright and slideleft 11

12 Class Methods Allow Reuse Writing methods that make ice skater perform skating motion is a complex task Would like to reuse iceskater skate in other worlds without writing methods again 12

13 Creating A New Class 1) Rename iceskater as cleverskater either a) Double click object name b) Or right click name 2) Right click name to save as a new class 3) Alice saves new class as CleverSkater.a2c Alice v2 Class 13

14 Importing CleverSkater An instance of the CleverSkater class can be added to a new world o o o Use File Import Set File Type to A2C Choose class file to import 14

15 Interacting With Other Objects Suppose you want to write a class-level method where another object is involved? Ex: a method to make skater skate around another object, like the penguin in this scene o It can be anything, ex: lake, cone, penguin, etc. 15

16 Parameters Built-in methods give flexibility by providing parameters like distance and direction Parameters allow values (arguments) to be passed to methods o Example Parameters: direction, distance, duration Arguments: up, 0.5 meters, 0.5 seconds Where duration is optional Alice provides several kinds of parameters that can be used in custom methods o Number, Boolean, Object, Other 16

17 Parameters in Class-level Method Solve skate around object problem by writing a classlevel method with an object parameter Allows you to pass a specific object cleverskater.skatearound Parameter: whichobject Do in order Do together cleverskater turn to face whichobject cleverskater lift right leg cleverskater move to whichobject cleverskater turn around whichobject 17

18 Parameters Are Placeholders A value is passed to a method with an argument Parameters act as placeholders for the argument in the method being called o o Called method places argument s value in parameter s name Parameter name Is used like variable in method Is usually different than argument s name Example: in move method o o You pass arguments that are a specific direction and distance to move (ex: up, 0.5 meters) Those specific arguments are passed to the move method s parameters (direction and distance) 18

19 Creating Parameters Create parameter using create parameter whichobject is passed as Object parameter Place whichobject in method by dragging it Notice how skatearound is preceded by cleverskater instead of world like world.my first method 19

20 Guidelines To avoid potential misuse of class-level methods follow these guidelines o o o Avoid references to other objects Use parameters if referencing another object is required Avoid calls to world-level methods Will not be saved with new class you created Play a sound only if sound has been imported and saved out as part of a new class 20

21 Demonstration Concept illustrated o Parameter whichobject is placeholder for the object value passed to it Ex: penguin 21

22 Edit or Read Method Click on edit button to edit or read method code Can open method by double clicking on it in method editor 22

23 Class-Level Variables as Properties A property is a variable that belongs to an object Properties can be added to an object through the creation of class-level variables When the object is saved as a new class the variables are saved with it Common properties are o color o opacity o isshowing 23

24 New Property Example A new property is added to monitor: the state of the monitor. Is it on or off? Create class-level variable that keeps track of state of computer monitor: on or off On Off 24

25 Algorithm to Turn Monitor On/Off If monitor is off then turn it on If monitor is on then turn it off turnonoff Do in order If monitor ison set screen color to black set ison variable to false Else set screen color to no color set ison variable to true Endif 25

26 Algorithm Translated to Alice Notice how new method is preceded by monitor not world o o o Means it is a class-level method not world-level Will be saved if class is saved If world is saved the class will not be saved for future use in other programs Can only use this in this new method in this specific program Notice variable name is preceded by monitor 26

27 Using turnonoff Method Variable monitor.ison is set initially to true In world.my first method o Turn off monitor by calling turnonoff Variable monitor.ison is now set to false o Wait 1 second to see effect o Turn on monitor by calling turnonoff again 27

28 Homework Read chapter 6 sections 1-5 Do tutorials 1 5 Do exercises in handout Due one week after assigned 28

Methods in Alice. Brookwood High School Mrs. Crystal L. Furman

Methods in Alice. Brookwood High School Mrs. Crystal L. Furman Methods in Alice Brookwood High School Mrs. Crystal L. Furman Methods Alice breaks methods up into 2 categories 1 Procedures: Procedures are methods that have object do something. They are commands. 2

More information

World-level Classes and Methods. Chapter 6

World-level Classes and Methods. Chapter 6 World-level Classes and Methods Chapter 6 Programs Grow Code seems to grow and grow Makes program more difficult to read and process in our minds Games and other software can have thousands, even millions

More information

Decision Structures. Chapter 4

Decision Structures. Chapter 4 Decision Structures Chapter 4 Chapter 4 Objectives To understand: o What values can be stored in a Boolean variable o What sequence structures are and when used o What decision structures are and when

More information

Methods & Classes in Alice

Methods & Classes in Alice Part A Creating Custom Methods for an Object Alice provides primitive methods with each class to allow the programmer to accomplish some basic tasks such as movement. Some classes also include custom methods

More information

Classes, Objects, and World-level Methods. Alice

Classes, Objects, and World-level Methods. Alice Classes, Objects, and World-level Methods Alice Larger Programs As you become more skilled in writing programs, you will find that programs quickly increase to many, many lines of code. Games and other

More information

Variables and Functions Chapter 3

Variables and Functions Chapter 3 Variables and Functions Chapter 3 3-1 Variables Named storage location in computer s memory Programs may need to store data when running o Stored in a variable Types of data that can be stored o Local

More information

Changing Camera Views! Part 2: Simple Scene Change & Lighting Fixes

Changing Camera Views! Part 2: Simple Scene Change & Lighting Fixes Changing Camera Views! Part 2: Simple Scene Change & Lighting Fixes By Bella Onwumbiko under the direction of Professor Susan Rodger Duke University July 2013 Introduction! In this tutorial, we will set

More information

Tutorial00. Jumping down the rabbit hole

Tutorial00. Jumping down the rabbit hole Tutorial00 Jumping down the rabbit hole This is your quick introduction into the world of ALICE. ALICE program provides us with an interface that allows the user to create 3D animation and write computer

More information

Peeking into Computer Science Alice Lab Manual. Lab Manual. Programming

Peeking into Computer Science Alice Lab Manual. Lab Manual. Programming Lab Manual Programming 1 Alice Lab 1: Introduction 2 Table of Contents Lab 1: Introduction... 5 The Alice Interface... 6 Objects... 6 Lab 2: Sequential & Parallel Execution... 15 Do in order... 15 Do together...

More information

Skater World: Part Three

Skater World: Part Three Skater World: Part Three By Deborah Nelson Duke University Under the direction of Professor Susan Rodger June 2009 1 Overview The story continues: We will change the camera view during animation. Also,

More information

Using Functions in Alice

Using Functions in Alice Using Functions in Alice Step 1: Understanding Functions 1. Download the starting world that goes along with this tutorial. We will be using functions. A function in Alice is basically a question about

More information

The Essentials of Alice

The Essentials of Alice The Essentials of Alice Mrs. Jayne Slease SBMS CTE Computer Science and Animation Credit to Duke Students under the direction of Professor Susan Rodger Duke University May 2009 This tutorial will teach

More information

Name Introduction to Computer Science. 1. A sequence of instructions that tell the computer what to do is known as a?

Name Introduction to Computer Science. 1. A sequence of instructions that tell the computer what to do is known as a? Name Introduction to Computer Science 1. A sequence of instructions that tell the computer what to do is known as a? a. help screen b. mouse click c. computer program d. keystroke 2. Actions to be performed

More information

Step 1: Changing the Penguins Colors. Download the starting world that goes with this tutorial. We are

Step 1: Changing the Penguins Colors. Download the starting world that goes with this tutorial. We are Changing Color, Ui Using Text Objects, and Random Selection in Alice By Jenna Hayes Under the direction of Professor Susan Rodger Duke University, July 2008 Download the starting world that goes with this

More information

Skater World: Part Four. By Deborah Nelson Duke University Under the direction of Professor Susan Rodger June 2009

Skater World: Part Four. By Deborah Nelson Duke University Under the direction of Professor Susan Rodger June 2009 Skater World: Part Four By Deborah Nelson Duke University Under the direction of Professor Susan Rodger June 2009 1 Overview Make Billboards by bringing 2D images into your Alice world. Learn how to animate

More information

Exploring Alice and Object-Oriented Programming

Exploring Alice and Object-Oriented Programming Exploring Alice and Object-Oriented Programming PROJECT CASE PERSPECTIVE Dr. Carole Dodgson needs your help. She would like to use a sample virtual world to demonstrate some fundamental concepts of computer

More information

Animating Objects in Groups: Using Arrays and Lists

Animating Objects in Groups: Using Arrays and Lists Animating Objects in Groups: Using and By Ruthie Tucker under the direction of Professor Susan Rodger Summer 2008 Description This tutorial will cover the basics of using arrays and lists in an Alice world.

More information

Getting Started with Java Using Alice. 1 Copyright 2013, Oracle and/or its affiliates. All rights reserved.

Getting Started with Java Using Alice. 1 Copyright 2013, Oracle and/or its affiliates. All rights reserved. Getting Started with Java Using Alice 1 Copyright 2013, Oracle and/or its affiliates. All rights Objectives This lesson covers the following objectives: Use the IF control structure to effect execution

More information

Animating Objects in Groups: Using Arrays and Lists. By Ruthie Tucker under the direction of Professor Susan Rodger Summer 2008

Animating Objects in Groups: Using Arrays and Lists. By Ruthie Tucker under the direction of Professor Susan Rodger Summer 2008 Animating Objects in Groups: Using Arrays and Lists By Ruthie Tucker under the direction of Professor Susan Rodger Summer 2008 Description This tutorial will cover the basics of using arrays and lists

More information

A Simple Quiz for Alice 3.2: Ask User Functions.

A Simple Quiz for Alice 3.2: Ask User Functions. A Simple Quiz for Alice 3.2: Ask User Functions. By Lana Dyck under the direction of Professor Susan Rodger Duke University June 2009, added Part 2 July 2011, Edited for Alice 3 use and Part 3,4 added

More information

Events (Alice In Action, Ch 6)

Events (Alice In Action, Ch 6) CS 101 Lecture 27 Events (Alice In Action, Ch 6) 31 July 2013 Slides Credit: Joel Adams, Alice in Action Objectives Create new events in Alice Create handler methods for Alice events Use events to build

More information

Events (Alice In Ac.on, Ch 6)

Events (Alice In Ac.on, Ch 6) CS 101 Lecture 26/27 Events (Alice In Ac.on, Ch 6) Slides Credit: Joel Adams, Alice in Action Objectives Programming to respond to events Create new events in Alice Create handler methods for Alice events

More information

Methods Tutorial: Part Two. By Deborah Nelson Duke University Professor Susan Rodger June 16, 2008

Methods Tutorial: Part Two. By Deborah Nelson Duke University Professor Susan Rodger June 16, 2008 Methods Tutorial: Part Two By Deborah Nelson Duke University Professor Susan Rodger June 16, 2008 We will now complete the world that you started in part one of the tutorial entitled "Methods." If you

More information

Creating a Fancier Fox and Inheritance in Alice 3

Creating a Fancier Fox and Inheritance in Alice 3 Creating a Fancier Fox and Inheritance in Alice 3 Jonathon Kuo under the direction of Professor Susan Rodger June 2017 Adapted from Dr. Rodger s Alice 2 tutorial, Creating a Fancier Chicken to use in several

More information

6 Decisions and User-defined Questions

6 Decisions and User-defined Questions 6 Decisions and User-defined Questions This chapter introduces the concept of conditional execution of a segment of code in a program. A condition is the answer to a question about a current situation

More information

Plotting Points. By Francine Wolfe Professor Susan Rodger Duke University June 2010

Plotting Points. By Francine Wolfe Professor Susan Rodger Duke University June 2010 Plotting Points By Francine Wolfe Professor Susan Rodger Duke University June 2010 Description This tutorial will show you how to create a game where the player has to plot points on a graph. The method

More information

Introduction to Unreal Engine Blueprints for Beginners. By Chaven R Yenketswamy

Introduction to Unreal Engine Blueprints for Beginners. By Chaven R Yenketswamy Introduction to Unreal Engine Blueprints for Beginners By Chaven R Yenketswamy Introduction My first two tutorials covered creating and painting 3D objects for inclusion in your Unreal Project. In this

More information

Duration 30 minutes Notes This tutorial was built using Alice

Duration 30 minutes Notes This tutorial was built using Alice Tutorial 1: Get Started with Alice 3 Overview In this tutorial, you will become familiar with the basic features of Alice 3. You will navigate and use basic features in both the Scene editor and Code editor.

More information

Alice. Coverage. Mathematical Expressions, Conditional Statements, Control Structures. Arithmetic Expressions Built-in Functions Conditional Execution

Alice. Coverage. Mathematical Expressions, Conditional Statements, Control Structures. Arithmetic Expressions Built-in Functions Conditional Execution Alice Mathematical Expressions, Conditional Statements, Control Structures Coverage Arithmetic Expressions Built-in Functions Conditional Execution If/Then Statements Control Structures Loops 1 Functions

More information

The Alice Scene Editor

The Alice Scene Editor Facilitation Guide The Alice Scene Editor ( http://www.alice.org/resources/lessons/building-a-scene/ ) Summary This facilitation guide is intended to guide the instructor through the introduction of the

More information

By Ruthie Tucker Under the direction of Professor Susan.

By Ruthie Tucker Under the direction of Professor Susan. Tutorial for Arrays and Lists By Ruthie Tucker Under the direction of Professor Susan Rodger, Duke University 2008 www.cs.duke.edu/csed/alice/aliceinschools Description This presentation will cover the

More information

Coloring Randomly: Random Selec2on in Alice. By Jenna Hayes under the direc2on of Professor Susan Rodger Duke University July 2008

Coloring Randomly: Random Selec2on in Alice. By Jenna Hayes under the direc2on of Professor Susan Rodger Duke University July 2008 Coloring Randomly: Random Selec2on in Alice By Jenna Hayes under the direc2on of Professor Susan Rodger Duke University July 2008 Step One: Crea,ng Color Method Download the Alice World that goes along

More information

using Arrays and Lists in an Alice world Prerequisites Everything World.OpeningScene Cinderella.end the chickens while they dance.

using Arrays and Lists in an Alice world Prerequisites Everything World.OpeningScene Cinderella.end the chickens while they dance. Tutorial for Arrays and Lists Description This presentation will cover the basics of using Arrays and Lists in an Alice world It uses a set of chickens on a farm Prerequisites Everything By Ruthie Tucker

More information

Telling a Story Visually. Copyright 2012, Oracle. All rights reserved.

Telling a Story Visually. Copyright 2012, Oracle. All rights reserved. What Will I Learn? Objectives In this lesson, you will learn how to: Compare and define an animation and a scenario Demonstrate how to use the four problem solving steps to storyboard your animation Use

More information

Getting Started with Java Using Alice. 1 Copyright 2013, Oracle and/or its affiliates. All rights reserved.

Getting Started with Java Using Alice. 1 Copyright 2013, Oracle and/or its affiliates. All rights reserved. Getting Started with Java Using Alice Develop a Complete Animation 1 Copyright 2013, Oracle and/or its affiliates. All rights Objectives This lesson covers the following objectives: Use functional decomposition

More information

potions. The troll doubles in size.

potions. The troll doubles in size. Tutorial 3: Use Procedures and Arguments, Add Rotation and Randomization Overview In this tutorial, you will practice using procedures and arguments to create an animation. You will practice rotating an

More information

Alice: A Free 3D Animation World for Teaching Programming

Alice: A Free 3D Animation World for Teaching Programming Alice: A Free 3D Animation World for Teaching Programming Barbara Ericson ericson@cc.gatech.edu Oct 2005 (Slightly adapted by Håkan Jonsson) Pick a World Playing the Movie! Click on the Examples tab "

More information

Using Formulas and Functions in Microsoft Excel

Using Formulas and Functions in Microsoft Excel Using Formulas and Functions in Microsoft Excel This document provides instructions for using basic formulas and functions in Microsoft Excel. Opening Comments Formulas are equations that perform calculations

More information

Lesson 6: Add Animations, Audio, and Video Microsoft PowerPoint 2016 IN THIS CHAPTER, YOU WILL LEARN HOW TO

Lesson 6: Add Animations, Audio, and Video Microsoft PowerPoint 2016 IN THIS CHAPTER, YOU WILL LEARN HOW TO Lesson 6: Add Animations, Audio, and Video Microsoft PowerPoint 2016 IN THIS CHAPTER, YOU WILL LEARN HOW TO Animate with ready-made effects. Customize animation effects. Add audio content. Insert and play

More information

Making Objects Move in Unison: Using Lists. Overview

Making Objects Move in Unison: Using Lists. Overview Making Objects Move in Unison: Using Lists By Deborah Nelson Duke University Professor Susan Rodger July 13, 2008 Updated June 2014 by Yossra Hamid Edited for Alice 3 use by Anh Trinh July 2016 Overview

More information

Making Objects Move in Unison: Using Lists

Making Objects Move in Unison: Using Lists Making Objects Move in Unison: Using Lists By Deborah Nelson Duke University Professor Susan Rodger July 13, 2008 Updated June 2014 by Yossra Hamid Edited for Alice 3 use by Anh Trinh July 2016 Overview

More information

Introduction to Events

Introduction to Events Facilitation Guide Introduction to Events ( http://www.alice.org/resources/lessons/introduction-to-events/ ) Summary This guide is intended to guide the facilitator through the creation of events and using

More information

Chapter 0. Getting Started. Objectives

Chapter 0. Getting Started. Objectives Chapter 0 Getting Started Objectives Install the Java editor Install the Alice environment Setup the Java editor to work with the Alice environment Explain the purpose of Alice Setup an Alice scene Installing

More information

Nonvisual Arrays and Recursion. by Chris Brown under Prof. Susan Rodger Duke University June 2012

Nonvisual Arrays and Recursion. by Chris Brown under Prof. Susan Rodger Duke University June 2012 Nonvisual Arrays and Recursion by Chris Brown under Prof. Susan Rodger Duke University June 2012 Nonvisual Arrays This tutorial will display how to create and use nonvisual arrays in Alice. Nonvisual arrays

More information

PC4G - University of Waterloo December 8, 2017

PC4G - University of Waterloo December 8, 2017 PC4G - University of Waterloo December 8, 2017 Alice Tutorial 9:00-10:30 Peter McAsh @pmcash Creative Commons Attribution-Non Commercial-Share Alike 4.0 International License Source: https://www.foxmovies.com/movies/hidden-figures

More information

Repetition everywhere comparing while in a method and as an event. Comparison

Repetition everywhere comparing while in a method and as an event. Comparison Repetition everywhere comparing while in a method and as an event Susan Rodger Duke University July 2010 modified July 2011 Comparison This tutorial will explain the difference between using while in a

More information

Using PowerPoint - 1

Using PowerPoint - 1 Using PowerPoint - 1 Introduction to the course. Before we start, we need to know what power point is. I m sure most of you know about ppt, but for those of you who may be new to this: [1a-c] When you

More information

Introduction to Flash - Creating a Motion Tween

Introduction to Flash - Creating a Motion Tween Introduction to Flash - Creating a Motion Tween This tutorial will show you how to create basic motion with Flash, referred to as a motion tween. Download the files to see working examples or start by

More information

CS 115 Lecture 8. Selection: the if statement. Neil Moore

CS 115 Lecture 8. Selection: the if statement. Neil Moore CS 115 Lecture 8 Selection: the if statement Neil Moore Department of Computer Science University of Kentucky Lexington, Kentucky 40506 neil@cs.uky.edu 24 September 2015 Selection Sometime we want to execute

More information

PowerPoint. For Evaluation Only. Lesson 5: Enhancing Presentations. Microsoft. Core Certification. Lesson Objectives

PowerPoint. For Evaluation Only. Lesson 5: Enhancing Presentations. Microsoft. Core Certification. Lesson Objectives Microsoft Office Specialist 2010 Series Microsoft PowerPoint 2010 Core Certification Lesson 5: Enhancing Presentations Lesson Objectives In this lesson, you will learn how to enhance a presentation by

More information

Introduction to PowerPoint 2007

Introduction to PowerPoint 2007 Introduction to PowerPoint 2007 PowerPoint is one of the programs included in the Microsoft Office suite. It s used to create presentations, also called slide shows, that are typically displayed via a

More information

What Is Alice? Classes and Objects. The Power of Alice. A modern programming tool 3-D graphics 3-D models of objects

What Is Alice? Classes and Objects. The Power of Alice. A modern programming tool 3-D graphics 3-D models of objects What Is Alice? Vizualization Friday Forum September 23, 2005 A modern programming tool 3-D graphics 3-D models of objects Animation Objects can be made to move around virtual world (a simulation or video

More information

Creating and Triggering Animations

Creating and Triggering Animations Creating and Triggering Animations 1. Download the zip file containing BraidGraphics and unzip. 2. Create a new Unity project names TestAnimation and set the 2D option. 3. Create the following folders

More information

Basic Operation of Flash MX Professional 2004

Basic Operation of Flash MX Professional 2004 Basic Operation of Flash MX Professional 2004 (Main Tutorial) This Tutorial provides you Basic Operation for Flash MX Professional 2004. After this training, you will be able to create simple animation.

More information

Microsoft Visual Basic 2005: Reloaded

Microsoft Visual Basic 2005: Reloaded Microsoft Visual Basic 2005: Reloaded Second Edition Chapter 4 Making Decisions in a Program Objectives After studying this chapter, you should be able to: Include the selection structure in pseudocode

More information

Scratch Lesson 2: Movies Made From Scratch Lesson Framework

Scratch Lesson 2: Movies Made From Scratch Lesson Framework Scratch Lesson 2: Movies Made From Scratch Lesson Framework Scratch makes it easy to program your own interactive stories, games, and animations and share your creations on the web. As you create and share

More information

Gaddis: Starting Out with Alice Test Bank Chapter Two 1 Chapter Two

Gaddis: Starting Out with Alice Test Bank Chapter Two 1 Chapter Two Gaddis: Starting Out with Alice Test Bank Chapter Two 1 Chapter Two MULTIPLE CHOICE 1. What is the name of the default world method that automatically runs when an Alice program is executed? a. the first

More information

Methods (part 1) Alice In Action, Ch 2

Methods (part 1) Alice In Action, Ch 2 CS101 Lecture 08 Methods (part 1) Alice In Action, Ch 2 10 July 2013 Slides Credit: Joel Adams, Alice in Action Objectives Build world-level methods to help organize a story into scenes and shots Use dummies

More information

INFORMATION TECHNOLOGY

INFORMATION TECHNOLOGY INFORMATION TECHNOLOGY PowerPoint Presentation Section Two: Formatting, Editing & Printing Section Two: Formatting, Editing & Printing By the end of this section you will be able to: Insert, Edit and Delete

More information

Java Basics. Object Orientated Programming in Java. Benjamin Kenwright

Java Basics. Object Orientated Programming in Java. Benjamin Kenwright Java Basics Object Orientated Programming in Java Benjamin Kenwright Outline Essential Java Concepts Syntax, Grammar, Formatting, Introduce Object-Orientated Concepts Encapsulation, Abstract Data, OO Languages,

More information

Princess & Dragon Part 4: Breathing Fire Adding Effects to Alice

Princess & Dragon Part 4: Breathing Fire Adding Effects to Alice Princess & Dragon Part 4: Breathing Fire Adding Effects to Alice By Elizabeth Liang under the direc?on of Professor Susan Rodger Duke University June 2010 Introduc)on Welcome to Part 4 of the Princess

More information

Exit: These control how the object exits the slide. For example, with the Fade animation the object will simply fade away.

Exit: These control how the object exits the slide. For example, with the Fade animation the object will simply fade away. PowerPoint 2013 Animating Text and Objects Introduction In PowerPoint, you can animate text and objects such as clip art, shapes, and pictures. Animation or movement on the slide can be used to draw the

More information

Object oriented programming. Instructor: Masoud Asghari Web page: Ch: 3

Object oriented programming. Instructor: Masoud Asghari Web page:   Ch: 3 Object oriented programming Instructor: Masoud Asghari Web page: http://www.masses.ir/lectures/oops2017sut Ch: 3 1 In this slide We follow: https://docs.oracle.com/javase/tutorial/index.html Trail: Learning

More information

Program Planning, Data Comparisons, Strings

Program Planning, Data Comparisons, Strings Program Planning, Data Comparisons, Strings Program Planning Data Comparisons Strings Reading for this class: Dawson, Chapter 3 (p. 80 to end) and 4 Program Planning When you write your first programs,

More information

The Essentials of Alice (Bunny) By Jenna Hayes under the direction of Professor Susan Rodger Duke University July 2008

The Essentials of Alice (Bunny) By Jenna Hayes under the direction of Professor Susan Rodger Duke University July 2008 The Essentials of Alice (Bunny) By Jenna Hayes under the direction of Professor Susan Rodger Duke University July 2008 This tutorial will teach you how to create a short animation in an Alice world. Follow

More information

CompSci 94 Making Decisions February 8, Prof. Susan Rodger

CompSci 94 Making Decisions February 8, Prof. Susan Rodger CompSci 94 Making Decisions February 8, 2018 Prof. Susan Rodger CompSci 94 Spring 2018 1 Class Today Asking questions and making decisions Using functions If statements CompSci 94 Spring 2018 2 Review

More information

Repetition. Add in Objects. Position Objects. Monkey Eat Bananas Repetition Simple Loops and Conditional Loops for Alice 3

Repetition. Add in Objects. Position Objects. Monkey Eat Bananas Repetition Simple Loops and Conditional Loops for Alice 3 Monkey Eat Bananas Repetition Simple Loops and Conditional Loops for Alice 3 Jonathon Kuo Under the Direction of Dr. Susan Rodger Duke University Repetition We first illustrate simple looping using count,

More information

Monkey Eat Bananas Repetition Simple Loops and Conditional Loops for Alice 3

Monkey Eat Bananas Repetition Simple Loops and Conditional Loops for Alice 3 Monkey Eat Bananas Repetition Simple Loops and Conditional Loops for Alice 3 Jonathon Kuo Under the Direction of Dr. Susan Rodger Duke University June 2017 Adapted from Dr. Rodger s Alice 2 Tutorial, Bunny

More information

Agenda CS121/IS223. Reminder. Object Declaration, Creation, Assignment. What is Going On? Variables in Java

Agenda CS121/IS223. Reminder. Object Declaration, Creation, Assignment. What is Going On? Variables in Java CS121/IS223 Object Reference Variables Dr Olly Gotel ogotel@pace.edu http://csis.pace.edu/~ogotel Having problems? -- Come see me or call me in my office hours -- Use the CSIS programming tutors Agenda

More information

Making Billboards. By Deborah Nelson Duke University, Under the direc:on of Professor Susan Rodger, July 14, 2008

Making Billboards. By Deborah Nelson Duke University, Under the direc:on of Professor Susan Rodger, July 14, 2008 Making Billboards By Deborah Nelson Duke University, Under the direc:on of Professor Susan Rodger, July 14, 2008 Setting Up a World Open a new world, with any template and save it in a directory that you

More information

The Matrix. By Melissa Dalis Professor Susan Rodger Duke University June 2011

The Matrix. By Melissa Dalis Professor Susan Rodger Duke University June 2011 The Matrix By Melissa Dalis Professor Susan Rodger Duke University June 2011 Overview This tutorial will show you how to create an interaccve matrix mulcplicacon tool in Alice that you can use to mulcply

More information

Alice 3 Workshop. CS & IT Irvine, CA July 9, Copyright 2012 Wanda Dann, Don Slater, Steve Cooper

Alice 3 Workshop. CS & IT Irvine, CA July 9, Copyright 2012 Wanda Dann, Don Slater, Steve Cooper Alice 3 Workshop CS & IT Irvine, CA July 9, 2012 Research Group Wanda Dann Steve Cooper Don Slater Jacobo Carrasquel Dennis Cosgrove Dave Culyba Laura Paoletti Matt May Cleah Schlueter Sponsors Agenda

More information

Section 3 Formatting

Section 3 Formatting Section 3 Formatting ECDL 5.0 Section 3 Formatting By the end of this Section you should be able to: Apply Formatting, Text Effects and Bullets Use Undo and Redo Change Alignment and Spacing Use Cut, Copy

More information

Appendix A Reference: Built-in Methods

Appendix A Reference: Built-in Methods Appendix A Reference: Built-in Methods The Methods panel has three tabs so as to distinguish between procedural methods, functional methods, and methods related to that object's specific properties. Figure

More information

Methods (part 2) Alice In Action, Ch 2

Methods (part 2) Alice In Action, Ch 2 CS 120 Lecture 03 Methods (part 2) Alice In Action, Ch 2 4 September 2012 Slides Credit: Joel Adams, Alice in Action Objectives Build class-level methods to elicit desirable behaviors from objects Reuse

More information

Alice Methods and Classes. Methods and Classes

Alice Methods and Classes. Methods and Classes Alice Methods and Classes Methods and Classes Methods Coordinated sequence of instructions carried out when requested (e.g. move, turn to, etc.) Class A class defines an object, in our cases the 3D models

More information

Microsoft PowerPoint 2016 Part 2: Notes, Links, & Graphics. Choosing a Design. Format Background

Microsoft PowerPoint 2016 Part 2: Notes, Links, & Graphics. Choosing a Design. Format Background Microsoft PowerPoint 2016 Part 2: Notes, Links, & Graphics Choosing a Design Open PowerPoint. Click on Blank Presentation. Click on the Design tab. Click on the design tab of your choice. In part one we

More information

The Oracle Academy Supports 1.5 million students in 95 countries

The Oracle Academy Supports 1.5 million students in 95 countries The Oracle Academy Supports 1.5 million students in 95 countries Delivers a complete portfolio of software, curriculum, training, support and certification resources Helps students develop industryrelevant

More information

PREMIUM ATTENDANT GUIDE

PREMIUM ATTENDANT GUIDE wowforbusiness.com PREMIUM ATTENDANT GUIDE WOW! Business PAGM.U.1408.O Premium Attendant Table of Contents Product Overview...3 CommPortal Login Screen...4 Main Page...5 Schedule...6 Special Days...8 Menus

More information

Lecture 7. Log into Linux New documents posted to course webpage

Lecture 7. Log into Linux New documents posted to course webpage Lecture 7 Log into Linux New documents posted to course webpage Coding style guideline; part of project grade is following this Homework 4, due on Monday; this is a written assignment Project 1, due next

More information

CS121/IS223. Object Reference Variables. Dr Olly Gotel

CS121/IS223. Object Reference Variables. Dr Olly Gotel CS121/IS223 Object Reference Variables Dr Olly Gotel ogotel@pace.edu http://csis.pace.edu/~ogotel Having problems? -- Come see me or call me in my office hours -- Use the CSIS programming tutors CS121/IS223

More information

IT Introduction to Programming for I.T. Midterm Exam #1 - Prof. Reed Spring 2008

IT Introduction to Programming for I.T. Midterm Exam #1 - Prof. Reed Spring 2008 IT 101 - Introduction to Programming for I.T. Midterm Exam #1 - Prof. Reed Spring 2008 What is your name?: (0 points) There are two sections: I. True/False..................... 20 points; ( 10 questions,

More information

Headshots in Alice. Duke University Professor Susan H. Rodger Gaetjens Lezin July 2008 Updates made June 2014 by Yossra Hamid

Headshots in Alice. Duke University Professor Susan H. Rodger Gaetjens Lezin July 2008 Updates made June 2014 by Yossra Hamid Headshots in Alice Duke University Professor Susan H. Rodger Gaetjens Lezin July 2008 Updates made June 2014 by Yossra Hamid Introduction and Setup To create objects with your face in Alice we ll make

More information

Inspiring Creative Fun Ysbrydoledig Creadigol Hwyl. App Inventor Workbook

Inspiring Creative Fun Ysbrydoledig Creadigol Hwyl. App Inventor Workbook Inspiring Creative Fun Ysbrydoledig Creadigol Hwyl App Inventor Workbook App Inventor is a cloud-based application development tool, enabling users to develop Android applications for free! App Inventor

More information

Alice Tutorial 2. Downloading Tutorials

Alice Tutorial 2. Downloading Tutorials Alice Tutorial 2 Downloading Tutorials Please note that all tutorial resources must be downloaded in Firefox. Navigate to the link provided to you by your class tutor. Right click on each of the tutorial

More information

PowerPoint TM Tutorial

PowerPoint TM Tutorial PowerPoint TM Tutorial PowerPoint TM is an exciting tool that assists in effectively presenting a summation of important ideas to an audience. PowerPoint TM can often be intimidating to one who has never

More information

IAT 445 Lab 10. Special Topics in Unity. Lanz Singbeil

IAT 445 Lab 10. Special Topics in Unity. Lanz Singbeil IAT 445 Lab 10 Special Topics in Unity Special Topics in Unity We ll be briefly going over the following concepts. They are covered in more detail in your Watkins textbook: Setting up Fog Effects and a

More information

Skills covered: Add a Table Insert, Move, and Resize Clip Art Apply a Transition Animate Objects Create a Handout Header and Footer

Skills covered: Add a Table Insert, Move, and Resize Clip Art Apply a Transition Animate Objects Create a Handout Header and Footer HANDS-ON EXERCIS HOE3 Training 3 Presentation Development You decide to strengthen the slide show by adding objects. You know that adding clip art and additional information in a table will help state

More information

Rule 1-3: Use white space to break a function into paragraphs. Rule 1-5: Avoid very long statements. Use multiple shorter statements instead.

Rule 1-3: Use white space to break a function into paragraphs. Rule 1-5: Avoid very long statements. Use multiple shorter statements instead. Chapter 9: Rules Chapter 1:Style and Program Organization Rule 1-1: Organize programs for readability, just as you would expect an author to organize a book. Rule 1-2: Divide each module up into a public

More information

Capstone Appendix. A guide to your lab computer software

Capstone Appendix. A guide to your lab computer software Capstone Appendix A guide to your lab computer software Important Notes Many of the Images will look slightly different from what you will see in lab. This is because each lab setup is different and so

More information

Chapter 4. Procedural Abstraction and Functions That Return a Value. Copyright 2014 Pearson Addison-Wesley. All rights reserved.

Chapter 4. Procedural Abstraction and Functions That Return a Value. Copyright 2014 Pearson Addison-Wesley. All rights reserved. Chapter 4 Procedural Abstraction and Functions That Return a Value 1 Overview 4.1 Top-Down Design 4.2 Predefined Functions 4.3 Programmer-Defined Functions 4.4 Procedural Abstraction 4.5 Local Variables

More information

BASIC ELEMENTS OF A COMPUTER PROGRAM

BASIC ELEMENTS OF A COMPUTER PROGRAM BASIC ELEMENTS OF A COMPUTER PROGRAM CSC128 FUNDAMENTALS OF COMPUTER PROBLEM SOLVING LOGO Contents 1 Identifier 2 3 Rules for naming and declaring data variables Basic data types 4 Arithmetic operators

More information

5/3/2006. Today! HelloWorld in BlueJ. HelloWorld in BlueJ, Cont. HelloWorld in BlueJ, Cont. HelloWorld in BlueJ, Cont. HelloWorld in BlueJ, Cont.

5/3/2006. Today! HelloWorld in BlueJ. HelloWorld in BlueJ, Cont. HelloWorld in BlueJ, Cont. HelloWorld in BlueJ, Cont. HelloWorld in BlueJ, Cont. Today! Build HelloWorld yourself in BlueJ and Eclipse. Look at all the Java keywords. Primitive Types. HelloWorld in BlueJ 1. Find BlueJ in the start menu, but start the Select VM program instead (you

More information

Software and Programming 1

Software and Programming 1 Software and Programming 1 Lab 1: Introduction, HelloWorld Program and use of the Debugger 17 January 2019 SP1-Lab1-2018-19.pptx Tobi Brodie (tobi@dcs.bbk.ac.uk) 1 Module Information Lectures: Afternoon

More information

PowerPoint : :. PowerPoint

PowerPoint : :. PowerPoint PowerPoint : :. PowerPoint. PowerPoint. PowerPoint. PowerPoint. PowerPoint PowerPoint.... Microsoft Office.. ( ) PowerPoint PowerPoint Excel Word. Office.. PowerPoint PowerPoint. :. Start. All programs.

More information

Variables are used to store data (numbers, letters, etc) in MATLAB. There are a few rules that must be followed when creating variables in MATLAB:

Variables are used to store data (numbers, letters, etc) in MATLAB. There are a few rules that must be followed when creating variables in MATLAB: Contents VARIABLES... 1 Storing Numerical Data... 2 Limits on Numerical Data... 6 Storing Character Strings... 8 Logical Variables... 9 MATLAB S BUILT-IN VARIABLES AND FUNCTIONS... 9 GETTING HELP IN MATLAB...

More information

STUDENT OUTLINE. Lesson 8: Structured Programming, Control Structures, if-else Statements, Pseudocode

STUDENT OUTLINE. Lesson 8: Structured Programming, Control Structures, if-else Statements, Pseudocode STUDENT OUTLINE Lesson 8: Structured Programming, Control Structures, if- Statements, Pseudocode INTRODUCTION: This lesson is the first of four covering the standard control structures of a high-level

More information

CS Summer 2013

CS Summer 2013 CS 1110 - Summer 2013 intro to programming -- how to think like a robot :) we use the Python* language (www.python.org) programming environments (many choices): Eclipse (free from www.eclipse.org), or

More information

Lab 7c: Rainfall patterns and drainage density

Lab 7c: Rainfall patterns and drainage density Lab 7c: Rainfall patterns and drainage density This is the third of a four-part handout for class the last two weeks before spring break. Due: Be done with this by class on 11/3. Task: Extract your watersheds

More information

TABLE OF CONTENTS 2 CHAPTER 1 3 CHAPTER 2 4 CHAPTER 3 5 CHAPTER 4. Algorithm Design & Problem Solving. Data Representation.

TABLE OF CONTENTS 2 CHAPTER 1 3 CHAPTER 2 4 CHAPTER 3 5 CHAPTER 4. Algorithm Design & Problem Solving. Data Representation. 2 CHAPTER 1 Algorithm Design & Problem Solving 3 CHAPTER 2 Data Representation 4 CHAPTER 3 Programming 5 CHAPTER 4 Software Development TABLE OF CONTENTS 1. ALGORITHM DESIGN & PROBLEM-SOLVING Algorithm:

More information