' This exercise explains what a variable is and how to ' store a number in a variable. It also shows you how to see ' what is stored in a variable. ' A variable is a place in the computer's memory that is given ' a name in a BASIC program. You may put data into the variable ' using the LET instruction. (e.g. LET x = 5 will put 5 into x) ' This program stores a series of values in a variable called JIM. ' It prints out the contents of the variable each time it is changed. '1. How many different things will this print out? How many diferent ' numbers will it print out? Run the program and see. '2. Add 2 instructions at the end of the program to store 100 in the ' variable JIM and then to print out the contents of that variable. '3. Run it and check that the last thing it prints out is 100. '4. If the program worked, make a note of the two instructions. PRINT "Program starting" LET jim = 5 PRINT jim LET jim = 2.7 PRINT jim LET jim = -600 PRINT jim LET jim = .0000015 PRINT jim PRINT "program finishing"