As you come in… DOWNLOADS FOR TODAY: Alice Project: Wanda Dann and Don Slater, CMU What do you still need (Alice content/understanding)?

Slides:



Advertisements
Similar presentations
I am going to fly on an airplane. We will drive a car to the airport and park our car.
Advertisements

Mike Scott University of Texas at Austin
As you come in… Sign in (in back) and pick up Badge Name Card – on computer… Log in: Launch/Start Alice Any questions? (of any kind) DOWNLOADS FOR TODAY:
As you come in…  Sign in (in back) and pick up  Badge  Name Card – write your first name LARGELY on back  Any questions? (of any kind)  Put on index.
As you come in…  Sign in (in back) and pick up  Badge  Name Card – write your first name LARGELY on back  Log in:  Launch/Start Alice  Any questions?
Making Decisions in Python Sec 9-10 Web Design. Objectives The student will: Understand how to make a decision in Python Understand the structure of an.
Getting Started With Alice By Ruthie Tucker under the direction of Prof. Susan Rodger Duke University, July
PIIT Computer Science Summer Camp - Alice July 10, 2012 Brenda Parker Computer Science Department MTSU.
Princess & Dragon Part 2: Teaching a Dragon to Fly—Methods & Properties By Elizabeth Liang under the direction of Professor Susan Rodger Duke University.
Programming with Alice Computing Institute for K-12 Teachers Summer 2011 Workshop.
Parameters Alice.
Parameters Section 8-8 Web Design. Objectives The student will: Understand what a parameter is Understand how to use a parameter in Alice Understand how.
Chapter 4.3 Class level methods (versus previous world-level methods)
As you come in…  Sign in (in back) and pick up  Badge  Name Card – write your first name LARGELY on back  Any questions? (of any kind)  Put on index.
Repetition Structures
Programming with Alice Computing Institute for K-12 Teachers Summer 2011 Workshop.
Many people will walk in and out of your life, But only true friends will leave footprints in your heart. If some one betrays you once, it is his fault;
Chapter 9.1: Lists Lists are often called by another name in other programming languages – arrays.
Mrs. Chapman. Tabs (Block Categories) Commands Available to use Script Area where you type your code Sprite Stage All sprites in this project.
Alice Variables Pepper. Set to Java look Edit / preferences restart.
CS320n –Visual Programming Interactive Programs Mike Scott (Slides 5-1)
Interaction: Events and Event Handling
Class-Level Variables in Alice By Jenna Hayes Under the direction of Professor Rodger Duke University, July 2008.
Wizard Game: Class-Level Variables in Alice By Jenna Hayes Under the direction of Professor Susan Rodger Duke University, July
Methods Tutorial: Part One By Deborah Nelson Duke University Under the direction of Professor Susan Rodger June 9, 2008.
METHODS!.  A method is a sequence of instructions or behaviors that will be carried out when requested.  You can use them to create new methods so that.
Functions and Conditionals in Alice 1 Stephen Cooper Wanda Dann Barb Ericson September 2009.
Mr. Wortzman. Tabs (Block Categories) Available Blocks Script Area Sprite Stage All sprites in this project.
Lecture 2: CSE3: Fluency in Information Technology Read csemoodle.ucsd.edu – Homework for next Monday (you don’t turn anything in) – Joined class late,
As you come in…  DOWNLOADS FOR TODAY:  CarGameTeacherStarter.a2w  Online student textbook.
01-Intro-Object-Oriented-Prog-Alice1 Barb Ericson Georgia Institute of Technology Aug 2009 Introduction to Object-Oriented Programming in Alice.
Recursion1 Stephen Cooper Wanda Dann Randy Pausch Barb Ericson Jan 2010 Recursion in Alice.
Variables and Functions Chapter Variables Named storage location in computer’s memory Programs may need to store data when running o Stored in.
Today’s Agenda 1.Collect Pre-Lab 4 2.Alice Programming Assignment Storyboards 3.Classes 4.Objects 5.Methods 6.Assign pair programming teams and meet upstairs.
Tutorial for Arrays and Lists By Ruthie Tucker. Description This presentation will cover the basics of using Arrays and Lists in an Alice world This presentation.
Execution Control with If/Else and Boolean Functions
Alice Project 1 Web Design. Electronic Greeting Card Build an animation for an electronic greeting card (any occasion you choose – birthday, get well,
Glenn David Blank Computer Science & Engineering Department Lehigh University, Bethlehem, PA, USA With support from the National Science Foundation (Grants.
Shorter of two objects and changing color V2 Functions, events and setting the color in sequence and randomly This is a modification of the Changing Color.
English 11/Honors Mrs. Loosle Room 184 CLASSROOM PROCEDURES.
Engineering 1020 Introduction to Programming Peter King Winter 2010.
Chapter 4: Classes, Objects, and Parameters 4.1 World-Level methods.
Lecture 3: Chapter 4.1 and 4.2 Discussion groups: Very impressed! – Excellent job by class-wide discussion contributors Learning Goal: Technical analysis.
Alice Program Design and Implementation. Scenarios and storyboards The previous magician example illustrated a simple storyboard which depicts a scenario.
Today you will need… Your math journal A pencil. Look at the numbers in each triangle Triangle A Triangle B Triangle c.
Don Slater Wanda Dann Copyright 2012 Wanda Dann, Don Slater All rights reserved.
Conditional Statements.  Quiz  Hand in your jQuery exercises from last lecture  They don't have to be 100% perfect to get full credit  They do have.
CS 106 Introduction to Computer Science I 09 / 26 / 2007 Instructor: Michael Eckmann.
Variables and Functions Alice. Naming is Important If you get a new pet one of the first things you do is name it Gives you a way to refer to the new.
Functions Sec 8-11 Web Design. Objectives The Student will: Understand what a function is Know the difference between a method and a function Be able.
Review for test! Alice Chapter 1&2 Test is tomorrow! - March 26 th March 25th.
Copyright 2008 Wanda Dann, Steve Cooper, Don Slater Alice Workshop Functions, Loops, and Parameters.
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.
Copyright 2008 Wanda Dann, Steve Cooper, Don Slater Alice Workshop Variables & Conditions.
World-level Classes Chapter 6 Part 2. Programs Grow Program code grows larger over time This makes it more difficult to read and process the code in our.
Unit 7 Grammar Forms & Functions 3
CompSci 4 Chap 6 Sec 2 Sep 30, 2010 Prof. Susan Rodger “All your troubles are due to those ‘ifs’,” declared the Wizard. If you were not a Flutterbudget.
Parameters Alice. A beetle band Our task is to create an animation for a bug band as an advertisement for their next concert.
Parameters Alice. Overview The need for more flexible methods Passing a parameter to a method Demos Using the Alice interface to write code for a parameter.
Parameters MMP 220 Multimedia Programming This adapted material was prepared for students in MMP220 as as part of a curriculum redesign project funded.
February 25,  The BDE(Begin-During-End) event.  Worksheet – Exercise # 9 Instructions  2nd Period Test.
Repetition everywhere – comparing while in a method and as an event Susan Rodger Duke University July 2010.
CS320n –Visual Programming Execution Control with If / Else and Boolean Functions (Slides 6-2-1) Thanks to Wanda Dann, Steve Cooper, and Susan Rodger for.
Alice Development Environment. Which area contains our “program” (set of instructions)? D AB C.
Parameters Section 8-8 Web Design.
Teaching Characters to Walk: Learning Methods, Part 1
Parameters Alice.
Introduction to Object-Oriented Programming in Alice
Classes / Objects / Methods
Parameters Alice.
Presentation transcript:

As you come in… DOWNLOADS FOR TODAY: Alice Project: Wanda Dann and Don Slater, CMU What do you still need (Alice content/understanding)? (Ill answer next week…) Index cards As many as you want Counted loops, nested loops, while loops, if statements, nested if statements, functions, expressions, compound boolean expressions, methods parameters

RSVP: Snacks next week Wrap up at 5:30 Snacks and beverages on the patio 5:30-6:30

Other administrative stuff?

Todays plan Methods and Parameters (Probably next time) Lists

Last Time… Module 2: Make Methods Escape FreakOut Apologize Did we – add a parameter to our methods? How many times should promGuy spin in his freakout? What should georgeBeetle say as an apology? What should promGuy say in his freakout?

One should use methods in programs primarily… A. For the computer B. For the person writing the program C. For people reading a program D. More than one of the above And WHY is it important?

How to make methods Think of ways in which your planned animation has natural parts Give each of the parts a name Put the code that makes that part happen in a method with that name Call that method from my first method, in the right order.

Example: Going to a movie… Walk up to ticket window Walking in group Buy tickets Interact with ticket seller (talking, hand over money, get tickets) Enter theater Walk through doors, hand tickets to worker, walk into lobby Buy snacks… Take seats… Make snarky critiques… …

Exercise! Choices… Choice 1: Set up the world yourself, or start with one we set up Do you want practice in setting up world? Focus on methods/parameters Which exercise: Helicopter Flight Beetle Band

Helicopter Flight [1] Create a world with a helicopter (Vehicles gallery), airport (Buildings), and a control tower (Buildings). Part A: Create a circleTower method that makes the helicopter fly toward the control tower and then around it. In my first method call the circleTower method twice, and then make the helicopter land on the landing strip. Part B: Modify circleTower to take a parameter indicating how many times it should go around the tower. Change the method call in myFirstMethod to only call the method once, but use a parameter to make it circle 2 time (then try 4 times). Add another object to the world (maybe a bird or flying dinosaur). Modify the circleTower method to take a second parameter which controls which object should circle the tower. [1] From Learning to Program with Alice textbook, do not use with students

Beetle Band [1] Create a world with a stage, and 4 beetles (Animals, Bugs) ringoBeetle, paulBeetle, Lennonbeetle, and georgeBeetle on it. Give them each an instrument (you can pick). Set the instruments vehicle to their beetle (whoever has that instrument). Create a method called paulSolo that makes paulBeetle do a solo but moving up and down while he spins around 1 revolution. Call this method from myFirstMethod. Modify the method to be called solo – and control which beetle dances by passing it as a parameter. In myFirstMethod, call solo so that each beetle does his solo in order from left to right. Modify the solo method to be more flexible by sending a parameter which is the number of spins a beetle should do when soloing [1] From Learning to Program with Alice textbook, do not use with students

Below: what happens after the last instruction in the mystery method is finished executing? A. The program starts the World.my first method B. The program goes back to my first method and calls method XXXXX C. The program goes back to my first method and calls method YYYYY D. We cant tell, we need to know more about the storyboard to be able to say

If we write a method called drive, which would not make sense as a parameter to control how drive occurs? A. Destination B. How fast C. Which car D. Car color

Which of the following is the best explanation of what makes a good parameter A. Its something that supports common variation in how the method is done B. Its got a meaningful name C. It can be either an Object or a number D. Its helps manage complexity in large programs