alice 2 0 l.
Skip this Video
Loading SlideShow in 5 Seconds..
Alice 2.0 PowerPoint Presentation
Download Presentation
Alice 2.0

Loading in 2 Seconds...

play fullscreen
1 / 30

Alice 2.0 - PowerPoint PPT Presentation

  • Uploaded on

Alice 2.0 an introduction to computer programming Alice 2.0 Part I: What is Alice? Part II: Software Development Part III: Elements of Programming Part IV: Event-Driven Programming Part I: What is Alice? What is Alice 2.0? It is a computer application...

I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
Download Presentation

PowerPoint Slideshow about 'Alice 2.0' - medwin

An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.

- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
alice 2 0

Alice 2.0

an introduction to computer programming

alice 2 02
Alice 2.0
  • Part I: What is Alice?
  • Part II: Software Development
  • Part III: Elements of Programming
  • Part IV: Event-Driven Programming
what is alice 2 0
What is Alice 2.0?

It is a computer application...

created by Carnegie Mellon University,

to “teach” computer programming.

Alice 2.0 is designed to create computer applications –

(i.e. build programs).

who should use alice
Who should use Alice?

Anyone interested in learning the underlying skills required for programming in most languages.

And All of YOU lucky CS109 students in this class! 

why use alice
Why use Alice?

Why not just jump into C++ or Java?

Alice makes learning programming easier…

removing the challenges of programming syntax,

and “debugging” is made easier with visual cues.

//c++ application

int main(0)


char display[20];

getline (display,20,\n);




what type of programming does alice teach
What type of programming does Alice teach?

Alice utilizes the concepts of OOP (Object Oriented Programming),

and Event Driven Programming

(i.e. an “event trigger” causes a series of commands/instructions to be exectuted).

object basics
Object Basics

Objects have properties (description)

object basics9

Objects have methods (behaviors)

Note: functions are a method that returns a value.

Object Basics

Method (code) to make beak open and close

the alice ide integrated development environment or simply put the alice interface
The Alice IDE (integrated development environment)orsimply put – The Alice Interface

This is the work area for programming with Alice…

the ide

Object Tree

part ii software development
Part II: Software Development

It’s not just Alice anymore.

the software development cycle
The Software Development Cycle

1. Design Phase

In the Design Phase, information is gathered to determine the task/problem to be solved by the application.

The task/problem is broken into smaller tasks, called modules.

Then a “plan of attack” is created.

the software development cycle16
The Software Development Cycle

2. Implementation Phase

In the Implementation Phase, the solution to the problem/task is coded to build the application.

the software development cycle17
The Software Development Cycle

3. Testing Phase

In the Testing Phase, the application is tested –

Individual modules

Combined modules

Entire application

the software development cycle18
The Software Development Cycle

4. Debugging Phase

In the Debugging Phase,

The errors and side effects (unwanted results) are corrected.

the software development cycle19
The Software Development Cycle

5. Documentation

Finally, once the application works as required by the Design Phase – the application and its workings are documented –

for users of the application

for future programmers to modify the application

programming rule 1
Programming Rule #1

Algorithm: A step by step method for solving a problem

Programs are algorithms created to solve problems.

Thus, programs are linear –

They start at the top (beginning)


proceed to the bottom (end).

key programming commands
Key Programming Commands

Selection/Branching – if/else (decision point or multiple points)



you want

a glass of



glass of



Make c


Make s

Make plain

key programming commands24
Key Programming Commands

Repetition/Looping – loop & while (repeating a task)

Loops can be pre-test, or post-test

key programming commands25
Key Programming Commands

Are you Boolean Logical?

Boolean values are easy, as there are only 2.

0 – off/false

1 – on/true

Logic Operators:

==, <,<=, >,>=, !=

part iv event driven programming
Part IV: Event-Driven Programming

In order to cause an “event” to occur – the user must invoke the “event trigger”.

events methods
Events & Methods

The event – chicken rolling and changing colors

(as defined by the method “Silly Chicken”)

“occurs” when the “event trigger” (mouse click on chicken)

is detected by the “event listener”.

Note: The Silly Chicken method is known as the “event handler”.

adding a billboard
Adding a Billboard
  • Billboards are used in Alice to list keyboard controls (event triggers) available to the user.
  • Create the control billboard using Paint
  • Use a textbox in Paint to list the commands of your Alice World
  • Save the file as a .jpg
  • Import and use the file as listed on pages 220 -223