TASH demos README File

This file describes how to build and run several programs which demonstrate how TASH can be used to:

Software use License Terms

It is my intention to make this software as freely available as possible, while not violating the rights of the Regents of the University of California and Sun Microsystems, Inc. This appears best done by simply using the License Terms included with Tcl/Tk.

Table of Contents (this page only)

Build TASH First
Build and Execute freq Program
Build and Execute timer Program
Build and Execute futurevalue Program

Build TASH First

Before executing the TASH test program, you must first build either the Unix or Windows 95 version of TASH.

Build and Execute freq Program

The files for building these programs are in the tash802/demos directory.

The freq demo program is a frequency counter. The Tcl code version is in freq.tcl and the Ada source code is in freq.adb. This program demonstrates the use of several Tcl features, including hash tables, in an Ada program.

To build this program, be sure you are in the tash802/demos directory, then execute make freq. In addition to building freq, this will build wordify and compare. These two programs are used in testing the freq program.

Execute make testfreq to test freq. This executes a Tcl script which performs a frequency count on a file with both TASH and Tcl script versions of the program, compares the outputs to make sure they match, and does a timing comparison.

See my ACM Ada Letters (Vol XVII, No 2) paper describing TASH for more information on this demo program.

Build and Execute timer Program

The timer program was adapted from the timer demo program provided in the Tk distribution. It implements a simple stopwatch. A Tcl script version of this program is also provided (timer.tcl) so you can compare it to the TASH version.

To build this program, be sure you are in the tash802/demos directory, then execute make timer.

Execute timer and try out its various features. Terminate it by pressing Control-C or Control-Q.

Execute the Tcl script version by entering the command, wish -f timer.tcl. Notice that there are no apparent differences in appearance or performance between the Ada and Tcl versions.

See my Tri-Ada '96 paper for more information on this demo program.

Build and Execute futurevalue Program

The purpose of the futurevalue program is to demonstrate the capability of TASH to use Ada to read, process, and update data in a GUI application.

To build this program, be sure you are in the tash802/demos directory, then execute make futurevalue.

Execute futurevalue to try it out to compute future value of an investment. If you enter the following data, you should get the value 20484.63:

Monthly Savings Amount: 100
Annual Interest Rate: 10
Number of Years: 10

Try entering a formula in any of the data entry fields, e.g., 10*10 instead of 100 for the Monthly Savings Amount.

See my Tri-Ada '97 tutorial presentation for more information on this program.


Author: Terry J. Westley
Email: twestley@buffalo.veridian.com
Web: http://tash.calspan.com/
File Ref: demos/README.htm
Last Updated: