Writing a Program
| HOME |
A program consists of a collection of interactive command that you usually type them at the prompt. However, some commands can be only used in the program, for example if, for, while, etc., while other are acceptable both in program and at the prompt, e.g. set, list etc. Please consult the Command section for individual details of each command.
The following is a guide line for writing a Noobeed program.
How to create and run a program
Any text editor can be used to write a Noobeed program, for example "Notepad", "Wordpad".
also note that all the Noobeed command are not case sensitive.
However commands in this demonstration are often shown in capital
a program is created, it must be saved in the hard disk of the computer.
Suppose that a program is stored in the directory “c:\prg” as a name
of “test1.prg”. To run
“test1.prg”, simply type
can omit the file name extention “prg” as it is the default extention of
for some reasons, Noobeed does not find the program, it will say
set the program path by typing
typing the command set pathprg alone, with no parameter, it will print out the
current program path.
the program is loaded successfully, type
My first Noobeed program
program “hello world” would be too easy to demonstrate here.
Rather we are going to write a simple program to solve the following
numbers from 10 to 90, we want to calculate a summation of either sine or cosine
function of these numbers, according to the following condition. If the
number is odd, we want its sine function and if the number is even, we want the
is the program