Judson (Jud) McClendon

Sun Valley Systems
4522 Shadow Ridge Parkway; Pinson, Alabama 35126-2192

This is a pretty significant update, with new sections added for PowerBasic compilers, all the QuickBasic programs have been updated, and all the C programs now come with executables. The programs, routines and files below are only a tiny fraction of the many I have written over more than thirty-five years of programming for a living. I am placing them into the Public Domain, you may download and use them as you wish. Some of the programs are useful themselves, and some of the programs contain useful subroutines and functions. A few of the categories are currently empty or minimal; I will be adding and updating entries from time to time. If you find the programs useful, or encounter a bug, please let me know. Email Jud

Updated February 12, 2004


C Source Files and Programs

The following programs were compiled with Microsoft C 6.0a (DOS). Source and executable are included.

BASECONV.ZIP   7,422 02-11-04 Convert Number from any base to any base (2-36)
BIGCALC.ZIP   78,986 01-01-99 HP type RPN calculator with up to 1075 digits precision
GCD.ZIP        6,548 02-11-04 Greatest Common Divisor using Euclid's algorithm
P.ZIP          6,469 02-11-04 Command line setup for PCL-5 laser printers
POWER2.ZIP     7,014 02-11-04 Test an integer to be power of 2
PRIMES.ZIP     8,775 02-11-04 Display/print/count any range of primes to 999,999,999
RAND.ZIP       4,660 02-11-04 Code for MSC random number generator
SQRT.ZIP      19,505 02-11-04 Square root using Newton's Method
SUM.ZIP        6,829 02-11-04 Print all natural numbers which sum to N
VMODE.ZIP      4,242 02-11-04 Sets video mode (8 bit mode number <256)
VVMODE.ZIP     4,262 02-11-04 Sets VESA video mode (16 bit mode number >255)
 

COBOL Source Files

The following ZIP files include COPY files and test driver programs. All should compile using Micro Focus COBOL or Net Express.

DATE.ZIP       8,523 02-01-99 Useful date routines
EASTER.ZIP     1,293 02-01-99 Calculate the date of Easter
GETNUM.ZIP     2,514 02-01-99 Extract free-form from alphanumeric number
LOAN.ZIP       2,530 02-01-99 Calculate loan amount or payment amount
MONEY.ZIP      2,724 02-01-99 Money to text (e.g. $5.10 -> FIVE DOLLARS AND TEN CENTS)
NAME.ZIP       2,278 02-01-99 Validate/reverse name (e.g. Smith, John, Mr., Jr.)
SHELSRT.ZIP    3,139 02-01-99 Table sort using Shell sort
 

PowerBASIC Console Compiler Source Files and Programs

The following programs were compiled using PowerBASIC Console Compiler 3.x. Source and executable are included.

2FILES.ZIP     8,925 02-09-04 How to input two file names in COMMAND$
ACOS.ZIP      11,494 02-09-04 ACOS function without intrinsic
ALLBASE.ZIP   10,325 02-09-04 Convert a decimal number to bases 2-36
ALLCOMB.ZIP    8,162 02-09-04 Prints all combinations N items of M
ALLWORDS.ZIP  10,196 02-09-04 Prints all words of Size Min to Max
ASIN.ZIP      11,436 02-09-04 ASIN function without intrinsic
ATAN.ZIP      11,446 02-09-04 ATAN function without intrinsic
ATN2.ZIP       9,785 02-09-04 ATN(dy,dx) resolving quadrant
ATNEULER.ZIP  10,825 02-09-04 TAN function without intrinsic
BASECONV.ZIP  11,230 02-09-04 Convert number from any base to any base (2-36)
BIN2HEX.ZIP    8,022 02-09-04 Convert binary string to hex string
CALENDAR.ZIP  24,185 02-09-04 Prints one page calendar with holidays
COMB.ZIP       9,653 02-09-04 Prints all combinations of N items from set of M
COS.ZIP       10,828 02-09-04 COS function without intrinsic
DEC2BIN.ZIP    8,399 02-09-04 Convert number to binary string
DEC2FRAC.ZIP  11,353 02-09-04 Convert decimal to fraction (nn.nn to dd nn/dd)
EASTER.ZIP     9,030 02-09-04 Calculate date of Easter for any year
EXP.ZIP       10,732 02-09-04 EXP (e^x) function without intrinsic
FAC!.ZIP      10,460 02-09-04 Factorial using iterative & recursive
FACTOR.ZIP    10,630 02-09-04 Find roots of quadratic equation Ax^2+Bx+C
GCD.ZIP        9,652 02-09-04 Greatest Common Divisor using Euclid's algorithm
KEY.ZIP        8,161 02-09-04 Display keyboard code for key pressed
LCM.ZIP        9,770 02-09-04 Lowest Common Multiple
LISTFILE.ZIP  14,272 02-09-04 List ASCII file with header, line numbers
LISTONLY.ZIP  14,330 02-09-04 List ASCII file with header only
LN.ZIP        10,810 02-09-04 Natural logarithm ln() function without intrinsic
LONGEST.ZIP   12,133 02-09-04 Display longest line in text file
PASSWORD.ZIP  13,812 02-09-04 Random alphanumeric password generator
PDUMP.ZIP     14,118 02-09-04 Print dump of file in format similar to DEBUG
PERM.ZIP       9,698 02-09-04 Prints all permutations of N items from set of M
PI.ZIP        10,932 02-09-04 Calculate PI
POWER.ZIP     10,363 02-09-04 Calculate integer power function without intrinsic
POWER2.ZIP     9,299 02-09-04 Test integer to be power of 2 – Fast!
POWER2B.ZIP    8,677 02-09-04 Test integer to be power of 2 – Short!
PRIMETST.ZIP   9,274 02-09-04 Test integers for Primality
ROUND.ZIP      9,672 02-09-04 Round number to specified point
SIN.ZIP       10,814 02-09-04 SIN function without intrinsic
SORTSHEL.ZIP  12,110 02-09-04 Demo for Shell-Metzner Sort
SQRT.ZIP      10,776 02-09-04 SQR function without intrinsic
STRSORT.ZIP    7,790 02-09-04 Sort letters in a character string
TIMER.ZIP      9,046 02-09-04 Prototype to time nnn loops of code
WEEKDAY.ZIP   10,094 02-09-04 Day of week from date using Zeller's Congruence
 

PowerBASIC DOS Source Files and Programs

The following programs were compiled using PowerBASIC DOS 3.x. Source and executable are included.

2FILES.ZIP    11,927 02-09-04 How to input two file names in COMMAND$
ACOS.ZIP      24,499 02-09-04 ACOS function without intrinsic
ALLBASE.ZIP   22,440 02-09-04 Convert a decimal number to bases 2-36
ALLCOMB.ZIP   18,948 02-09-04 Prints all combinations N items of M
ALLWORDS.ZIP  21,025 02-09-04 Prints all words of Size Min to Max
ASIN.ZIP      24,465 02-09-04 ASIN function without intrinsic
ATAN.ZIP      24,465 02-09-04 ATAN function without intrinsic
ATN2.ZIP      22,541 02-09-04 ATN(dy,dx) resolving quadrant
ATNEULER.ZIP  23,917 02-09-04 TAN function without intrinsic
BASECONV.ZIP  22,607 02-09-04 Convert number from any base to any base (2-36)
BIN2HEX.ZIP   20,965 02-09-04 Convert binary string to hex string
CALENDAR.ZIP  35,857 02-09-04 Prints one page calendar with holidays
COMB.ZIP      20,772 02-09-04 Prints all combinations of N items from set of M
COS.ZIP       23,882 02-09-04 COS function without intrinsic
DEC2BIN.ZIP   20,818 02-09-04 Convert number to binary string
DEC2FRAC.ZIP  23,437 02-09-04 Convert decimal to fraction (nn.nn to dd nn/dd)
EASTER.ZIP    21,710 02-09-04 Calculate date of Easter for any year
EGACOLOR.ZIP  21,085 02-09-04 Display EGA color palette remap table
EXP.ZIP       23,813 02-09-04 EXP (e^x) function without intrinsic
FAC!.ZIP      22,139 02-09-04 Factorial using iterative & recursive
FACTOR.ZIP    21,306 02-09-04 Find roots of quadratic equation Ax^2+Bx+C
GCD.ZIP       20,362 02-09-04 Greatest Common Divisor using Euclid's algorithm
KEY.ZIP       12,020 02-09-04 Display keyboard code for key pressed
LCM.ZIP       20,792 02-09-04 Lowest Common Multiple
LISTFILE.ZIP  27,818 02-09-04 List ASCII file with header, line numbers
LISTONLY.ZIP  27,868 02-09-04 List ASCII file with header only
LN.ZIP        23,871 02-09-04 Natural logarithm ln() function without intrinsic
LONGEST.ZIP   26,203 02-09-04 Display longest line in text file
PASSWORD.ZIP  27,092 02-09-04 Random alphanumeric password generator
PDUMP.ZIP     28,247 02-09-04 Print dump of file in format similar to DEBUG
PERM.ZIP      20,790 02-09-04 Prints all permutations of N items from set of M
PI.ZIP        23,979 02-09-04 Calculate PI
POKE.ZIP      18,589 02-09-04 Display character or string using POKE
POWER.ZIP     22,823 02-09-04 Calculate integer power function without intrinsic
POWER2.ZIP    20,890 02-09-04 Test integer to be power of 2 – Fast!
POWER2B.ZIP   20,083 02-09-04 Test integer to be power of 2 – Short!
PRIMETST.ZIP  23,065 02-09-04 Test integers for Primality
PRNTEST.ZIP   20,011 02-09-04 Test Printer Ready
ROUND.ZIP     22,377 02-09-04 Round number to specified point
SIN.ZIP       23,902 02-09-04 SIN function without intrinsic
SORTSHEL.ZIP  23,494 02-09-04 Demo for Shell-Metzner Sort
SQRT.ZIP      23,882 02-09-04 SQR function without intrinsic
STRSORT.ZIP   20,054 02-09-04 Sort letters in a character string
TESTADAP.ZIP  18,966 02-09-04 Test for video adapter type
TIMER.ZIP     20,403 02-09-04 Prototype to time nnn loops of code
WEEKDAY.ZIP   20,120 02-09-04 Day of week from date using Zeller's Congruence
 

PowerBASIC for Windows Source Files and Programs

The following programs were compiled using PowerBASIC for Windows 7.x. Source and executable are included.

{programs will be added here}


QuickBasic Source Files and Programs

The following programs were compiled using QuickBasic 4.5. All should compile with Microsoft PDS. Most will run under QBASIC if you simply delete any lines containing COMMAND$. Source and executable are included.

2FILES.ZIP    12,041 02-09-04 How to input two file names in COMMAND$
ACOS.ZIP      25,179 02-09-04 ACOS function without intrinsic
ALLBASE.ZIP   23,727 02-09-04 Convert a decimal number to bases 2-36
ALLCOMB.ZIP   12,369 02-09-04 Prints all combinations N items of M
ALLWORDS.ZIP  22,965 02-09-04 Prints all words of Size Min to Max
ASIN.ZIP      25,151 02-09-04 ASIN function without intrinsic
ATAN.ZIP      25,165 02-09-04 ATAN function without intrinsic
ATN2.ZIP      22,147 02-09-04 ATN(dy,dx) resolving quadrant
ATNEULER.ZIP  23,994 02-09-04 TAN function without intrinsic
BASECONV.ZIP  23,337 02-09-04 Convert number from any base to any base (2-36)
BIN2HEX.ZIP   22,705 02-09-04 Convert binary string to hex string
CALENDAR.ZIP  38,423 02-09-04 Prints one page calendar with holidays
COMB.ZIP      13,293 02-09-04 Combinations of N items from set of M
COMB2.ZIP     23,527 01-06-07 Combinations of N items from set of M user items
COS.ZIP       24,332 02-09-04 COS function without intrinsic
DEC2BIN.ZIP   22,329 02-09-04 Convert number to binary string
DEC2FRAC.ZIP  24,063 02-09-04 Convert decimal to fraction (nn.nn to dd nn/dd)
EASTER.ZIP    22,915 02-09-04 Calculate date of Easter for any year
EGACOLOR.ZIP  21,831 02-09-04 Display EGA color palette remap table
EXP.ZIP       24,047 02-09-04 EXP (e^x) function without intrinsic
FAC!.ZIP      23,860 02-09-04 Factorial using iterative & recursive
FACTOR.ZIP    22,786 02-09-04 Find roots of quadratic equation Ax^2+Bx+C
GCD.ZIP       22,277 02-09-04 Greatest Common Divisor using Euclid's algorithm
KEY.ZIP       12,042 02-09-04 Display keyboard code for key pressed
LCM.ZIP       22,955 02-09-04 Lowest Common Multiple
LISTFILE.ZIP  31,356 02-09-04 List ASCII file with header, line numbers
LISTONLY.ZIP  31,421 02-09-04 List ASCII file with header only
LN.ZIP        24,103 02-09-04 Natural logarithm ln() function without intrinsic
LONGEST.ZIP   30,330 02-09-04 Display longest line in text file
PASSWORD.ZIP  26,981 02-09-04 Random alphanumeric password generator
PDUMP.ZIP     31,126 02-09-04 Print dump of file in format similar to DEBUG
PERM.ZIP      13,301 02-09-04 Prints all permutations of N items from set of M
PI.ZIP        24,210 02-09-04 Calculate PI
POKE.ZIP      12,677 02-09-04 Display character or string using POKE
POWER.ZIP     23,485 02-09-04 Calculate integer power function without intrinsic
POWER2.ZIP    13,047 02-09-04 Test integer to be power of 2 – Fast!
POWER2B.ZIP   12,504 02-09-04 Test integer to be power of 2 – Short!
PRIMETST.ZIP  22,586 02-09-04 Test integers for Primality
PRNTEST.ZIP   22,292 02-09-04 Test Printer Ready
ROUND.ZIP     21,609 02-09-04 Round number to specified point
SIN.ZIP       24,357 02-09-04 SIN function without intrinsic
SORTSHEL.ZIP  25,478 02-09-04 Demo for Shell-Metzner Sort
SQRT.ZIP      23,454 02-09-04 SQR function without intrinsic
STRSORT.ZIP   22,389 02-09-04 Sort letters in a character string
TESTADAP.ZIP  16,401 02-09-04 Test for video adapter type
TIMER.ZIP     20,526 02-09-04 Prototype to time nnn loops of code
WEEKDAY.ZIP   22,618 02-09-04 Day of week from date using Zeller's Congruence
 

VisualBasic Source Files and Programs

The following programs have been compiled using Visual Basic 6.x. Source and executable are included.

CALWIN.ZIP    16,738 11-11-03 Prints one page calendars with holidays
 

Jud and VR-4 1992


For God so loved the world that He gave His only begotten Son, that whoever believes in Him should not perish but have everlasting life. (John 3:16)