Here - 1000 BiT
Here - 1000 BiT Here - 1000 BiT
LESSON 15SOME SHORTCUTSA PRINT SHORTCUTInstead of typing PRINT, just type a question mark.Enter10? "HI"LISTThe computer substitutes the word PRINT for the question mark.A LET SHORTCUTThese two lines do the same thing:10LETA=41and10A=41also these two: 20 LET B$="HI" and 20 B$="HI"You can leave out the word LET from the LET statement! The computer knows that youmean LET whenever the line starts with a variable name followed by an "=" sign.88
AN INPUT SHORTCUTInstead of10 PRINT "ENTER YOUR NAME"20 INPUT N$You can do 10 INPUT "ENTER YOUR NAME"; N$Put a semicolon between the message "ENTER YOUR NAME" and the variables.ANOTHER INPUT SHORTCUTYou can INPUT several things in one command. Put commas between the variables.Run20 INPUT "LOCATION"; X,YYou see LOCATION? on the screen.You enter two numbers with a comma between them.LOCATION? 5,6Another example30 INPUT "MONTH, DAY, YEAR";M$,D,YAfter the "?" typeAPRIL.29,1983ERROR MESSAGE ININPUTIf you do not enter enough answers, the computer asks "It". Then you should enter therest.Example:30 INPUT "MONTH, DAY, YEAR";M$,D,Y? MAY, 1?? 1984If you enter too many answers, the computer replies?EXTRA IGNOREDand goes on with the program.Example:55 INPUT'SLEEPY? ";A$? NO.FINE?EXTRA IGNORED89
- Page 39 and 40: RULE: The semicolon makes the invis
- Page 41 and 42: Assignment 5:1- Write a program whi
- Page 43 and 44: LESSON 6THE INPUT COMMANDUse INPUT
- Page 45 and 46: YOU WEAR TWO HATS, USER AND PROGRAM
- Page 47 and 48: LESSON 7THE LET COMMAND, GLUING STR
- Page 49 and 50: GLUING THE STRINGSHere is how to st
- Page 51 and 52: LESSON 8THE GOTO COMMAND AND THE ST
- Page 53 and 54: A CAN OF SPAGHETTILook at this: 10
- Page 55 and 56: Assignment 8:1. Just for practice i
- Page 57 and 58: LESSON 9 THE IF COMMANDClear the me
- Page 59 and 60: JtTHE "NOT EQUAL" SIGNTwo signs:= m
- Page 61 and 62: INSTRUCTOR NOTES 10 INTRODUCING NUM
- Page 63 and 64: The thing which is put into the box
- Page 65 and 66: MIXTURES IN PRINTYou can print numb
- Page 67 and 68: INSTRUCTOR NOTES 11TAB AND DELAY LO
- Page 69 and 70: HOW BIG A SPACE CAN TAB( ) MAKE?The
- Page 71 and 72: INSTRUCTOR NOTES 12 THE IF COMMAND
- Page 73 and 74: AN IF INSIDE AN IFThe "teenager" pr
- Page 75 and 76: 2. Here is another program. What wi
- Page 77 and 78: LESSON 13RANDOM NUMBERS AND THE INT
- Page 79 and 80: ROUNDING OFF NUMBERSPerhaps you kno
- Page 81 and 82: INSTRUCTOR NOTES 14SAVING TO TAPEWe
- Page 83 and 84: The computer automatically turned o
- Page 85 and 86: nnr^nnnnnr^nnLOADING A PROGRAM FROM
- Page 87 and 88: 5. We are ready to put in the next
- Page 89: n INSTRUCTOR NOTES 15 SOME SHORTCUT
- Page 93 and 94: WHEN TO USE THE COLON SHORTCUTUse t
- Page 95 and 96: But if we write this line in a prog
- Page 97 and 98: LESSON 16 MOVING PICTURESMOVING THE
- Page 99 and 100: Line 40 waits for you to see this b
- Page 101 and 102: LESSON 17FOR-NEXT LOOPSRemember the
- Page 103 and 104: LOOP VARIABLESTo make sure that eac
- Page 105 and 106: ^ INSTRUCTOR NOTES 18 DATA, READ, R
- Page 107 and 108: STRANGE RULES1. It doesn't matter w
- Page 109 and 110: MIXTURES OF DATAThe DATA statement
- Page 111 and 112: LESSON 19SOUND EFFECTSTurn up the s
- Page 113 and 114: TONES BY THE BUSHELEnter: 10 REM **
- Page 115 and 116: "TM" stands for "timbre." Timbre is
- Page 117 and 118: INSTRUCTOR NOTES 20NAMES, CLOCKS AN
- Page 119 and 120: cAnytimeyou type, the characters ar
- Page 121 and 122: LESSON 21COLOR GRAPHICSADJUST YOUR
- Page 123 and 124: Add these lines to the above progra
- Page 125 and 126: INSTRUCTOR NOTES 22POKEing GRAPHICS
- Page 127 and 128: Try this: Change the number 83 to a
- Page 129 and 130: We can number the streets and house
- Page 131 and 132: n INSTRUCTOR NOTES 23 SECRET WRITIN
- Page 133 and 134: THE COMPUTER ISIMPATIENTThe compute
- Page 135 and 136: ^ INSTRUCTOR NOTES 24 PRETTY PROGRA
- Page 137 and 138: Assignment 24A:1. The delay loop is
- Page 139 and 140: Assignment 24B:1. Write a short pro
AN INPUT SHORTCUTInstead of10 PRINT "ENTER YOUR NAME"20 INPUT N$You can do 10 INPUT "ENTER YOUR NAME"; N$Put a semicolon between the message "ENTER YOUR NAME" and the variables.ANOTHER INPUT SHORTCUTYou can INPUT several things in one command. Put commas between the variables.Run20 INPUT "LOCATION"; X,YYou see LOCATION? on the screen.You enter two numbers with a comma between them.LOCATION? 5,6Another example30 INPUT "MONTH, DAY, YEAR";M$,D,YAfter the "?" typeAPRIL.29,1983ERROR MESSAGE ININPUTIf you do not enter enough answers, the computer asks "It". Then you should enter therest.Example:30 INPUT "MONTH, DAY, YEAR";M$,D,Y? MAY, 1?? 1984If you enter too many answers, the computer replies?EXTRA IGNOREDand goes on with the program.Example:55 INPUT'SLEEPY? ";A$? NO.FINE?EXTRA IGNORED89