BASIC5.WPS
BASIC LANGUAGE PROGRAMMING
WRITING AND RUNNING A SIMPLE PROGRAM IN BASIC
STEPS
1) Launch Q BASIC from menu.
2) When welcome message appears press the escape key to
clear the window.
3) Type the program into the blue screen. **note computer
checks syntax for you and alerts you immediately in cases
of syntax errors.
4) Visually check your program over to make certain that the
commands you wish to have in the program are actually
there.
5) Save a copy of the program.
6) To run the program press the F5 key.
Assignment:
1) Enter the program below into the computer and run it.
Hand in a printout of the program itself. Save the
program as bas5.bas
CLS
LET VALUE = 0
FOR COUNT= 1 TO 40
REM REMARKS STATEMENTS ARE USED TO DESCRIBE WHAT A PROGRAM
REM OR PART OF A PROGRAM DO. THEY DO NOT ACTUALLY AFFECT
REM THE OPERATION OF THE PROGRAM
PRINT "This is the Basic5.wps Assignment"
LET VALUE = VALUE + 5
PRINT VALUE,VALUE,VALUE
NEXT COUNT
END
2) You can get the computer to print the results of the
calculations directly to the printer by substituting
the LPRINT command for the PRINT COMMAND. Change the
print commands in the program to LPRINT commands and
print out and hand in this printout stapled to the copy of the program.
Copyright - Barry Boyle (bboyle@kawartha.net)