Sequential instructions
Sequential simply means that the program follows instructions, one after another, from the first instruction at the top to the last instruction at the bottom.
Every program organizes most of its instructions sequentially, but few programs organize all of their instructions sequentially. The reason is that if a program organizes all of its instructions sequentially, the program can run through its instructions exactly once before it stops.
Such a program might be handy for creating simple programs that print I am a useless program on-screen, but such programs ignore any data they might receive from the user. No matter how many times you press a key or click the mouse, running the following two-line Liberty BASIC program always displays I am a useless program on-screen followed by Because this is all I can do.
PRINT “I am a useless program”
PRINT “Because this is all I can do”
You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Leave a Reply