#  ========================================================================
#  This C shell file tests C Programs in Part II of Book
#
#  Written by: Mark Austin                                   September 1995
#  ========================================================================

echo '>>> C shell script to execute Application Programs in Part II of Text'
echo '>>>                                                        '

#  ===============================
#  Computer Programs in Chapter 11
#  ===============================

echo '>>>                                                                    '
echo '>>> Computer Programs in Chapter 11                                    '
echo '>>>                                                                    '
echo '>>> Program [11.1] : functions to build oneway linked lists (numlist.c)'
echo '>>> Program [11.2] : LIST : Allocate and print oneway linked list      '
LIST >! output-list
echo '>>> Program [11.3] : SETOPS : Compute set operations on linked list    '
SETOPS >! output-setops
echo '>>> Program [11.4] : functions to build polygons (see polygon.c)          '
echo '>>> Program [11.5] : POLYGON1 : compute properties of bridge cross section'
POLYGON1 >! output-polygon1

#  ===============================
#  Computer Programs in Chapter 12
#  ===============================

echo '>>>                                                               '
echo '>>> Computer Programs in Chapter 12                               '
echo '>>>                                                               '

echo '>>> Program [12.1] : BUBBLE1 : Basic Bubble Sort                  '
BUBBLE1 >! output-bubble1
echo '>>> Program [12.2] : BUBBLE2 : Bubble Sort with Compare function  '
BUBBLE2 >! output-bubble2
echo '>>> Program [12.3] : QSORT : Use Quicksort to sort a list         '
QSORT >! output-qsort
echo '>>> Program [12.4] : HASHFUNCTION : Simple Hash Table Function    '
HASHFUNCTION >! output-hashfunction
echo '>>> Program [12.5] : HASHTABLE : Build and Print Hash Table       '
HASHTABLE >! output-hashtable

echo '>>>                        '
echo '>>> Script file finished   '
echo '>>>                        '
