Checkbook Statement Comparison

Developer(s): George Repicky
Date: 1983
Type: Program
Platform(s): ZX81, TS 1000
Tags: Finance

Works out what a checkbook balance should be from the bank statement, the checks still outstanding and the deposits not yet shown.

RUN it and enter the charge per check and the bank balance, then each outstanding check and each unrecorded deposit, ending each list with 0. It fits a 1K ZX81 or TS1000. The keywords in the PRINT strings are entered as single tokens, as the article explains, to save memory.

Also printed in SYNC, January/February 1983.

Published in LISTing November 1988 (Checkbook Management).

Image Gallery

Source Code

  70 GOSUB 2000
  80 PRINT " INPUT CHECK CHARGE"
  90 INPUT A
 100 GOSUB 2000
 110 PRINT " INPUT BANK BALANCE"
 120 INPUT B
 130 GOSUB 2000
 140 PRINT " INPUT OUTSTANDING CHECKS"
 150 GOSUB 2000
 160 GOSUB 4000
 170 INPUT C
 180 IF C=0 THEN GOTO 230
 190 LET B=B-C-A
 200 PRINT C
 210 GOSUB 2000
 220 GOTO 170
 230 GOSUB 2000
 240 PRINT " INPUT UNRETURNED DEPOSITS"
 250 GOSUB 2000
 260 GOSUB 4000
 270 INPUT D
 280 IF D=0 THEN GOTO 340
 290 LET B=B+D
 300 PRINT D
 310 GOSUB 2000
 320 GOTO 270
 330 GOSUB 2000
 340 PRINT "BALANCE SHOULD BE: ";B
1999 STOP
2000 SCROLL
2010 PRINT
2020 SCROLL
2030 RETURN
4000 PRINT "IF FINISHED INPUT 0"
4010 GOSUB 2000
4020 RETURN

Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.