Introduction to demonstrations of TINY14E

Follow the links at the bottom of this page to demonstrations, which you should find useful for learning the syntax of the TINY language. See first a program with several procedures that demonstrate, for example the effectiveness of parameter passing, local variables and recursion. We then demonstrate Pascal's triangle by two methods. Finally, try Mitchell's ChristmasProg, which required minor changes in its conversion from Pascal to TINY.

You will notice that there are no functions in TINY and that the procedures pass parameters by value and not by reference. (TINY14E requires little change to make it pass by reference instead of by value). Although the procedures cannot "return" a value they can change global variables. We use the identifier "Result" for the global variable when we make a procedure serve as a poor man's function in this way. There are no arrays either, but you can simulate them crudely by using suitable variable names, say, A1 .. A5 for individual elements and then write your own procedures for initialisation, output, maximum value etc.

You can use TINY to explore integers and you may like to look at polygonal numbers such as pentagonal numbers. Contributions of TINY programs exploring the mathematics of integers would be appreciated.

Here is a screenshot of a sample program.

Compound interest

Compound interest

Programming - a skill for life!

by PPS in association with Jack Crenshaw