Book Image

Scratch Cookbook

By : Brandon Milonovich
Book Image

Scratch Cookbook

By: Brandon Milonovich

Overview of this book

Scratch 2.0 is an easy to use programming language that allows you to animate stories and create interactive games. Scratch also gives you the capability of using programming to calculate complicated calculations for you. Scratch Cookbook will lead you through easy-to-follow recipes that give you everything you need to become a more advanced programmer. Scratch Cookbook will take you through the essential features of Scratch. You'll then work through simple recipes to gain an understanding of the more advanced features of Scratch. You will learn how to create animations using Scratch. Sensory board integration (getting input from the outside environment) will also be covered, along with using Scratch to solve complicated and tedious calculations for you. You'll also learn how to work through the exciting process of project remixing where you build on the work of others. Scratch Cookbook will give you everything you need to get started with building your own programs in Scratch that involve sounds, animations, and user interaction.
Table of Contents (17 chapters)
Scratch Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Introduction


This chapter focuses on using Scratch to do some calculations. One of the greatest uses of computers is to do tedious calculations to save time. This is because computers are very good at following a set of directions many times over—as we've seen through all the programming we've done so far.

We're going to work through three difference recipes in this chapter, two of which will do a lot of calculations for us very quickly. The third recipe will focus on creating a program that can be used as a basic password generator. Lastly, we'll play around with a few other ways we can make calculations in Scratch.

All of these recipes will focus heavily on the use of blocks we've used before, in addition to many new ones from the Operators category:

The blocks from this category allow us to do a lot of different mathematical computations on the numbers (usually stored as variables) in our programs.

Let's get going with our first recipe!