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.
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.
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: |