Unit 1 Lab 2

Gossip

BJC unit 1 Lab 2 Gossip

Pair Programming

1

Making Programs Talk

u1l2 chunk 2

Vocabulary

Click each word to view the definition.

Abstraction

Abstraction is the most fundamental idea in computer science, but it's hard to define until you've seen some examples. The most basic kind of abstraction is to give a name to something in a program. For example, here we gave the name who to the idea "pick an item at random from this list of people (or cats)." This is called procedural abstraction because we use a procedure (a block) to name the idea. This makes your code readable. You'll see other kinds of abstraction later.

Customizing & Debugging

u1l2 chunk 3

Self-Check

Unit 1 Lab 2: Customizing & Debugging

Making Your Own Block

u1l2 chunk 4

Vocabulary

Click each word to view the definition.

Procedure

A procedure is a named sequence of instructions that may take inputs and may report a value. Some languages call procedures methods or functions. Here are two types of procedures you have seen in Snap!

Reporter

Reporters have an oval shape. They report a value.

Command

Commands have a jigsaw puzzle shape. They tell the computer to do something without reporting a value.

Adding Variety to Gossip

u1l2 chunk 5

Vocabulary

Click each word to view the definition.

Expression


Values


Self-Check

Unit 1 Lab 2: Adding Variety to Gossip