Fall 2009ACS-1805 Ron McFadyen1 Chapter 2 Program Design & Implementation.

Slides:



Advertisements
Similar presentations
PIIT Computer Science Summer Camp - Alice July 10, 2012 Brenda Parker Computer Science Department MTSU.
Advertisements

Introduction to Alice Alice is named in honor of Lewis Carroll’s Alice in Wonderland Modified by Serita Scott Further modified by Suzy Crowe.
CSC1401 Animation Creating methods/instructions (class-level)
1 Fall 2009ACS-1805 Techniques for designing code Storyboards Text (aka pseudocode) Diagrams Flowcharts (a procedural technique shown in text) Directed.
Fall 2007ACS-1805 Ron McFadyen1 Ch 7 Loops Alice has two control structures for controlling the repeated execution of statements Loop While.
Fall 2009ACS-1805 Ron McFadyen1 Ch 7 Loops Alice has two control structures for controlling the repeated execution of statements Loop While.
Alice Programming Step 1:Design Copyright 2011 Wanda Dann, Don Slater, Steve Cooper.
Programming in Alice Chapter 2. Today’s Agenda Designing a Program Writing Methods Executing Instructions Simultaneously Comments Tips for Setting Up.
1 Fall 2008ACS-1805 Techniques for designing code Storyboards Text (aka pseudocode) Diagrams Flowcharts (a procedural technique) Text presents one of these.
Fall 2007ACS-1805 Ron McFadyen1 Chapter 7 Repetition.
Fall 2007ACS-1805 Ron McFadyen1 Ch 7 Loops Alice has two control structures for controlling the repeated execution of statements Loop While.
Fall 2007ACS-1805 Ron McFadyen1 Chapter 3 Programming - Putting Together the Pieces.
Fall 2007ACS-1805 Ron McFadyen1 Chapter 8 Recursion.
Creating an Animation Program Alice. Step 1: Design Decide on the problem to be solved Design a solution We will use a storyboard design technique, commonly.
Fall 2007ACS-1805 Ron McFadyen1 Ch 9 Lists In some animations, several objects must perform the same actions Example: A marching band, where the band members.
CS320n –Visual Programming Interactive Programs Mike Scott (Slides 5-1)
Copyright 2011 Wanda Dann, Steve Cooper, Don Slater Alice Workshop Problem Solving with Alice 2 & Friends.
Fall 2007ACS-1805 Ron McFadyen1 Chapter 3 Programming.
Animation Programs Alice. Overview 4-step process for creating animations Step 1: Understand Problem Step 2: Design Step 3: Implementation Step 4: Test.
Programming: Simple Control Structures Alice. Control Statements We have been using Do in order and Do together to control the way instructions are executed.
Creating An Animation Program Alice Web Design Section 8-4.
Classes, Objects, and World-level Methods Section 47 Web Design.
CS 0004 –Lecture 8 Jan 24, 2011 Roxana Gheorghiu.
Animation Programs: Scenarios and Storyboards Alice Web Design Section 8-3.
CS320n –Visual Programming Introduction to Alice Mike Scott (Slides 2)
Classes, Objects, and World-level Methods Alice. Larger Programs As you become more skilled in writing programs, you will find that programs quickly increase.
Storyboards in Alice Summer 2010 Prof. Susan Rodger.
Alice Programming Step 1:Design Copyright 2011 Wanda Dann, Don Slater, Steve Cooper.
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with Alice: A Visual Introduction to Programming First Edition.
CS329e – Elements of Visual Programming Implementing Programs Mike Scott (Slides 2-2)
Programming: Simple Control Structures Alice. Control Statements We have been using Do in order and Do together to control the way instructions are executed.
Animation Programs: Scenarios and Storyboards Alice.
A first program Sept 14, 2010 – Day 3 Object-oriented Programming thru Video Games TIDE 1840 Harry Howard Tulane University.
Alice Program Design and Implementation. Scenarios and storyboards The previous magician example illustrated a simple storyboard which depicts a scenario.
Classes, Objects, and World-level Methods Alice. Larger Programs As you become more skilled in writing programs, you will find that programs quickly increase.
1 Fall 2007ACS-1903 Techniques for designing code Storyboards Text (aka pseudocode) Diagrams Flowcharts (a procedural technique) Text presents one of these.
Creating An Animation Program Alice. Step 1: Design Decide on the problem to be solved Design a solution We will use a storyboard design technique, commonly.
Storyboarding1 Steve Cooper Barb Ericson August 2009 Storyboarding.
Creating An Animation Program Alice. Recall We began the animation creation process We introduced the concept of storyboard We will continue using the.
Animation Programs: Scenarios and Storyboards
Animation Programs Alice.
Creating an Animation Program
Classes, Objects, and World-level Methods MMP 220 Multimedia Programming This adapted material was prepared for students in MMP220 as as part of a curriculum.
Storyboarding and Program Design Alice. Step 1: Design Decide on the problem to be solved Design a solution We will use a storyboard design technique,
Review for test! Alice Chapter 1&2 Test is tomorrow! - March 26 th March 25th.
Programming: Simple Control Structures
Programming: Simple Control Structures MMP 220 Multimedia Programming This adapted material was prepared for students in MMP220 as as part of a curriculum.
Learning to Program with Alice September 22, 2009.
Fall 2007ACS-1805 Ron McFadyen1 Chapter 2 Creating Your First Animation (An Introduction to Programming)
Learning to Program with Alice 1st Semester September 11, 2008.
Animation Programs: Scenarios and Storyboards Alice.
Creating an Animation Program Alice. The programming steps.
Program design and implementation Sept 7, 2010 – Day 2 Object-oriented Programming thru Video Games TIDE 1840 Harry Howard Tulane University.
Problem Solving.  Similar to Solving Math Word Problem  Read the Problem  Decide how to go about Solving the Problem  Solve the Problem  Test the.
Creating an Animation Program Alice. Step 1: Design Decide on the problem to be solved Design a solution We will use a storyboard design technique, commonly.
Programming in Alice Chapter 2.
Classes, Objects, and World-level Methods
Creating Animations in Alice
Classes, Objects, and World-level Methods
Problem Solving Techniques
Programming: Simple Control Structures
Creating an Animation Program
Classes, Objects, and World-level Methods
Programming: Simple Control Structures
Design and Implementation
Creating an Animation Program
Animation Programs: Scenarios and Storyboards
Programming: Simple Control Structures
Programming: Simple Control Structures
Programming: Simple Control Structures
Presentation transcript:

Fall 2009ACS-1805 Ron McFadyen1 Chapter 2 Program Design & Implementation

Fall 2009ACS-1805 Ron McFadyen2 Creating an Animation Given the description of a story, game, simulation create an Alice animation Or … Given a problem statement, write a program to solve it

Fall 2009ACS-1805 Ron McFadyen3 Creating an Animation Recommended approach Read the scenario (requirement statement) Design an animation using storyboards (drawings or textual) and possibly flowcharts Implement your design (translating your design into a programming language … Alice) Test your design (run your program and evaluate the result … does it work as required?) If the animation is not correct or complete repeat this process appropriately

Fall 2009ACS-1805 Ron McFadyen4 Example Read the “First Encounter” scenario: “After traveling through space, … Design From the scenario, determine the problem to be solved: What is the story to be told? What objects are required? What actions are needed? Use the storyboard technique to outline a solution Implementation Create an initial scene Translate the storyboard actions into code Test Determine if the implementation meets the requirements of the scenario

Fall 2009ACS-1805 Ron McFadyen5 Creating Your First Animation First Encounter scenario (from text): After traveling through space, a robot-manned craft has just made a breathless landing on the surface of the moon. The robot has already climbed out of the lunar lander and has set up a camera so earthbound scientists in Houston can view this historic event. Through the camera we can see the robot, the lunar Lander and some nearby rock formations. Suddenly an alien peeks out from behind a rock and looks at the robot. The robot is surprised and rotates its head all the way around. The robot walks over to take a closer look and the alien hides behind the rocks. Finally, the robot looks at the camera, signals danger, and says “ Houston, we have a problem?”

Fall 2009ACS-1805 Ron McFadyen6 Storyboards When planning a program we can create storyboards to organize our approach. Two forms you might use: Visual hand-sketched screen captures Textual Algorithm Pseudocode

Fall 2009ACS-1805 Ron McFadyen7 Storyboards The text’s textual storyboard The above outlines an algorithm – a set of instructions to follow to accomplish a task The above is also referred to as pseudocode – it is very close to program statements Do the following steps in order alien moves up alien says "Slithy toves?" robot's head turns around robot turns to look at alien Do the following together robot moves toward the alien robot legs walk alien moves down, …

Fall 2009ACS-1805 Ron McFadyen8 Flowcharting A designer/programmer might use a flowchart to illustrate her/his design start stop Alien moves up Alien says “Slithy toves?” Robot’s head turns around Robot says “Houston…” Robot turns to look at alien A A Robot walks toward alien Alien moves down

Fall 2009ACS-1805 Ron McFadyen9 Your First Program Implementing the design Select a world Choose your objects Create an initial scene Edit World.my first method create instructions using objects, methods, … See class demo Note how the animation is developed piece by piece - incrementally Do in order Do together If/Else Loop While For all in order For all together Wait Print // comments

Fall 2009ACS-1805 Ron McFadyen10 Your First Program Testing your implementation Play your world Observe the behaviour Is the behaviour what you expected? If yes … then you are done Otherwise … you have a bug and you need to Determine what needs to change Is the scenario correct? Is your design correct? Is your code correct? Make the changes and repeat this whole process again See class demo