QBasic

This document was uploaded by one of our users. The uploader already confirmed that they had the permission to publish it. If you are author/publisher or own the copyright of this documents, please report to us by using this DMCA report form.

Simply click on the Download Book button.

Yes, Book downloads on Ebookily are 100% Free.

Sometimes the book is free on Amazon As well, so go ahead and hit "Search on Amazon"

This easy-to-understand introduction to QuickBASIC provides complete examples and step-by-step explanations. This edition has been thoroughly updated with greater emphasis on motivation for concepts as they are introduced. Programming problems vary in level of difficulty, more high level problems have been added. The end-of-chapter program examples integrate topics from previous chapters.

Author(s): Susan K. Baumann, Steven L. Mandell
Edition: 2 ed.
Publisher: South-Western Pub
Year: 1997

Language: English
Commentary: some pages are blurry
Pages: 526

Cover
Title
Contents-in-Brief
Contents
Preface
1 Introduction to Computer Systems and QBasic
Introduction
What Computers Can Do
The Components of a Computer System
The System Unit
Peripheral Devices
The Categories of Computer Systems
Supercomputers
Mainframes
Minicomputers
Microcomputers
Getting Started
The Disk Operating System
Using QBasic
The Opening Screen
The Menu Bar
The Title Bar
The Reference Bar
The Immediate Window
The File Menu
The View Menu
The Run Menu
Entering and Editing Programs
A Practice Program
Being a Responsible Computer User
Using Hardware Properly
Ethical Software Use
Controlling System Access
Summary Points
Key Terms
Review Questions
2 Introduction to Structured Programming and Problem Solving
Introduction
Programming Languages
Machine Language
Assembly Language
High-Level Languages
Structured Programming
Using Modules
The Three Basic Control Structures
Structured Programming Languages
The Programming Process
Defining and Documenting the Problem
Designing and Documenting a Solution
Writing and Documenting a Program
Debugging and Testing a Program
Summary Points
Key Terms
Review Questions
3 Fundamental Statements
Introduction
QBasic Statement Components
Constants
Variables
Keywords
Simple QBasic Statements
Assigning Values to Variables
Arithmetic Operations
Displaying Results
The END Statement
The Immediate Window
Getting Help
Mastering Program Development
Problem Definition
Solution Design
The Program
Programming Hints
Summary Points
Key Terms
Review Questions
4 Input and Output
Introduction
Storing Data in Variables
Entering Data During Execution
Displaying Prompts for the User
Formatting Results
Semicolon
Print Zones
TAB Function
SPC Function
LOCATE Statement
More Tips on Formatting Output
Sending Output to the Printer
The PRINT USING Statement
Placing Multiple Statements on a Single
The Edit Menu
Selecting a Program Segment
Cut
Copy
Paste
Clear
Mastering Program Development
Problem Definition
Solution Design
The Program
Programming Hints
Summary Points
Key Terms
Review Questions
Debugging Exercises
Programming Problems
Level 1
Level 2
Challenge Problems
5 Introduction to Control Structures
Introduction
The Block IF Statement
Relational Operators
The Double-Alternative Decision
The ELSEIF Clause
Nesting Statements
Indenting Control Structures
The SELECT CASE Statement
Menus
Logical Operators
Mastering Program Development
Problem Definition
Solution Design
The Program
Programming Hints
Summary Points
Key Terms
Review Questions
Debugging Exercises
Programming Problems
Level 1
Level 2
Challenge Problems
6 Modularizing Programs
Introduction
An Example of a Simple SUB Procedure
Typing Procedures
Passing Arguments to SUB Procedures
Local Variables
Using Structure Charts to Modularize
Pass by Reference Versus Pass by Value
Advantages of Using Procedures
Using Stubs to Implement Programs
Mastering Program Development
Solution Design
The Program
Programming Hints
Summary Points
Key Terms
Review Questions
Debugging Exercises
Programming Problems
Level 1
Level 2
Challenge Problems
7 Loop Structures
Introduction
Advantages of Loops
The DO...LOOP
The DO WHILE...LOOP
Controlling Loops
The DO UNTIL...LOOP
The EXIT Statement
The FOR...NEXT Loop
Rules for Using FOR...NEXT Loops
Nested Loops
Comparing Loop Structures
Mastering Program Development
Problem Definition
Solution Design
The Program
Programming Hints
Summary Points
Key Terms
Review Questions
Debugging Exercises
Programming Problems
Level 1
Level 2
Challenge Problems
8 Functions and Debugging and Testing
Introduction
Standard Functions
Numeric Functions
String Functions
FUNCTION Procedures
Writing User-Friendly Programs
Debugging and Testing
The Integrated Debugger
Testing Methods
More on Documentation
Mastering Program Development
Problem Definition
Solution Design
The Program
Programming Hints
Summary Points
Key Terms
Review Questions
Debugging Exercises
Programming Problems
Level 1
Level 2
Challenge Problems
9 Arrays and Searching and Sorting
Introduction
Subscripts
Dimensioning an Array
One-Dimensional Arrays
Storing Data in an Array
Printing the Contents of an Array
Performing Calculations on Array
Two-Dimensional Arrays
Storing Data in and Printing Two-Dimensional Arrays
Adding Rows
Adding Columns
Sorting an Array
Bubble Sort
Shell Sort
Searching
Sequential Search
Binary Search
Mastering Program Development
Problem Definition
Solution Design
The Program
Programming Hints
Summary Points
Key Terms
Review Questions
Debugging Exercises
Programming Problems
Level 1
Level 2
Challenge Problems
10 Records and Files
Introduction
Data Types
Records
Defining a Record
Storing Data in a Record
Arrays of Records
Files
Secondary Storage
File Access Methods
Using Sequential Files
File Position Pointers
Creating and Accessing a Sequential File
Closing a File
Writing to a Sequential File
Appending Records to a Sequential File
Reading from a Sequential File
Creating a Summary Report
Using Random-Access Files
Creating a Random-Access File
Storing Records in a Random-Access File
Reading Records in a Random-Access File
Comparison of Random-Access and Sequential Files
Mastering Program Development
Problem Definition
Solution Design
The Program
Programming Hints
Summary Points
Key Terms
Review Questions
Debugging Exercises
Programming Problems
Level 1
Level 2
Challenge Problems
11 Graphics and Sound
Introduction
Graphics
Text Mode
Graphics Modes
Mixing Text and Graphics
Graphics Commands
The LOCATE Statement
The PRESET and PSET Statements
The LINE Statement
The CIRCLE Statement
The DRAW Statement
Using Loops in Graphics
Color Graphics
Filling Objects with Color
Sound
The BEEP Statement
The SOUND Statement
The PLAY Statement
Mastering Program Development
Problem Definition
Solution Design
The Program
Programming Hints
Summary Points
Key Terms
Review Questions
Debugging Exercises
Programming Problems
Level 1
Level 2
Challenge Problems
Appendix A Keywords for QBasic
Appendix B QBasic Operators
Appendix C ASCII Codes Table
Appendix D Microsoft QuickBASIC Version 4.5
Appendix E Answers to Learning Check Exercises
Glossary
Index
QBasic Reference Card