| Liberty BASIC - Help Online |
Programming, What is it?
There's nothing mystical about programming computers. Although the newest software on the market today begins to look like magic, all software is built from the ground up out of combinations of the simplest software parts. Once you learn what these software parts are and how they're used, hard work and imagination can take you almost anywhere.
Programming is (simply put) the laying out of simple steps to solve a problem, and in a way that a computer can understand. This is a little bit like teaching a person. These steps must be arranged in the correct order.
For example:
How to drive a car with automatic transmission:
Get into drivers seat ;
Fasten safety belt ;
Insert ignition key and turn it to start engine ;
Press brake with foot ;
Move transmission selection to D ;
Look around to see if you're safe ;
Remove foot from brake ;
Press accelerator pedal with foot ;
Manuever into traffic ;
Don't crash
Obviously if the above steps are scrambled up (and maybe even if they aren't) you're in for a pretty big insurance claim. Not only that, but if the instructions are given to someone who speaks only, say, Chinese, we will have a similarly spectacular crash! In the same way, computers are particular about both the order and content of the instructions we give them.
A program in its simplest form usually contains three kinds of activity:
INPUTThe program asks the user for some kind of information ;
CALCULATION The program transforms or manipulates the information ;
OUTPUT The program displays the final result of CALCULATION
It is the programmer's job to determine exactly how to accomplish these steps.
Copyright (C) 2005 Shoptalk Systems
Liberty BASIC - http://www.libertybasic.com/