Chapter 6: Learning to Program with Alice

Created by clemieux 

Upgrade to
remove ads

15 terms

changing the state

an animation performed by a method that moves, turns, or performs some other action with objects in the world

pure functions

functions that do not make an object move, turn, or perform some other action

type

number, Boolean, object, and other

control structure

Do together, Do in order, or, in this case, If/Else

relational operators

math functions such as "<", ">=", or "!="

logical operator

"not 'a'", "both 'a' and 'b'", or "either 'a' or 'b', or both"

random numbers

numbers that can be anywhere between a set range

integer

numbers that have no digits to the right of the decimal point

random motion

when the random number function is combined with the move instruction

purpose of a method

to perform an animation

purpose of a function

to return a value

functions

leave the state of the world unchanged

methods

change the state of the world through the movement in animations

abstraction

collecting lots of small steps into one meaningful idea to allow us to think on a higher plane

return statement

a part of a function that tells Alice to send back the computed answer.

Please allow access to your computer’s microphone to use Voice Recording.

Having trouble? Click here for help.

We can’t access your microphone!

Click the icon above to update your browser permissions above and try again

Example:

Reload the page to try again!

Reload

Press Cmd-0 to reset your zoom

Press Ctrl-0 to reset your zoom

It looks like your browser might be zoomed in or out. Your browser needs to be zoomed to a normal size to record audio.

Please upgrade Flash or install Chrome
to use Voice Recording.

For more help, see our troubleshooting page.

Your microphone is muted

For help fixing this issue, see this FAQ.

NEW! Voice Recording

Click the mic to start.

Create Set