O'Reilly logo

Scratch™ 2.0 Programming for Teens, Second Edition by Jerry Lee Jr. Ford

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER 8DOING A LITTLE MATH

Scratch 2.0 provides robust support for performing mathematical calculations. This lets you develop applications that can manipulate numeric data in a variety of ways. Scratch 2.0 provides this support through operator blocks. Operator blocks are reporter blocks, so you can only use them in conjunction with stack code blocks. This chapter provides a thorough review of each of these code blocks and shows you how to create a new Scratch 2.0 application: the Number Guessing game.

The major topics covered in this chapter include

image Adding, subtracting, multiplying, and dividing programmatically

Generating random numbers ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required