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.

HOW BIG A SPACE CAN TAB( ) MAKE?There are 40 spaces across the screen. You can use any number 0 through 39 inside theTAB( ) parentheses. Larger numbers make the computer skip lines. Numbers largerthan 255 will give an error message when the program runs:ILLEGAL QUANTITY ERROR INXX.where XX is the line number.You can use TAB with strings too.Example:10 PRINT F$;TAB(10);M$;TAB(15];L$<strong>Here</strong> F$, M$ and L$ are the strings for the first, middle and last names.FUNCTIONS DON'T FIGHT BUT THEY HAVE ARGUMENTSTAB( ) is a command which is like a "function." We will study other functions likeRND( ), INT( ), LEFT$( ), etc. The number inside the ( ) is called "the argument of thefunction." TAB( ) says "move the cursor over" and the argument tells "where tomove it to."Assignment 11 A:1. Write a program which asks for last names and nicknames. Then print the nicknamestarting at column 3 and the last name at column 15. Use a GOTO so the program isready for another name-nickname pair.2. Write an "insult" program. It asks your name. Then it peeps, and writes your name.Then it TABS over in the line and prints an insult.67

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

Saved successfully!

Ooh no, something went wrong!