<< Chapter < Page Chapter >> Page >
  • the Stage, shown in white in the upper right,
  • a small program consisting of three scripts shown in the middle panel, and
  • two variables shown in gray near the top of the lower-left panel and also shown in the upper-left corner of the Stage.

The toolbox buttons

If you have worked through the Scratch tutorials, you will recognize that the material in the lower-left panel is always associated with one of the following eighttoolbox buttons in the upper-left panel:

  • Motion
  • Looks
  • Sounds
  • Pen
  • Control
  • Sensing
  • Operators (previously Numbers)
  • Variables

In other words, when you click on one of the buttons in the upper-left panel, it exposes a set of tools that you can use to write your program. Those toolsappear in the lower-left panel.

When one of those eight buttons is clicked, it becomes completely colored and the tools associated with that button are displayed below it. The orangebutton has been selected in Image 1 . Since you can't read the label on that button, I will tell you that the label on the orange button reads Variables .

A full-size view of the Variables area

Image 2 presents a full-size view of the two left-most panels from Image 1 showing the tools that are exposed by the Variables button.

Tools in the Variables toolbox: When you first click the Variables button, only two gray buttons are exposed in the bottom panel of Image 2 . One gray button is labeled Make a variable and the other gray button is labeled Make a list . The orange material in Image 2 was produced by clicking twice on the button labeled Make a variable and entering a name for each variable.

Image 2. a view of the variables area of the scratch user interface.

Missing image.
Image 2. A view of the Variables area of the Scratch user interface.

Create two variables

Click here for instructions on creating variables.

Image 2 shows that this Scratch program contains two variables with the following names:

  • Counter
  • counter

I purposely spelled the names of the two variables the same and made them differ only by the case of the first letter to illustrate that Scratch is casesensitive insofar as the names of the variables is concerned. Even though these two variable names contain the same letters, they are two different variablesbecause one name begins with an upper case "C" and the other name begins with a lower-case "c".

Allowable operations for variables

There are four programming blocks (in the bottom panel of Image 2 ) associated with each variable. As you learned from working through the tutorials, you can drag theseblocks into the programming area in the center pane in Image 1 to actually write the program. Thus, there are four different operations that you can perform on a variable:

  • You can set the value of the variable to a specified value.
  • You can change the value of the variable by a specified value.
  • You can show a variable on the stage.
  • You can hide a variable.

(You can actually perform the last two operations simply by clicking the block with no requirement to drag it into the center pane. Severaloperations that required double-clicking prior to v1.4 can now be accomplished with a single click.)

Questions & Answers

a perfect square v²+2v+_
Dearan Reply
kkk nice
Abdirahman Reply
algebra 2 Inequalities:If equation 2 = 0 it is an open set?
Kim Reply
or infinite solutions?
Embra Reply
if |A| not equal to 0 and order of A is n prove that adj (adj A = |A|
Nancy Reply
rolling four fair dice and getting an even number an all four dice
ramon Reply
Kristine 2*2*2=8
Bridget Reply
Differences Between Laspeyres and Paasche Indices
Emedobi Reply
No. 7x -4y is simplified from 4x + (3y + 3x) -7y
Mary Reply
is it 3×y ?
Joan Reply
J, combine like terms 7x-4y
Bridget Reply
im not good at math so would this help me
Rachael Reply
how did I we'll learn this
Noor Reply
f(x)= 2|x+5| find f(-6)
Prince Reply
f(n)= 2n + 1
Samantha Reply
Need to simplify the expresin. 3/7 (x+y)-1/7 (x-1)=
Crystal Reply
. After 3 months on a diet, Lisa had lost 12% of her original weight. She lost 21 pounds. What was Lisa's original weight?
Chris Reply
preparation of nanomaterial
Victor Reply
Yes, Nanotechnology has a very fast field of applications and their is always something new to do with it...
Himanshu Reply
can nanotechnology change the direction of the face of the world
Prasenjit Reply
At high concentrations (>0.01 M), the relation between absorptivity coefficient and absorbance is no longer linear. This is due to the electrostatic interactions between the quantum dots in close proximity. If the concentration of the solution is high, another effect that is seen is the scattering of light from the large number of quantum dots. This assumption only works at low concentrations of the analyte. Presence of stray light.
Ali Reply
the Beer law works very well for dilute solutions but fails for very high concentrations. why?
bamidele Reply
how did you get the value of 2000N.What calculations are needed to arrive at it
Smarajit Reply
Got questions? Join the online conversation and get instant answers!
QuizOver.com Reply

Get the best Algebra and trigonometry course in your pocket!

Source:  OpenStax, Teaching beginners to code. OpenStax CNX. May 27, 2013 Download for free at http://cnx.org/content/col11498/1.20
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Teaching beginners to code' conversation and receive update notifications?