This ebook course will introduce you to basic principles for a readily available programming language. named QBasic
CHAPTER ONE THE BASICS OF PROGRAMMING.
The Basics of Programming
Why use QBasic?
Definition of a Program
Four QBasic statements
Exercises
CHAPTER TWO PROGRAM FLOW AND LOGIC.
Statement Labels
Exercise
Cash Register Program – demonstrates Logic Flow
QBasic Logic Flow
Program Flow and Logic
CHAPTER THREE PROGRAM BLUEPRINTS AND DATA.
The Nature of Programming
Four Secrets of Good Programming
The Program Blueprint
Data Names and Data Types.
CHAPTER FOUR SPECIAL EXERCISES.
Calculate the Area of a Rectangle
Calculate the Volume of a Cube
Convert kilograms to pounds, and pounds to kilograms
Convert NZ Dollars into Foreign Currency values
Convert fractions to percentages
Special Exercise – “Chook Pooh Payroll”
CHAPTER FIVE PROGRAM ORGANISATION.
Program Organisation
QBasic Routines
Control of Routines
Procedures
Exercises
CHAPTER SIX COLOURS AND SOUNDS.
Colour and Sound
Colour Testing Program
Sounds and Musical Notes
The GOTO statement
IF Statements
CHAPTER SEVEN HANDLING COMPLAINTS.
Flashing Colour
Exercise – The song “John B”
Exercise – The song “Ring of Fire”
Exercise – Payroll Program
Practical Project / Assignment