Home
  Contact
  Short Vita
  Research
  Teaching
  LSDIS Lab
  Links

UGAVAC Examples

All students

Example 1-a illustrates the translation of the sample1.p program from the Micro-Pascal handout.

Example 1-b illustrates the translation of the modified sample1.p program from the Micro-Pascal handout. The modification introduces two real variables. The expressions involve operands of mixed types.

Example 2 illustrates the translation of the sample2.p program from the Micro-Pascal handout.

Example 3 contains a simple recursive calculation of the factorial function.

Graduate students only

Example 4 includes a simple sorting program, illustrating the use of arrays and their translation.

Example 5 includes a simple array program.

Example 6 includes a simple recursive factorial using a function.

Example 7 includes a simple addition of complex numbers (uses records).