Chapter 4: Selection

Coordinate System

The first video for Chapter 4 of Introduction to Programming Using Processing introduces the need for selection in our programs, and covers the syntax of the "one-armed" if statement.

In the second video for Chapter 4, we use a one-armed if to determine if a user-supplied name has fewer than 10 characters. If so, we show a red display window; otherwise, we show a green display window.

In the third video for Chapter 4 of Introduction to Programming Using Processing , we develop a simple application that uses a one-armed if with a compound Boolean expression.

The fourth video for Chapter 4 of Introduction to Programming Using Processing covers the "two-armed" if statement, which gives us genuine true / false decision making, rather than the true / skip behavior of the "one-armed" if.

The fifth video for Chapter 4 of Introduction to Programming Using Processing covers the switch statement, which we use to make multiple choice decisions in our programs. The example in the video also introduces the concept of alias variables.

In the sixth video for Chapter 4 of Introduction to Programming Using Processing , we cover typography: How to create, load, and use fonts in order to display text in our applications.

In the seventh video for Chapter 4 of Introduction to Programming Using Processing , we introduce the concept of nesting control structures: Placing an if statement within another if statement, for example.

The final video for Chapter 4 of Introduction to Programming Using Processing uses nested if statements to create an MP3 player capable of playing four songs.