← An Apple for Kids

An Apple for Kids

From the originals

18 scans

Machine-transcribed text and image descriptions. Check the linked original for uncertain words or fine print.

These are transcribed pages from the documents, not the full publications. Open the original for the remaining pages.

PDF page 12

Monitor Keyboard It may not be the usual kind of apple that sits on the teacher 's desk, but it's an apple nevertheless. It's not a type of fruit, and it wouldn't taste very good if you tried to eat it! What kind of an apple is it? Our apple is a microcomputer made by Apple Computer, Inc. We will begin to see more Apple microcomputers in the classroom in the future! What is a microcomputer? Simply stated, it's a small, portable computer that anyone can learn to use . Microcomputers can teach you lessons in school, help you with hard assignments, or even be your partner in playing a game. What's even more important is that you can learn to control a microcomputer and make it do whatever you want! M icrocomputers are a fun and valuable tool to have in a classroom. Our Apple microcomputer has four basic parts : 1. keyboard (punch keys with letters, numbers, and signs) 2. T. V. screen (We will also call it a monitor.) 3. disk drive 4. brain (The Apple ' s insides , including its memory.) Let's learn about the parts of the Apple so w e can use it in our work and play! Inside the keyboard is the brain. This is what part of the Apple's brain looks like- a flat metal board with many electrical circuits and little bug-like things called chips . Some chips are used for memory so the Apple can re- member what y ou tell it. 4

Reading notes: Possible OCR spacing irregularities in words such as 'remember' and 'brain' and in headline 'Monitor'.

Printed product names
Apple · Apple Computer, Inc. · Apple microcomputer
Languages
English
PDF page 201

(CHAPTER 49) Motion Pictures

(CHAPTER 49) Motion Pictures You can have lots of tun writing programs that move graphics across the screen. An easy way to do this is to use strings and add them together. Run the program below to see how this works: 10 REM A MOVING STAR 20HOME 30 LET BS = \\ II : LET SS = \\ * II 40VTAB 12 50FORL=1TO39 60 HTABL 70 FOR TL= 1TO100: NEXTTL 80 ?BS+SS1 90NEXTL lOOEND A blank space is stored in BS, and the * is stored in SS. The VTAB 12 statement makes the star move across the screen at row 12. The FOR-NEXT loop does many things. The value of L increases from 1 to 39. The HTAB L statement makes the * move from column 1 to column 39 across the screen . The FOR-NEXT time loop slows down the movement. The trick to the movement is in line 80. In order to make a graphic move, it must be erased after it is printed, and then printed again in the next column. This can be done by adding the two strings together. BS +SS means that BS and then SS will be printed in that order each time the loop is done. This is what moves the * (in SS) across the screen. The example below shows how the movement is created. * ~* l:?S* ~* ~* l:?S* The lzS is the blank that erases the star as it moves along. 193

Reading notes: OCR garbles some BASIC code characters (e.g., 'BS = \\ II', 'SS1', 'lOOEND', 'VTAB 12' spacing), so program lines may be inaccurate. Example diagram text ('l:?S*', '~*') is damaged and its reading order is uncertain.

Languages
English
PDF page 202

You can make a word move across the screen by changing the contents of SS. Make the follow- ing change and run the program again . 30 LET BS= "16" : LET SS= " MO\fII\J' ON" You can change how fast the graphic moves by changing the FOR-NEXT time loop. The following program makes the word HI move down the screen from the top to the bottom . 10 REM FALLING 20HOME 30 LET BS= "1616": LET MS= "HI" 40FORL= 1TO24 50 ? BS 60 HTAB 10 70 VTABL 80 ?MS ; 90 HTAB 10 100 FOR TL= 1TO100: NEXT TL l lONEXTL 120END The contents of BS must have two blank spaces because the word HI in M S is made of two letters . You can also make moving pictures in lo res graphics . Instead of using a string variable that contains a blank space, you will use the com- mand COLOR = 0 to make the screen black and erase the graphic . The following program makes a ball roll down a set of stairs . Run it on the Apple. 194

Reading notes: Line 30 contains garbled characters ('MO\fII\J'ON') that are uncertain Line 110 and 120 numbering may be OCR artifacts ('l lONEXTL') Page number '194' at end is uncertain

Languages
English
PDF page 203

Flowchart c START ) J. GR I J. REM Draw stairs I J. Select stair color I J. FORS=1 T039 I J. HLIN 1,SATS I J. NEXTS I J. REM Rolling ball Draw ball J. FORB=OT038 1 I I I I I 1 Select ball color J. PLOTB+1, B J. ~ 0 J. No REM Erase ball on higher stair J. Color=O (black) J. PLOTB+1, B-1 J. FOR-NEXT time loo J. Does B=38 J. No Set ball color PLOTB+2, B REM Erase ball on higher stair I I Color=O (black) _I J. LI _ P_ LO_T_B_+,1, _B__ I J. Yes Yes L__ ________ I NEXTB I L. ---- J.:------ ( _____ ST _O _ P _~) +-------' 195

Reading notes: Flowchart text is fragmented; reading order of branches around the ball-drawing loop is uncertain. Some connector and arrow characters are damaged or unclear.

Languages
English
PDF page 204

Program 10 REM BALL ROLLING DOWN STAIRS 20GR 30 REM DRAW STAIRS 40COLOR=6 50FORS= 1TO39 60 HLIN l,SAT S 70NEXTS 80 REM ROLLING BALL 90 REM DRAW BALL 100 FOR B=O TO 38 110 COLOR= 1 120 PLOT B+ l, B 130 IF B=O THEN 170 140 REM ERASE BALL ON HIGHER STAIR 150 COLOR=O 160 PLOT B+ l, B- 1 170 FOR TL= 1TO150: NEXT TL 180 IF B= 38 THEN 250 190 REM REDRAW BALL 200 COLOR= 1 210 PLOTB+2, B 220 REM ERASE BALL ON HIGHER STAIR 230 COLOR=O 240 PLOTB+ l, B 250NEXTB 260END 196

Reading notes: Line-numbered BASIC program listing with irregular spacing and OCR-like splits such as 'DOWN' and 'STAIRS' on separate lines; reading order may be imperfect. Possible OCR confusion between letter O and digit 0 (e.g., 'O' in 'FOR B=O TO 38' and 'COLOR=O').

Languages
English
PDF page 205

To make moving graphics in direct mode: Use string variables. One string variable must contain a blank space(s). To make moving graphics in lo res graphics mode: Use the color commands. COLOR= O erases a graphic. to do: Programmer's Pastime #84 197

Reading notes: Possible OCR spacing irregularities in 'Use string variables' and 'COLOR= O' (zero vs. letter O uncertain)

Languages
English