These programs appear to work, and are part of regression testing.

Changes made:
a) add missing semicolon/comma in PRINT statements
b) change array names so they were not identical to scalar variable names
c) add spaces around reserved words
d) CASSETTE is not supported, use DISKETTE instead
e) add missing THEN after IF
f) change PRINT #1,X,Y to WRITE #1,X,Y
g) add exit for autmated testing

These programs were downloaded from 
http://www.willus.com/trs80/?q=Common+BASIC+Programs


   Book: Some Common Basic Programs 3rd Ed (1979)(Osborne).pdf
Program: Common BASIC Programs (125204)
 Author: Lon Poole
  Files:
ALFASORT.BAS, AMORTTAB.BAS, ANAL2VEC.BAS, ANGLMET.BAS, AREAPOLY.BAS, BINODIST.BAS, CHECWRIT.BAS, CHI2DIST.BAS, CHI2TEST.BAS, COMMPAP.BAS, CORDCONV.BAS, CORDPLOT.BAS, CURVINT.BAS, DAY2DAY.BAS, DAYWEEK.BAS, DEGRAD.BAS, DEPAMT.BAS, DEPRATE.BAS, DEPRSKED.BAS, DERIV.BAS, EARNINT.BAS, EFFINT.BAS, ENTEPRIS.BAS, EXPREGR.BAS, FDIST.BAS, FEDTAX.BAS, FUTVALDE.BAS, FUTVALIN.BAS, GCD.BAS, GEOMEAN.BAS, GEOREGR.BAS, GROWRATE.BAS, INITINV.BAS, INTGGAUS.BAS, INTGSIMP.BAS, INTGTRAP.BAS, LABELS.BAS, LASTPAY.BAS, LINCORCO.BAS, LINEPROG.BAS, LININT.BAS, LINREGR.BAS, LOANBAL.BAS, LOANPAY.BAS, LOANRATE.BAS, LOANTERM.BAS, MANNWHIT.BAS, MAPCHECK.BAS, MASTRDIR.BAS, MATADD.BAS, MATINV.BAS, MATMULT.BAS, MININV.BAS, MLINREGR.BAS, NOMINT.BAS, NORDREGR.BAS, NORMDIST.BAS, OPS2VEC.BAS, OTER.BAS, PARTSTRI.BAS, PERMCOMB.BAS, PLOTFUNC.BAS, PLOTPOL.BAS, POISDIST.BAS, PRIFACT.BAS, PRINLOAN.BAS, QUADROOT.BAS, RADDEG.BAS, RECICOST.BAS, REGDEP.BAS, REGWDRAW.BAS, ROOTNEWT.BAS, ROOTPOLY.BAS, SALVAGE.BAS, SHELSORT.BAS, SHOPPING.BAS, SIMLEQNS.BAS, STDDEV.BAS, SYSREL.BAS, TDIST.BAS, TDISTEST.BAS, TRIGPOLY.BAS

EOF
