Revisions: 09/25/04, 08/17/06 -- format changes

CHAPTER 1 — Small Programs

In this chapter you will learn to write small programs in the computer programming language called QBasic. These small programs won't do very much. But in following chapters you will write programs that do much more.

Chapter Goals

The small programs in this chapter perform calculations similar to the arithmetic done with a electronic calculator. QBasic does much more than that. But in this chapter, pretend that QBasic is a calculator that uses a keyboard for input. Instead of punching buttons on a calculator, you will write a program.


With a calculator does it matter in which order you push the buttons?