Dedication
To a bossom friend
Late EmmanuelOmoniyi Dada (Amuri)
(Titcombe College No. 1458)
Practical
Computing
with QBASIC
. ,,.
f ,.
C. K. Ayo
PhD, MCOA, MCPN, MCP, CCNA
Head of Department
Computer Science and Information Technology
Lagos State University, Anthony Village Campus
II
Concept Publications limited
Concept Technology Series
Concept Publications Limited
P. 0 . Box 2516
Mushin, Lagos
Nigeria.
e-mail: deleconcept@yahoo.co.uk
1. Computer Software 9
Introduction; Categories. of Software; Software;
System; Application and User software,
Software suites; Software generations,
Language translators; Review Questions.
4. Basic Programming 57
Overview; Variable names; Data names;
Constants I Literals; Basic standard functions;
v
vi Practical Computing with OBASIC
5.
variables, Program implementation;
Programming examples.
Graphics and String Processing 91
'I
IS ll(
diffE
Introduction; Graphical representations;
String processing (ASCII, C:Effi~ STR, MID, RIGHT etc); The
User defined functions. the
ever
con
6. Subroutines and File Processing 103 enh
Subroutines; GO SUB, ON -GOSUB, SELECT has
CASE DO-LOOP; Further Looping Statements; con I
Dr.
Unl
Jul
T
Foreword
T
ted HERE is no doubt that quite a number of books and
materials have been published on BASIC Programming.
However, this book, Practical Computing With QBASIC
is not just a book on BASIC programming. It is refreshingly
91 different in a number of ways.
vii
· Preface
T
HIS book is a product of over nineteen years of research
and teaching in the tertiary institutions. My
interactions with students made it expedient to address
a fundamental problem in the field of programming, mostly
among management and social science students.
Nonetheless, it would help the computer science students
lay solid foundation in programming.
The book addresses programming aids and techniques,
general BASIC programming, graphics and string
processing, functions and subroutine as well as file
processing. It is tailored towards the course "BASIC
Programming" in tertiary institutions. The book is designed
to enable students solve social, scientific and commercial
problems. It is therefore recommended for all students. 1.]
C. K. Ayo
1
CI
reJ
su
an
1.~
Tr
viii ,
Index
139
140 Practical Computing with QBASIC
surface, 29, 30
ICONS, 12 tape,28, 29 35, 46
!riph- Index Sequential Access Method Main memory (RAM), 10, 111
23, 25, (ISAM), 25 Maintenance (ammendment),
Initialization, 69 22
1 In-place update, 21 Master file, 21, 22, 25
Input/Output devices, 10, 25, 112 Memory Space, 14, 15
75, 76, specifications, 40 Menu Bar, 73, 74
statements, 63, 119 Design, 105
tart statement,63,66,77, 113,119 Microfiche, 32, 33
INPUT/READ statements, 66 Microfilm, 31, 33,
Integers, 69, 109 Microsoft Office, 13
Interpreter, 16, 17,63, 72 products, 12
Inter Record Gap (IRG), 29 MID$ (middle function), 100
Interrogation, 20 Modular programming, 52, 53,
Inventory System, 14 54,56
tSystem Inverted file, 26 Monitor, 9, 91
Mouse,9
K eyboard,9,63 Multiple-branching logic, 107
104, Keywords, 59
Non-Numeric literals, 60
L anguage Translators, 10 Novel/Corel Perfect Office, 13
Laser beam, 29 Numeric Data Check, 39, 65
,69,124 Left Function, 99 Names, 59
LEN (Length function), 100, 101 Literals, 60
LET Statement, 62
[), 12 Library catalogues, 30
ocess- Object code, 17
Line statement , 93 program, 17
9, 101 Logical records , 111 Offline Storage, 46
Loop UNTIL, 110, 111 Optical Character Reader
WHILE, 110, 111 (OCR), 35
Looping statements, 109 Mark Reader (OMR), 35
.re, 13 Loops, 45, 70, 110 Output device, 11, 94, 97
Lotus Smart Suite, 13 statement, 65
LSET and RSET statements, 120 Overlay, 21
essing
:IIPO), M achine code, 16
1?apertape,27,46
language, 14
~hart, PASCAL, 15
Magnetic disk, 25, 26, 30, 35, 46
Personal diary software, 13
Ink Character Recognition
Photoelectric device, 27, 28
(MICR), 32, 34
142 Practical Computing with QBASIC
10
~thod (SAM),
35, 111
111
14
IllS,
3, 11
. 15
47
96
.$), 99
nming, 50,
~'53, 54,56
3, 20, 22
·~n Technology
-=--iiii
1i1111DS AIID APPIJICATIONS .
.....,·;.,·'!· r.
~Pwblk*ln~