Skip to main content
guest
Join | Help | Sign In
Liberty BASIC Programmer's Encyc Home
guest| Join | Help | Sign In
Liberty BASIC Programmer's Encyc
  • Wiki Home
  • Recent Changes
  • Pages and Files
  • Members

Home

General Tutorials
Advanced Tutorials
GUI Programming
Graphics and Games
Strings and Text
Numbers and Math
Using Files
Windows API
Communications
Programmer's Tools

Articles by Date
FAQs
Rosetta Code
General Articles
Newsletters Contents

Table of Contents
Demos

Submit Articles
TOS and License

0301

Edit 1 …
  • 1 Tags
    • tutorials
  • Notify
  • RSS
  • Backlinks
  • Source
  • Print
  • Export (PDF)
Older Version Newer Version

Alyce Alyce Nov 4, 2006

Lesson Map | Next > Ask for Input

Passing Notes

A program is a conversation, with the computer handling the questions and answers. The computer sits between you and the user. You make the computer say (print, show) something, and the computer user responds by typing on the keyboard or moving a mouse or other pointer. Then you take a look at the user's reply, and decide what to do next.

Since you don't know in advance what the user is going to reply, you have to be prepared to accept almost any kind of answer. It's like a conversation by passing notes -- put a question in an envelope for the user, pass it along, get an answer in an envelope when it comes back.

Programs use containers somewhat like envelopes for holding and juggling information. The holding containers are called variables , because their contents are variable -- you can change the note in the envelope whenever it suits your purpose, and re-use the same envelope to pass the new information along.

Variables have identifying names (like the name on an envelope), and rules about what kinds of information they can hold. Some variables are for text only, and some are just for numbers.

The best way to understand how to use variables is actually to use them. It's time to start programming!

Lesson Map | Next > Ask for Input
Help · About · Pricing · Privacy · Terms · Support · Upgrade
Contributions to https://lbpe.wikispaces.com/ are licensed under a Custom License.
Portions not contributed by visitors are Copyright 2018 Tangient LLC
TES: The largest network of teachers in the world
Turn off "Getting Started"
  1. Home
  2. ...
Loading...