11.07.2015 Views

Here - 1000 BiT

Here - 1000 BiT

Here - 1000 BiT

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

THE MEMORYThe computer's memory is like a shelf of boxes. There is a spot on the front of each boxto write its name. At the start, all the boxes are empty and no box has a name.When you entered10REM HOUSEthe computer took the first empty box and wrote the name "Line 10" on the front. Then itput the command REM HOUSE into the box and put the box back onto the shelf.When you entered20 PRINTCOME ON OVER"the computer took the second box and wrote "Line 20" on its label. Then it put thestatement PRINT "COME ON OVER" into the box and put that box into its place on theshelf.lineiomumiERASING A LINE FROM MEMORYTo erase one line of the program, enter the line number with nothing after it.To erase line 20, enter 20You still see the line on the screen, but do a LIST and you see that line 20 is gone frommemory.When you enter just a line number with nothing after it, the computer finds the box withthat line number on it, empties the box and erases the name off the front of the box.How do you erase the whole program? (See Lesson 1 for the answer if you forgot.)What does the computer do to the boxes when you give it the command NEW?26

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!