vComputers must be
told what value to assign to variables, using an assignment statement such
as
o averageOverClass = 21.14
o
mayor = “Paul Schell”
vThe general form of
an assignment statement is
o<variable name>
<assignment symbol> <expression>
oLanguages use
different assignment symbols: = := ¬
oRead assignment as “is assigned”, or “becomes”
or “gets”
oAll three components
must always be present
vFundamental property
of assignment
oThe “flow” of information is always right-to-left
odestination
= source
ochangedVariable
= value