POSITION:028,114
COLOUR:STANDARD
TEXT:00,Here is a program example that works out the amount of tax paid and the
TEXT:16,total cost of a pair of jeans.
COLOUR:EUPHORIA
TEXT:32,atom jeans, tax, tax_paid, total_cost
TEXT:32,jeans = 22.00
TEXT:16,tax = .07
TEXT:16,tax_paid = jeans * tax 
TEXT:16,total_cost = jeans + tax_paid 
COLOUR:STANDARD
TEXT:32,Variable "jeans" represents the sale price of a pair of jeans, so we
TEXT:16,assign it a value of 22.00 (with decimal points to look like dollars).
TEXT:16,variable "tax" is then assigned a value of 7%, which is 0.07. Next,
TEXT:16,variable "tax_paid" is computed by multiplying the values of variables
TEXT:16,"jeans" and "tax" together. Finally, variable "total_cost" is
TEXT:16,assigned the sum of the values stored in "tax_paid" and "jeans".

