Files for  Introduction to Computing, by Adams/Leestma/Nyhoff

Note:
  All of the figures in the textbook with little 3.5" diskettes next
  to them are contained on the ftp site in one form or another.
  Each figure will either be contained in the file named after the figure
  (i.e. FIG4-3.CPP is Figure 4.3), or it will be contained within another
  file, in which case you should look for (Fig 4.3) at the end of a
  description of a related file.  If you have any problems with the
  ftp site, please send mail to phyllis@prenhall.com.

Files in \CHAP2:

  FIG2-1.CPP    Revenue calculation

Files in \CHAP3:

  FIG3-1.CPP    The null program
  FIG3-2.CPP    Calculating the volume of a sphere
  FIG3-3.CPP    Calculating wages -- version 1
  FIG3-4.CPP    Calculating wages -- version 2
  FIG3-5.CPP    Trucking costs

Files in \CHAP4:

  FIG4-1.CPP    Converting a temperature -- version 1
  FIG4-2.CPP    Converting a temperature -- version 2
  FIG4-3.CPP    A sample driver program
  FIG4-4.CPP    Converting a temperature -- version 3
  FIG4-7.CPP    Converting a temperature -- version 4
                  (link with HEAT.CPP)
  FIG4-12.CPP   Program to solve the days-to-distance problem
                  (link with TIMES.CPP and METRIC.CPP)
  FIG4-13.CPP   Program to solve the temperature-conversion problem
                  (link with \CHAP11\TEMPERAT.CPP)
  HEAT.H        Header file for library Heat (Fig 4.5)
  HEAT.CPP      Implementation file for library Heat (Fig 4.6)
  METRIC.H      Header file for library Metric (Fig 4.10)
  METRIC.CPP    Implementation file for library Metric (Fig 4.11)
  TIMES.H       Header file for library Times (Fig 4.8)
  TIMES.CPP     Implementation file for library Times (Fig 4.9)
  BOOLEAN.H     (from \CHAP10)
  TEMPERAT.H    (from \CHAP11)

Files in \CHAP5:

  FIG5-1.CPP    A reciprocal function -- version 1
  FIG5-2.CPP    A reciprocal function -- version 2
  FIG5-3.CPP    A binary half-adder
  FIG5-4.CPP    Pollution index
  FIG5-5.CPP    Grade computation -- version 1
  FIG5-6.CPP    Grade computation -- version 2
  FIG5-7.CPP    Grade computation -- version 3
  FIG5-8.CPP    Year code conversion
  FIG5-9.CPP    Grade computation -- version 4
  FIG5-10.CPP   Function Convert
  FIG5-11.CPP   A temperature conversion program
                  (link with \CHAP4\HEAT.CPP)
  HEAT.H        (from \CHAP4)

Files in \CHAP6:

  FIG6-2.CPP    Driver program for function Sum()
                  (link with MYMATH.CPP)
  FIG6-3.CPP    Printing a multiplication table
  FIG6-4.CPP    Computing rebound height
  FIG6-5.CPP    Mean time to failure -- sentinel-controlled while loop ver.
  FIG6-6.CPP    Mean time to failure -- end-of-file version
  FIG6-8.CPP    Driver program for function DigitsIn() (Fig 6.7)
  FIG6-9.CPP    Mean time to failure -- query version 1
  FIG6-10.CPP   Mean time to failure -- query version 2
                  (link with QUERY.CPP)
  FIG6-12.CPP   Driver program for GetMenuChoice() -- version 2 (Fig 6.11)
  FIG6-13.CPP   Mean time to failure -- sentinal-controlled forever loop ver.
  FIG6-16.CPP   Methods of depreciation (driver program)
                  (link with DEPREC.CPP)
  FIG6-18.CPP   Least squares line
  FIG6-19.CPP   Bisection method
  DEPREC.H      Header file for library Deprec
  DEPREC.CPP    Implementation file for library Deprec (Fig 6.14, 6.15)
  MYMATH.H      Header file for library MyMath
  MYMATH.CPP    Implementation file for library MyMath
                  (Fig 6.1, 6.20, 7.8, 7.9)
  QUERY.H       Header file for library Query
  QUERY.CPP     Implementation file for library Query

Files in \CHAP7:

  FIG7-2.CPP    Driver program for the binary half-adder function (Fig 7.1)
  FIG7-4.CPP    Making change -- driver program (Fig 7.3)
  FIG7-5.CPP    Exchanging the values of two variables
  FIG7-7.CPP    A driver program for FindMinMaxAverage()
                  (link with MYSTATS.CPP)
  FIG7-10.CPP   A driver program for Polynomial()
                  (link with \CHAP6\MYMATH.CPP)
  FIG7-12.CPP   A driver program for NextSumTerm() (Fig 7.11)
  FIG7-13.CPP   Dice-roll simulation
                  (link with \APPENDIX\RANDOMIN.CPP)
  FIG7-14.CPP   Computing n! recursively
  FIG7-15.CPP   Performing exponentiation recursively
  FIG7-16.CPP   Printing a number's digits in reverse order
  FIG7-18.CPP   Towers of Hanoi driver program (Fig 7.17)
  MYSTATS.H     Header file for library MyStats
  MYSTATS.CPP   Implementation file for library MyStats (Fig 7.6)
  MYMATH.H      (from \CHAP6)
  RANDOMIN.H    (from \APPENDIX)

Files in \CHAP8:

  FIG8-3.CPP    Reading an employee file
  FIG8-4.CPP    Calculating payroll
  FIG8-5.CPP    Counting lines in a file
  FIG8-6.CPP    Goof-proof numeric input
  PRESSURE.CPP  Reading a file of meteorological data (Fig 8.1)
  DOCUMENT      Test file for FIG8-5.CPP
  EMP.DAT       An employee file for FIG8-3.CPP and FIG8-4.CPP
  TEST1.DAT     A file of meteorological data for PRESSURE.CPP
  TEST2.DAT     A file of meteorological data for PRESSURE.CPP
  TEST3.DAT     A file of meteorological data for PRESSURE.CPP

Files in \CHAP9:

  FIG9-1.CPP    Reversing a string
                  (link with \APPENDIX\STRINGS.CPP)
  FIG9-2.CPP    Copying a file
                  (link with \APPENDIX\STRINGS.CPP)
  FIG9-3.CPP    Scanning for a virus
                  (link with \APPENDIX\STRINGS.CPP)
  FIG9-5.CPP    Driver for function ReplaceAll() (Fig 9.4)
                  (link with \APPENDIX\STRINGS.CPP)
  FIG9-6.CPP    A minimum-value function
  FIG9-8.CPP    Encrypting/decrypting a message
                  (link with CIPHERS.CPP, \APPENDIX\STRINGS.CPP,
                             \CHAP6\QUERY.CPP)
  CIPHERS.H     Header file for library Ciphers
  CIPHERS.CPP   Implementation file for library Ciphers (Fig 9.7)
  STRINGS.H     (from \APPENDIX)
  QUERY.H       (from \CHAP6)
  BINARY.SIM    Test file for FIG9-3.CPP
  LINCOLN.TXT   Test file for FIG9-2.CPP
  REUTHER.TXT   Test file for FIG9-5.CPP

Files in \CHAP10:

  FIG10-4.CPP   A Boolean function
  FIG10-5.CPP   A Boolean library (old version)
  FIG10-6.CPP   A rock-classification program
                  (link with ROCK.CPP as completed in Exercises)
  BOOLEAN.H     The Boolean class declaration
  BOOLEAN.CPP   The Boolean class definition
  DAY.H         Header file for library Day (Fig 10.3)
  DAY.CPP       Implementation file for library Day (Fig 10.1, 10.2)
  ROCK.H        Header file for library Rock (Fig 10.8)
  ROCK.CPP      Implementation file for library Rock (Fig 10.7)
  STRINGS.H     (from \APPENDIX)

Files in \CHAP11:

  FIG11-2.CPP   A temperature-conversion program
                  (link with TEMPERAT.CPP)
  FIG11-14.CPP  A program to test class Day
                  (link with DAY.CPP as completed in Exercises)
  FIG11-15.CPP  Redeclaring Day as a struct
  FIG11-19.CPP  The dean's list program
                  (link with STUDENT.CPP, YEAR.CPP, \APPENDIX\STRINGS.CPP)
  DAY.H         The Day class declaration (Fig 11.12)
  DAY.CPP       The Day class definition (Fig 11.13)
  STUDENT.H     The Student class declaration (Fig 11.17)
  STUDENT.CPP   The Student class definition (Fig 11.18)
  TEMPERAT.H    The Temperature class declaration (Fig 11.3)
  TEMPERAT.CPP  The Temperature class definition
                  (Fig 11.6, 11.7, 11.9, 11.10, 11.11)
  YEAR.H        The Year class declaration (Fig 11.16)
  YEAR.CPP      The Year class definition
  STUDENT.DAT   Test file for FIG11-19.CPP
  BOOLEAN.H     (from \CHAP10)
  STRINGS.H     (from \APPENDIX)

Files in \CHAP12:

  FIG12-1.CPP   Processing test scores
  FIG12-12.CPP  Using selection sort
                  (link with LIST.CPP)
  FIG12-17.CPP  Student information retrieval
                  (link with LIST.CPP, \CHAP11\STUDENT.CPP,
                             \CHAP11\YEAR.CPP, \APPENDIX\STRINGS.CPP)
  FIG12-19.CPP  Why array indices must stay in bounds
  LIST.H        The List class declaration (Fig 12.2, 12.3, 12.17)
  LIST.CPP      The List class definition (Fig 12.4 to 12.11, 12.13 to 12.15)
  REGISTRA.DAT  Test file for FIG12-17.CPP
  BOOLEAN.H     (from \CHAP10)
  STRINGS.H     (from \APPENDIX)
  STUDENT.H     (from \CHAP11)
  YEAR.H        (from \CHAP11)

Files in \CHAP13:

  FIG13-1.CPP   Getting a valid menu choice
  FIG13-10.CPP  Recognizing an integer constant (Fig 13.9)
  SET.H         The Set class declaration (Fig 13.2)
  SET.CPP       The Set class definition (Fig 13.3 to 13.8)
  BOOLEAN.H     (from \CHAP10)

Files in \CHAP14:

  FIG14-10.CPP  Reporting automobile sales
                  (link with TABLE.CPP, \APPENDIX\STRINGS.CPP)
  FIG14-13.CPP  Reporting automobile sales (version 2)
                  (link with TABLE.CPP, SALESTAB.CPP, \APPENDIX\STRINGS.CPP)
  FIG14-16.CPP  Demonstration of matrix multiplication
                  (link with TABLE.CPP, MATRIX.CPP, \APPENDIX\STRINGS.CPP)
  FIG14-18.CPP  Plotting a function
  FIG14-19.CPP  Plotting a contour plot
  FIG14-20.CPP  Redesigining class Table
  MATRIX.H      The Matrix class declaration (Fig 14.14)
  MATRIX.CPP    The Matrix class definition (Fig 14.15)
  SALESTAB.H    The SalesTable class declaration (Fig 14.11)
  SALESTAB.CPP  The SalesTable class definition (Fig 14.12)
  TABLE.H       The Table class declaration (Fig 14.1, 14.9)
  TABLE.CPP     The Table class definition (Fig 14.2 to 14.8)
  MAT2X3.DAT    Test file for FIG14-16.CPP
  MAT3X4.DAT    Test file for FIG14-16.CPP
  SALES.DAT     Test file for FIG14-10.CPP and FIG14-13.CPP
  EGAVGA.BGI    Borland Graphics Interface EGA/VGA file
                  for FIG14-18.CPP and FIG14-19.CPP (also in X:\TC\BGI)
  CARTSYS.H     (from \APPENDIX)
  BOOLEAN.H     (from \CHAP10)
  STRINGS.H     (from \APPENDIX)

Files in \CHAP15:

  FIG15-1.CPP   Using indirection
  FIG15-11.CPP  Finding the median of a list of values
                  (link with LIST.CPP, \APPENDIX\STRINGS.CPP)
  FIG15-26.CPP  Processing order forms
                  (link with ROW.CPP, TABLE.CPP, \APPENDIX\STRINGS.CPP)
  FIG15-27.CPP  Introducing argc and argv
  FIG15-28.CPP  Encoding sroot
  FIG15-31.CPP  Numerical integration of a function
                  (link with NUMMETHO.CPP)
  LIST.H        The List class declaration (Fig 14.2, 14.10)
  LIST.CPP      The List class definition (Fig 14.3 to 14.9)
  NUMMETHO.CPP  Implementation file for library NumMethods (Fig 15.29)
  NUMMETHO.H    Header file for library NumMethods (Fig 15.30)
  ROW.H         The Row class declaration (Fig 14.12)
  ROW.CPP       The Row class definition (Fig 14.13 to 14.17)
  TABLE.H       The Table class declaration (Fig 14.18, 14.25)
  TABLE.CPP     The Table class definition (Fig 14.19 to 14.24)
  LIST.DAT      Test file for FIG15-11.CPP
  ORDER1.DAT    Test file for FIG15-26.CPP
  BOOLEAN.H     (from \CHAP10)
  STRINGS.H     (from \APPENDIX)

Files in \CHAP16:

  FIG16-11.CPP  Maintaining a linked list of employee records
                  (link with LINKEDLI.CPP, EMPLOYEE.CPP,
                             \APPENDIX\STRINGS.CPP)
  FIG16-13.CPP  A driver program for DisplayBinary() (Fig 16.12)
                  (link with LINKEDLI.CPP, \APPENDIX\STRINGS.CPP)
  EMPLOYEE.H    The Employee class declaration (for FIG16-11.CPP)
  EMPLOYEE.CPP  The Employee class definition (for FIG16-11.CPP)
  LINKEDLI.H    The LinkedList class declaration (Fig 15.1)
  LINKEDLI.CPP  The LinkedList class definition (Fig 15.2 to 15.10)
  STACK.H       The Stack class declaration (Fig 16.14)
  QUEUE.H       The Queue class declaration (Fig 16.15)
  EMPFILE       Test file for FIG16-11.CPP
  BOOLEAN.H     (from \CHAP10)
  STRINGS.H     (from \APPENDIX)

Files in \CHAP17:

  FIG17-1.CPP   Driver for the game of animal
                  (link with DECISION.CPP)
  FIG17-20.CPP  Sorting a list of student records
                  (link with BST.CPP, \CHAP11\STUDENT.CPP,
                             \CHAP11\YEAR.CPP, \APPENDIX\STRINGS.CPP)
  BST.H         The BST class declaration (Fig 17.2, 17.3)
  BST.CPP       The BST class definition (Fig 17.4 to 17.19)
  DECISION.H    The DecisionTree class declaration (for FIG17-1.CPP)
  DECISION.CPP  The DecisionTree class definition (for FIG17-1.CPP)
  STUDENT.DAT   Test file for FIG17-20.CPP
  BOOLEAN.H     (removed to conserve space; copy from \CHAP10)
  STRINGS.H     (removed to conserve space; copy from \APPENDIX)
  STUDENT.H     (removed to conserve space; copy from \CHAP11)
  YEAR.H        (removed to conserve space; copy from \CHAP11)

Files in \APPENDIX:

  FIGH-1.CPP    Gaussian elimination
  FIGH-2.CPP    Gaussian elimination utility functions
  FIGH-3.CPP    Gaussian elimination driver program
                  (link with FIGH-1.CPP, FIGH-2.CPP, STRINGS.CPP
                             \CHAP15\ROW.CPP, \CHAP15\TABLE.CPP)
  FIGI-2.CPP    Driver program for Swap
  FIGI-4.CPP    Driver program for Stack
  CARTSYS.H     The CartesianSystem class declaration (Fig
  CARTSYS.CPP   The CartesianSystem class definition (Fig
  RANDOMIN.H    The RandomInt class declaration
  RANDOMIN.CPP  The RandomInt class definition
  SWAP.H        The Swap template (Fig I.1)
  STACK.H       The Stack template (Fig I.3)
  STRINGS.H     The Strings class declaration
  STRINGS.CPP   The Strings class definition
  INVEN.DAT     InventoryFile
  INVUPDAT.DAT  InventoryUpdate
  LSQUARES.DAT  LeastSquaresFile
  STUDENT.DAT   StudentFile
  STUPDATE.DAT  StudentUpdate
  USER.DAT      UserIdFile
  BOOLEAN.H     (from \CHAP10)
  MATRIX.H      (from \CHAP14)
  ROW.H         (from \CHAP15)
  TABLE.H       (from \CHAP15)
