In this book algorith ys and pioxres code are typed using the conser fot
11.03 Variables
thon wa aus cata fe
to beable le refer Loa spe
ewith he value s:orad there
imagine these variables the
stored in the bo» with the species name jidentiier} on i
() So
Voriabler2 storage lycal v1 ora dats vale thachee ar ‘cer ier
ine vidual val be stores nriemony,
‘ary loca oriso lhat ne 57 wr te state
srelorto beesenamed matory locat’os a5 varias
ame labels on them. Wher ave.ueisinpul, 1:18
many puesies have buen mada might
mightte stored in avaiable
saFable uses! (0 80°88 couniech
wurberofcuasees and the player's nar
le, th
ve Iden
Forex
begiven th
called antortayer, a show Fig
ts ee
Wo 1,05)
Numberofouesses:
Figure 11.03 Variables
Varableidertitiors should net contain spaces, 07)
ke alpoiiths caslerto uncerstane, the
chat:
2iskrown 25 CamelCans, fm:
sya,
thevariale’s use. his means af
tovmactng convertion usec h
ford Isused as an ident er, The
“san identifier easierto “ead,
11.04 Assignments
Assigninga value
he follew'ng prenelococe stares the veive
hatis ingut itor example 19) ina variable
sheicen:ifer nomex (sec F gure 104i, un
The folowing psoudecode storestie
vaue Lin tre vatlable with me icencifier
ex0fevenses (soe Figure 2L04iti
Munberofsuensse «1
NUT Sumter
Nunkerora
Wanisex
a (v)
Figure 11.04Variables being assigned a value