Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ examples.bsd(3) — DOMAIN Ada 1.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

examples(3)

NAME

examples − library of sample programs

DESCRIPTION

examples is a library containing sample programs to illustrate Ada language use and demonstrate the capabilities of the language, including those provided by the packages in the standard, verdixlib, and publiclib libraries. 
 
NOTE: programs in the examples are neither supported nor warranted by Apollo Computer, Inc. 
 
The directory contains the program files listed below.

arguments.a uses package COMMAND_LINE from verdixlib to print program arguments and environment variables

date.a uses package CALENDAR from standard to print current date and time

hanoi.a, termbody.a, termspec.a
demonstrates solution to ‘Towers of Hanoi’ problem

hello.a a typical first program, which uses package TEXT_IO from standard to print the message ‘hello, world’

mortgage.a uses package MATH from verdixlib to calculate mortgage payments

permute_list.a uses package ORDERING from verdixlib to list permutations of digits 0-4

queens.a provides a solution of the ‘8 Queens’ chess problem generalized for any board with sides of 4-12 squares

random.a uses package CALENDAR from standard to create pseudo-random numbers

slideshow.a uses the package CURSES in publiclib and illustrates background tasks

sort_file.a sorts lines in a file within specified columns

sort_integer.a uses package ORDERING from verdixlib to sort input of IO integer in ascending and descending order

uc.p, uctran.a uses package CALENDAR from standard to maintain a calendar file; these illustrate the translation of a program from Pascal to Ada. uc.p is in Pascal, and uctran.a is a close translation of UC.PAS to Ada. 

FILES

VADS_location/examples/*

SEE ALSO

publiclib, standard, verdixlib

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026