POSITION:028,114
COLOUR:STANDARD
TEXT:00,You can also use arithmetic, relational, and logical expressions to
TEXT:16,assign values to sequence variables, using the same operators introduced
TEXT:16,in the previous chapters on atom variable value assignment. This program
TEXT:16,example below works out a rent increase for five different apartments:
COLOUR:EUPHORIA
TEXT:32,sequence old_rents, new_rents
TEXT:16,atom rent_increase
TEXT:32,old_rents = {413,500,435,619,372}
TEXT:16,rent_increase = 1.05
TEXT:16,new_rents = old_rents * rent_increase
COLOUR:STANDARD
TEXT:32,Variable "old_rents" is given a 5-element sequence value that is the
TEXT:16,old rent amounts for five apartments. "rent_increase" is assigned the
TEXT:16,percentage to raise the rents by. "new_rents" is the new rents of the
TEXT:16,five apartments.

