BASIC2.WPS

BASIC LANGUAGE PROGRAMMING

USING THE PRINT STATEMENT

Using program mode, have the computer run the following programs. These programs are designed to investigate various variations of the PRINT statement. To the right of the program write in the results displayed on the screen after you run the program. Type in each program and then press F5

and note the results on the screen and write them down on

the sheet.

PROGRAM #1 (PRINT OR ? COMMAND) RESULTS

CLS

PRINT "THIS IS A TEST"

? "OF MY PROGRAM"

PRINT" AND HOW IT IS DONE"

END

 

PROGRAM #2 (NO SPECIAL FORMATTING) RESULTS

CLS

?"NOW IS THE TIM"

?"E FOR ALL GOO"

?"D PEOPLE TO C"

?"OME TO THE AID OF THEIR COUNTY."

END

 

PROGRAM #3 (WITH SEMI-COLONS) RESULTS

CLS

?"NOW IS THE TIM";

?"E FOR ALL GOO";

?"D PEOPLE TO C";

?"OME TO THE AID OF THEIR COUNTY."

END

 

PROGRAM #4 (WITH COMAS) RESULTS

CLS

?"NOW IS THE TIM",

?"E FOR ALL GOO",

?"D PEOPLE TO C",

?"OME TO THE AID OF THEIR COUNTY."

END

Copyright - Barry Boyle (bboyle@kawartha.net)