A Personal Money Management Program

See all articles from SYNC v3 n1
Author(s): Alan Pattison
Publication: SYNC
Pub Details: SYNC v3 n1 (Volume 3, Issue 1)
Date: January/February 1983
Pages: 20-25

Where do we stand financially? This is one of the questions of greatest concern in the home office. We make our deposits, write our checks, and pay our bills, but these activities do not provide the information we need to interpret our position. We need to know not only our income and outgo, but also where our money is and what it is doing. We need to know not only this year, but also last year and other years. The program below is one that I developed to provide answers to such questions for my own situation. You may not have the same needs or questions, but perhaps the program will enable you to pose the questions you want to your computer and find the answers you need.

Money Manager title screen
Money Manager title screen

When the program has been activated, simply enter income, expense, and loan principal items each month. The computer will then provide you with:

1) An income statement for the current month and the year-to-date.

2) An expense statement for the current month and the year-to-date.

3) A balance sheet showing your various assets, liabilities, and net worth.

4) A cash flow statement for the month and the year-to-date.

5) A comparison of expenses to date with your yearly budget.

6) A month by month graph comparing income with expenses.

7) Another month by month graph comparing each month’s expenses this year with those of last year.

8) A listing showing month by month income and expenses as well as your average monthly income and expenses.

You can make as many entries as necessary for any item—right out of your check book, Visa or Master Charge records, etc. Your checking account balance and all other assets and liabilities will appear correctly on your balance sheet. There is also a provision for entering transfers of funds between accounts.

The program works best with your computer in FAST mode.

To use the program, each month simply enter your income and expenses—typing in the name of the item and the amount of the transaction. The computer will ask which account the money is for or from, which you enter by code “X,” “S,” etc.

The computer will add together similar items and adjust your assets and liabilities page, your income and expense totals, your cash flow, and your graphs.

If you have outstanding loans such as a mortgage, be sure to enter your principal payments under menu item #10. Your interest on the loans should be entered on the expense statement.

The program also allows you to enter transfers of funds between different accounts under menu item #10.

Instructions for Activating the Program

1) After loading “Money Manager” in your ZX81, save the program on tape just as it is in case you mess up the rest of the instructions.

2) GOTO 5 and enter menu item #1. Enter an income account name, e.g. “SALARY,” enter a zero, then enter another zero. Your screen will print the account name, followed by “0” under Month and “0” under year. Continue entering account names, followed by the two zeros until you have entered six. (Note: If you want more or less than six categories, change the DIM statements in this section as well as the FOR/NEXT loops).

3) Enter “2” and return to menu. Press “2” and you will be on the expense sheet. Here, you must type in each expense account name, followed by “0,” “0,” just as you did with income. The program is set up for 17 expense items, so, if you want more or less, you will need to change the DIM statements and FOR/NEXT loops in this expense section. With 17 expense items, your screen will display a Code 5 at the bottom—press “C” and ENTER to continue.

4) Enter “2” and return to menu. Exit the program by entering menu item 12.

5) Delete all the following statements in your listing (simply type each number and ENTER, one by one.)

235, 236, 238, 239, 241, 242, 255, 260, 265, 519, 522, 523, 524, 525, 526, 527, 528, 531, 532, 533.

6) Type GOTO 1700 and ENTER. Your screen will show a report code 2. Now type GOTO 2500 and ENTER. Your graph format will appear on the screen.

7) Type GOTO 3600 and ENTER. Again your screen will show a report code 2. Type GOTO 4500 and ENTER. Your income/expense graph format will appear on the screen.

8) Delete the following statements in your listing by typing and ENTERing each number individually.

1700, 1720, 1740, 3600, 3610, 3620.

9) For the 2-Year expense comparison graph, you must enter each of last year’s monthly expenses. (If you do not do this, this graph should be ignored.) Type in the following:

LET R(1)=(January last year expenses)
LET R(3)=(February last year expenses)
LET R(5)=(March last year expenses)

Continue with LET R statements 7, 9, 11, 13, 15, 17, 19, 21, 23 for the remaining months of last year. (Note that these are all odd numbers—even numbers are reserved for the current year.)

Last year’s expense entries will be held in reserve and will not appear on the graph until the corresponding months this year are entered. (Except, the graph will show each succeeding month’s expenses for last year as well as those through the current months.)

10) Type GOTO 5 and ENTER. Type menu item #8 and your budget page will be on the screen. As each budget expense item appears, type in and ENTER your budgeted amount for that item. When the screen shows a report code 5 at the bottom, press “C” for the next page.

11) Delete listing statements 3100, 3105, 3120, and 3135.

12) You must now load the computer with additional data in order to make your program work right. This is done with LET statements, entered one by one (numbering not necessary). The titles may be changed to fit your own situation. Type in as follows:

a) Load your Assets:

LET X=(Checking account balance)
LET V=(Visa or other cash card balance)
LET S=(Savings account)
LET C=(Cash on hand)
LET CD=(Certificates of deposit)
LET ST=(Stocks and bonds)
LET PR=(Real and personal property)
LET MA=(Other assets)

b) Load your Liabilities:

LET MG=(Mortgage principal balance)
LET L=(Other loan balance)

13) Type GOTO 5 and ENTER. Your program is now set up for you to use. If you are starting the program in the middle of the year, enter income and expense items month by month for all prior months. This is important if your graphs are to work correctly. If you do make entries for prior months, your balance sheet will no longer be correct. Therefore you should go back to instruction #12 and reload your Assets and Liabilities.

Listing 1.

   2 REM ******** DESIGNED BY ALAN PATTISON, OLYMPIA, WA
5 REM "MONEY MANAGER"
6 REM MA=MISC. ASSETS,X=CHECKING,V=VISA,S=SAVINGS,C=CASH,CD=CERT. OF DEP.,ST=STOCKS,MG=MORTGAGE,L=INS.LOAN
7 LET S$="[gS][gS][gS][gS][gS][gS][gS][gS][gS][gS][gS][gS][gS][gS][gS][gS][gS][gS][gS][gS][gS][gS][gS][gS][gS][gS][gS][gS][gS][gS][gS][gS]"
8 CLS
9 SLOW
10 PRINT
11 LET T$="[gS][gS][gS][gS][gS][gS][gS][gS][gS][gS][gS][gS][gS][gS][gS][gS][gS][gS][gS][gS][gS][gS][gS][gS][gS][gS][gS][gS][gS][gS][gS][gS]"
12 PRINT S$
15 PRINT TAB 9;"[inv MONEY MANAGER]"
18 PRINT T$
20 PRINT
22 LET F$="--------------------------------"
25 PRINT "DO YOU WANT TO:"
28 PRINT
30 PRINT TAB 1;"1)CHECK INCOME STATEMENT?"
35 PRINT TAB 1;"2)CHECK EXPENSE STATEMENT?"
40 PRINT TAB 1;"3)CHECK ASSETS AND LIABILITIES?"
45 PRINT TAB 1;"4)ENTER INCOME ITEMS?"
50 PRINT TAB 1;"5)ENTER EXPENSE ITEMS?"
55 PRINT TAB 1;"6)SEE INCOME/EXPENSE GRAPH?"
58 PRINT TAB 1;"7)SEE 2-YEAR EXPENSES GRAPH?"
59 PRINT TAB 1;"8)COMPARE EXPENSES WITH BUDGET?"
60 PRINT TAB 1;"9)SEE CASH FLOW STATEMENT?"
61 PRINT "10)TRANSFER FUNDS; REPAY LOANS?"
62 PRINT "11)SEE MONTHLY INCOME/EXPENSE?"
63 PRINT "12)EXIT PROGRAM?"
64 PRINT
65 PRINT "ENTER YOUR CHOICE, 1 TO 12."
70 INPUT O
75 CLS
80 IF O=1 THEN GOTO 200
85 IF O=2 THEN GOTO 500
90 IF O=3 THEN GOTO 800
95 IF O=4 THEN GOTO 300
100 IF O=5 THEN GOTO 580
105 IF O=6 THEN GOTO 4000
110 IF O=7 THEN GOTO 2000
115 IF O=8 THEN GOTO 3000
118 IF O=9 THEN GOTO 6000
119 IF O=10 THEN GOTO 6500
120 IF O=11 THEN GOTO 7500
121 IF O=12 THEN GOTO 1000
200 REM *INCOME STATEMENT*
210 REM AFTER ENTERING CATEGORIES, DELETE 235,236,238,239,241,242,255,260,265
223 PRINT TAB 12;"[g6][g6][g6][g6][g6][g6][g6][g6]"
225 PRINT TAB 12;"[g5]INCOME[g8]"
230 PRINT TAB 12;"[g7][g7][g7][g7][g7][g7][g7][g7]"
232 PRINT T$
235 DIM L$(6,15)
236 DIM H(6)
238 DIM F(6)
239 LET M$="MONTH"
240 PRINT "ITEM";TAB 16;M$;TAB 25;"YEAR"
241 LET HT=0
242 LET FT=0
245 PRINT S$
250 FOR B=1 TO 6
255 INPUT L$(B)
260 INPUT H(B)
265 INPUT F(B)
270 PRINT L$(B);TAB 16;H(B);TAB 24;F(B)
280 NEXT B
285 PRINT F$
290 PRINT "TOTAL";TAB 16;HT;TAB 24;FT
291 PRINT T$
292 PRINT "TYPE ""1"" TO MAKE ENTRIES,"
293 PRINT """2"" TO RETURN TO START."
294 INPUT W
295 CLS
296 IF W=2 THEN GOTO 5
299 REM *INCOME ENTRIES*
310 PRINT "IS THIS A NEW MONTH?"
320 INPUT K$
330 IF K$="NO" THEN GOTO 374
340 FOR Z=1 TO 6 STEP 1
350 LET HT=0
360 LET B=Z
365 LET H(Z)=0
370 NEXT Z
372 PRINT "TYPE MONTH-3 LETTER ABBREVIATION"
373 INPUT M$
374 CLS
375 PRINT TAB 8;"INCOME ENTRIES"
376 PRINT S$
380 PRINT "TO END ENTRIES TYPE ""RETURN""."
390 PRINT T$
395 PRINT TAB 16;M$;TAB 25;"YEAR"
396 PRINT S$
400 PRINT "ITEM:"
410 INPUT P$
415 IF P$="RETURN" THEN GOTO 5
420 LET A=LEN P$
425 DIM R$(6,A)
430 FOR B=1 TO 6
435 LET R$(B)=L$(B)
440 IF P$=R$(B) THEN GOTO 452
442 NEXT B
444 PRINT
446 PRINT "NO SUCH CATEGORY--TYPE AGAIN."
448 PRINT
450 GOTO 400
452 PRINT L$(B);TAB 16;H(B);TAB 24;F(B)
454 PRINT "AMT.: ";
456 INPUT E
458 PRINT "$";E
460 PRINT "FOR ACCT.: ";
461 INPUT U$
462 PRINT U$
464 IF U$="X" THEN LET X=X+E
466 IF U$="S" THEN LET S=S+E
468 IF U$="V" THEN LET V=V+E
470 IF U$="C" THEN LET C=C+E
472 IF U$="CD" THEN LET CD=CD+E
474 IF U$="ST" THEN LET ST=ST+E
475 IF U$="MA" THEN LET MA=MA+E
476 LET H(B)=H(B)+E
478 LET HT=HT+E
480 LET F(B)=F(B)+E
482 LET FT=FT+E
483 PRINT F$
484 PRINT "TO DATE";TAB 16;H(B);TAB 24;F(B)
485 PRINT F$
486 PRINT "TOTAL INCOME";TAB 16;HT;TAB 24;FT
488 PRINT S$
490 GOTO 400
500 REM *EXPENSE STATEMENT*
505 REM AFTER ENTERING EXPENSE CATEGORIES, DELETE 519,522,523,524,525,526,527,528,531,532,533
512 PRINT TAB 11;"[g6][g6][g6][g6][g6][g6][g6][g6][g6][g6]"
515 PRINT TAB 11;"[g5]EXPENSES[g8]"
517 PRINT TAB 11;"[g7][g7][g7][g7][g7][g7][g7][g7][g7][g7]"
518 PRINT T$
519 LET D$="MONTH"
520 PRINT "ITEM";TAB 16;D$;TAB 25;"YEAR"
522 DIM I$(17,15)
523 DIM M(17)
524 DIM T(17)
525 LET MT=0
526 LET TT=0
527 LET PPT=0
528 LET PPX=0
529 PRINT S$
530 FOR N=1 TO 17
531 INPUT I$(N)
532 INPUT M(N)
533 INPUT T(N)
535 PRINT I$(N);TAB 16;M(N);TAB 24;T(N)
540 NEXT N
550 PRINT F$
560 PRINT "TOTAL";TAB 16;MT;TAB 24;TT
565 PRINT T$
570 PRINT "TYPE ""1"" TO MAKE ENTRIES, ""2"" TORETURN TO START."
572 INPUT W
575 IF W<>1 THEN GOTO 5
576 REM *EXPENSE ENTRIES*
580 PRINT
581 PRINT "IS THIS A NEW MONTH?"
582 INPUT Y$
583 IF Y$="NO" THEN GOTO 599
584 IF Y$="YES" THEN LET PPT=0
585 PRINT "TYPE MONTH-3 LETTER ABBREVIATION"
586 INPUT D$
590 FOR D=1 TO 17 STEP 1
592 LET MT=0
594 LET N=D
596 LET M(D)=0
598 NEXT D
599 CLS
600 PRINT TAB 8;"EXPENSE ENTRIES"
601 PRINT S$
602 PRINT "TO END ENTRIES TYPE ""RETURN""."
603 PRINT T$
605 PRINT TAB 15;D$;TAB 25;"YEAR"
607 PRINT S$
608 PRINT "ITEM:"
610 INPUT C$
615 IF C$="RETURN" THEN GOTO 5
620 LET J=LEN C$
630 DIM X$(17,J)
640 FOR N=1 TO 17
650 LET X$(N)=I$(N)
660 IF C$=X$(N) THEN GOTO 700
670 NEXT N
680 PRINT "NO SUCH CATEGORY--TYPE AGAIN."
695 GOTO 605
700 PRINT I$(N);TAB 16;M(N);TAB 24;T(N)
705 PRINT "AMT.: ";
708 INPUT K
710 PRINT "$";K
715 PRINT "FROM ACCT.: ";
718 INPUT Q$
720 PRINT Q$
722 IF Q$="X" THEN LET X=X-K
724 IF Q$="S" THEN LET S=S-K
725 IF Q$="V" THEN LET V=V-K
727 IF Q$="C" THEN LET C=C-K
730 LET M(N)=M(N)+K
735 LET MT=MT+K
740 LET T(N)=T(N)+K
742 LET TT=TT+K
743 PRINT F$
745 PRINT "TO DATE";TAB 16;M(N);TAB 24;T(N)
746 PRINT F$
748 PRINT "TOTAL EXPENSE";TAB 16;MT;TAB 24;TT
749 PRINT S$
750 GOTO 605
800 REM *ASSETS/LIABILITIES*
810 REM THESE ARE INITIALLY ENTERED WITH LET STATEMENTS.
826 PRINT TAB 4;"[g6][g6][g6][g6][g6][g6][g6][g6][g6][g6][g6][g6][g6][g6][g6][g6][g6][g6][g6][g6][g6][g6][g6][g6]"
827 PRINT TAB 4;"[g5]ASSETS AND LIABILITIES[g8]"
828 PRINT TAB 4;"[g7][g7][g7][g7][g7][g7][g7][g7][g7][g7][g7][g7][g7][g7][g7][g7][g7][g7][g7][g7][g7][g7][g7][g7]"
830 PRINT
832 PRINT S$
840 PRINT TAB 3;"CHECKING BAL.";TAB 20;X
845 PRINT TAB 3;"VISA BAL.";TAB 20;V
850 PRINT TAB 3;"SAVINGS BAL.";TAB 20;S
855 PRINT TAB 3;"CASH BAL.";TAB 20;C
860 PRINT TAB 3;"CERTS. OF DEP.";TAB 20;CD
865 PRINT TAB 3;"STOCKS";TAB 20;ST
870 PRINT TAB 3;"MISC. ASSETS";TAB 20;MA
872 PRINT TAB 3;"PROPERTY";TAB 20;PR
875 PRINT TAB 3;"[inv >] ASSETS";TAB 20;X+V+S+C+CD+ST+MA+PR
880 PRINT S$
885 PRINT TAB 3;"MORTGAGE";TAB 20;MG
890 PRINT TAB 3;"INS. LOAN";TAB 20;L
893 PRINT TAB 3;"[inv >] LIABILITIES"TAB 20;MG+L
894 PRINT S$
896 PRINT TAB 3;"[inv >] NET WORTH";TAB 20;(X+V+S+C+CD+ST+MA+PR)-(MG+L)
898 PRINT S$
900 PRINT "ENTER ""C"" TO RETURN TO START."
910 STOP
920 GOTO 5
990 REM *EXIT PROGRAM INCLUDING SAVE*
1000 PRINT "YOU HAVE INDICATED YOU WISH TO EXIT THIS PROGRAM."
1005 PRINT
1010 PRINT "IF YOU HAVE MADE ANY CHANGES"
1015 PRINT
1020 PRINT "[g6][g6][g6][g6][g6][g6][g6][g6][g6][g6][g6][g6][g6][g6][g6][g6][g6][g6][g6][g6][g6][g6][g6][g6][g6][g6][g6][g6][g6][g6][g6]"
1025 PRINT "[g5]DO NOT FORGET TO RE-LOAD TAPE[g8]"
1030 PRINT "[g7][g7][g7][g7][g7][g7][g7][g7][g7][g7][g7][g7][g7][g7][g7][g7][g7][g7][g7][g7][g7][g7][g7][g7][g7][g7][g7][g7][g7][g7][g7]"
1040 PRINT
1050 PRINT "TO SAVE THIS PROGRAM AS CHANGED PREPARE THE TAPE RECORDER, BEGINRECORDING, AND TYPE ""C""."
1060 STOP
1070 SAVE "MONEY MANAGE[inv R]"
1080 GOTO 5
1090 STOP
1690 REM *2-YR EXPENSE GRAPH*
1695 REM AFTER RUNNING 1700, DELETE 1700,1720,1740
1696 REM LAST YEARS MONTHLY EXPENSES ARE ENTERED WITH LET STATEMENTS-R(1) TO R(23)(EVERY ALTERNATE NUMBER)
1700 DIM R(24)
1720 FOR I=1 TO 20
1740 PRINT I;" ";
2000 CLS
2001 PRINT AT 8,0;S$
2002 PRINT "IT WILL TAKE A COUPLE OF MINUTESTO PREPARE GRAPH...TAKE A BREAK."
2003 PRINT T$
2004 PAUSE 200
2005 IF D$="JAN" THEN LET G=2
2010 IF D$="FEB" THEN LET G=4
2015 IF D$="MAR" THEN LET G=6
2020 IF D$="APR" THEN LET G=8
2025 IF D$="MAY" THEN LET G=10
2030 IF D$="JUN" THEN LET G=12
2035 IF D$="JUL" THEN LET G=14
2040 IF D$="AUG" THEN LET G=16
2045 IF D$="SEP" THEN LET G=18
2050 IF D$="OCT" THEN LET G=20
2055 IF D$="NOV" THEN LET G=22
2060 IF D$="DEC" THEN LET G=24
2065 FAST
2070 LET Q=MT
2080 LET R(G)=Q
2500 CLS
2510 FOR I=15 TO 0 STEP -1
2520 PRINT AT ABS I-15,I<5;I*2;
2530 FOR U=1 TO 24
2540 IF NOT R(U) THEN GOTO 2600
2550 LET Y=R(U)+-I*200
2560 IF Y<-25 THEN PRINT " ";
2561 IF U=1 THEN GOTO 2585
2562 IF U=3 THEN GOTO 2585
2563 IF U=5 THEN GOTO 2585
2564 IF U=7 THEN GOTO 2585
2565 IF U=9 THEN GOTO 2585
2566 IF U=11 THEN GOTO 2585
2567 IF U=13 THEN GOTO 2585
2568 IF U=15 THEN GOTO 2585
2569 IF U=17 THEN GOTO 2585
2570 IF U=19 THEN GOTO 2585
2571 IF U=21 THEN GOTO 2585
2572 IF U=23 THEN GOTO 2585
2575 IF Y>-26 AND Y<25 THEN PRINT "[g6]";
2580 IF Y>24 THEN PRINT "█";
2582 NEXT U
2585 IF Y>-26 AND Y<25 THEN PRINT "[gD]";
2588 IF Y>24 THEN PRINT "▒";
2590 NEXT U
2600 PRINT
2610 NEXT I
2620 PRINT AT 16,0;"81J F M A M J J A S O N D"
2630 PRINT AT 17,0;"82 J F M A M J J A S O N D"
2635 PRINT AT 19,7;"EXPENSE 1981-1982"
2638 PRINT AT 21,6;"(TYPE ""C"" TO RETURN)"
2640 STOP
2650 GOTO 5
3000 CLS
3005 REM *BUDGET*
3006 REM AFTER ENTERING BUDGET, DELETE 3100,3105,3120,3135
3010 PRINT TAB 12;"[g6][g6][g6][g6][g6][g6][g6][g6]"
3015 PRINT TAB 12;"[g5]BUDGET[g8]"
3020 PRINT TAB 12;"[g7][g7][g7][g7][g7][g7][g7][g7]"
3025 PRINT T$
3030 PRINT "EXPENSES";TAB 16;"TO DATE";TAB 25;"BUDGET"
3040 PRINT S$
3100 DIM P(17)
3105 LET BT=0
3110 FOR N=1 TO 17
3115 PRINT I$(N);TAB 16;T(N);
3120 INPUT P(N)
3130 PRINT TAB 25;P(N)
3135 LET BT=BT+P(N)
3140 NEXT N
3160 PRINT F$
3170 PRINT "TOTALS";TAB 16;TT;TAB 25;BT
3175 PRINT T$
3176 PRINT
3180 PRINT "ENTER ""C"" TO RETURN TO START."
3185 STOP
3190 GOTO 5
3580 REM *INCOME/EXPENSE GRAPH*
3590 REM DELETE 3600,3610,3620 AFTER RUNNING 3600
3600 DIM W(24)
3610 FOR I=1 TO 20
3620 PRINT I;" ";
4000 CLS
4001 PRINT AT 6,0;S$
4002 PRINT "IT WILL TAKE A MINUTE OR TWO TO PREPARE GRAPH......SO HAVE A CUPOF COFFEE."
4003 PRINT T$
4004 PAUSE 200
4005 IF M$="JAN" THEN LET D=2
4010 IF M$="FEB" THEN LET D=4
4015 IF M$="MAR" THEN LET D=6
4020 IF M$="APR" THEN LET D=8
4030 IF M$="MAY" THEN LET D=10
4035 IF M$="JUN" THEN LET D=12
4040 IF M$="JUL" THEN LET D=14
4045 IF M$="AUG" THEN LET D=16
4050 IF M$="SEP" THEN LET D=18
4055 IF M$="OCT" THEN LET D=20
4060 IF M$="NOV" THEN LET D=22
4062 IF M$="DEC" THEN LET D=24
4063 FAST
4065 LET O=MT
4068 LET Z=HT
4070 LET W(D-1)=Z
4075 GOSUB 4500
4080 LET W(D)=O
4500 CLS
4510 FOR I=15 TO 0 STEP -1
4520 PRINT AT ABS I-15,I<5;I*2;
4530 FOR U=1 TO 24
4540 IF NOT W(U) THEN GOTO 4600
4550 LET Y=W(U)+-I*200
4560 IF Y<-25 THEN PRINT " ";
4561 IF U=1 THEN GOTO 4585
4562 IF U=3 THEN GOTO 4585
4563 IF U=5 THEN GOTO 4585
4564 IF U=7 THEN GOTO 4585
4565 IF U=9 THEN GOTO 4585
4566 IF U=11 THEN GOTO 4585
4567 IF U=13 THEN GOTO 4585
4568 IF U=15 THEN GOTO 4585
4569 IF U=17 THEN GOTO 4585
4570 IF U=19 THEN GOTO 4585
4571 IF U=21 THEN GOTO 4585
4572 IF U=23 THEN GOTO 4585
4575 IF Y>-26 AND Y<25 THEN PRINT "[g6]";
4580 IF Y>24 THEN PRINT "[g8]";
4582 NEXT U
4585 IF Y>-26 AND Y<25 THEN PRINT "[gD]";
4588 IF Y>24 THEN PRINT "▒";
4590 NEXT U
4600 PRINT
4610 NEXT I
5020 PRINT AT 16,2,"IEIEIEIEIEIEIEIEIEIEIEIE"
5030 PRINT AT 17,2;" J F M A M J J A S O N D"
5040 PRINT AT 19,5;"INCOME AND EXPENSE 1982"
5050 PRINT AT 21,6;"(TYPE ""G5"" TO RETURN)"
5100 RETURN
6000 CLS
6005 REM *CASH FLOW STATEMENT*
6010 PRINT TAB 10;"[g6][g6][g6][g6][g6][g6][g6][g6][g6][g6][g6]"
6020 PRINT TAB 10;"[g5]CASH FLOW[g8]"
6030 PRINT TAB 10;"[g7][g7][g7][g7][g7][g7][g7][g7][g7][g7][g7]"
6040 PRINT
6050 PRINT T$
6070 PRINT TAB 16;M$;TAB 25;"YEAR"
6080 PRINT S$
6085 PRINT
6090 PRINT "INCOME:";TAB 16;HT;TAB 24;FT
6100 PRINT
6110 PRINT "EXPENSE:";TAB 16;MT;TAB 24;TT
6120 PRINT
6122 PRINT "LOAN PRIN. PD.:";TAB 16;PPT;TAB 24;PPX
6125 PRINT
6130 PRINT F$
6140 PRINT
6150 PRINT "NET:";TAB 16;HT-MT-PPT;TAB 24;INT ((FT-TT-PPX)*100+.5)/100
6160 PRINT T$
6170 PRINT
6180 PRINT " TYPE ""C"" TO RETURN TO START."
6190 STOP
6200 GOTO 5
6500 CLS
6510 REM *LOAN REPAYMENTS AND TRANSFERS BETWEEN ACCOUNTS*
6550 PRINT "WHICH CATEGORY DO YOU WANT? ENTER ""1"" OR ""2""."
6560 PRINT
6570 PRINT " 1)PRINCIPAL PAYMENTS ON LOANS"
6575 PRINT
6580 PRINT " 2)TRANSFERS BETWEEN ACCOUNTS"
6590 INPUT CA
6600 IF CA<>1 THEN GOTO 7000
6602 CLS
6605 PRINT "WHICH LOAN ARE YOU PAYING ON? ENTER ""1"" OR ""2""."
6606 PRINT
6608 PRINT TAB 5;"1)MORTGAGE"
6609 PRINT
6610 PRINT TAB 5;"2)INSURANCE LOAN"
6612 INPUT ZQ
6615 CLS
6618 IF ZQ=2 THEN GOTO 6625
6619 PRINT T$
6620 PRINT "MORTGAGE:"
6621 PRINT S$
6622 GOTO 6630
6625 PRINT T$
6626 PRINT "INSURANCE LOAN:"
6627 PRINT S$
6630 PRINT
6631 PRINT "(DO NOT INCLUDE INTEREST HERE - IT SHOULD BE ENTERED WITH CUR- RENT EXPENSES."
6635 PRINT
6640 PRINT "PRINCIPAL PAYMENT = ";
6650 INPUT PP
6655 LET PPT=PPT+PP
6656 LET PPX=PPX+PP
6660 PRINT "$";PP
6670 PRINT "PAID FROM WHICH ACCOUNT? ";
6680 INPUT Y$
6690 PRINT Y$
6695 IF ZQ=2 THEN LET L=L-PP
6700 IF ZQ=1 THEN LET MG=MG-PP
6710 IF Y$="X" THEN LET X=X-PP
6720 IF Y$="S" THEN LET S=S-PP
6730 IF Y$="V" THEN LET V=V-PP
6740 PRINT
6745 PRINT T$
6750 IF ZQ=1 THEN PRINT "NEW MORTGAGE BALANCE: $";MG
6760 IF ZQ=2 THEN PRINT "NEW INS. BALANCE: $";L
6770 PRINT S$
6900 PRINT "TYPE ""1"" IF YOU WISH TO TRANSFERBETWEEN ACCOUNTS, ""2"" TO RETURN TO START, ""3"" TO ENTER ANOTHER LOAN PAYMENT, ""4"" TO SEE ACCOUNTBALANCES."
6910 INPUT KK
6915 CLS
6920 IF KK=2 THEN GOTO 5
6930 IF KK=3 THEN GOTO 6602
6940 IF KK=4 THEN GOTO 800
7000 CLS
7005 PRINT S$
7010 PRINT "AMT. YOU WISH TO TRANSFER: $";
7015 INPUT WE
7020 PRINT WE
7025 PRINT
7030 PRINT "FROM WHICH ACCOUNT? ";
7040 INPUT W$
7050 PRINT W$
7060 PRINT
7070 PRINT "TO WHICH ACCOUNT? ";
7080 INPUT V$
7090 PRINT V$
7100 IF W$="S" THEN LET S=S-WE
7110 IF W$="MA" THEN LET MA=MA-WE
7120 IF W$="V" THEN LET V=V-WE
7130 IF W$="X" THEN LET X=X-WE
7140 IF W$="CD" THEN LET CD=CD-WE
7150 IF W$="ST" THEN LET ST=ST-WE
7160 IF W$="C" THEN LET C=C-WE
7170 IF V$="S" THEN LET S=S+WE
7180 IF V$="MA" THEN LET MA=MA+WE
7190 IF V$="V" THEN LET V=V+WE
7200 IF V$="X" THEN LET X=X+WE
7210 IF V$="CD" THEN LET CD=CD+WE
7220 IF V$="ST" THEN LET ST=ST+WE
7230 IF V$="C" THEN LET C=C+WE
7235 PRINT T$
7240 PRINT
7250 PRINT "TYPE ""1"" IF YOU WISH TO MAKE ANOTHER TRANSFER, ""2"" IF YOU WISH TO RETURN TO START, ""3"" TO SEE REVISED ACCOUNTS."
7260 INPUT JE
7265 CLS
7270 IF JE=1 THEN GOTO 7000
7275 IF JE=3 THEN GOTO 800
7290 GOTO 5
7500 CLS
7505 REM *MONTH BY MONTH INCOME/EXPENSE, DIFFERENCE, AND MEANS*
7510 PRINT T$
7520 PRINT "▒▒ MONTHLY INCOME AND EXPENSE ▒▒"
7530 PRINT S$
7540 PRINT T$
7550 PRINT "MONTH";TAB 7;"INCOME";TAB 14;"EXPENSE";TAB 22;"DIFFERENCE"
7560 PRINT S$
7570 LET H$="JANFEBMARAPRMAYJUNJULAUGSEPOCTNOVDEC"
7571 LET HH=0
7572 LET II=0
7573 LET EE=0
7575 LET MO=3
7576 LET MM=1
7580 FOR B=1 TO 23 STEP 2
7585 LET W(B)=INT (W(B)+.5)
7586 LET W(B+1)=INT (W(B+1)+.5)
7600 PRINT H$(MM TO MO);TAB 8;W(B);TAB 15;W(B+1);TAB 23;W(B)-W(B+1)
7605 LET II=II+W(B)
7606 LET EE=EE+W(B+1)
7610 LET MO=MO+3
7620 LET MM=MM+3
7625 IF W(B)>0 THEN LET HH=HH+1
7630 NEXT B
7640 PRINT F$
7650 PRINT "TOTALS";TAB 8;II;TAB 15;EE;TAB 23;II-EE
7660 PRINT T$
7670 PRINT "ENTER ""C"" TO INCLUDE MORTGAGE."
7680 STOP
7690 CLS
7700 PRINT T$
7710 PRINT TAB 7;"INCOME";TAB 14;"EXPENSE";TAB 22;"DIFFERENCE"
7720 PRINT S$
7725 PRINT
7730 PRINT TAB 8;II;TAB 15;EE;TAB 23;II-EE
7735 PRINT F$
7740 LET PP=INT (MGX-MG)
7750 PRINT "PRIN.";TAB 0;"PMTS.";TAB 15;PP
7760 PRINT F$
7770 PRINT "YEAR";TAB 8;II;TAB 15;EE+PP;TAB 23;II-EE-PP
7780 PRINT
7790 PRINT S$
7791 LET BB=0
7792 FOR B=1 TO 24 STEP 2
7793 LET AA=R(B)
7794 LET BB=BB+AA
7795 NEXT B
7800 PRINT "MEAN MONTHLY INCOME: $";INT ((II/HH)*10**2+.5)/10**2
7810 PRINT "MEAN MONTHLY EXPENSE**: $";INT ((EE/HH)*10**2+.5)/10**2
7816 PRINT "MEAN EXPENSE LAST YR**: $";INT ((BB/12)*10**2+.5)/10**2
7818 PRINT "(**EXCLUDING MORTGAGE)"
7820 PRINT S$
7830 PRINT "ENTER ""C"" TO RETURN TO START."
7840 STOP
7850 GOTO 5

Line Notes:

7: S
11: S
15: Inverse: MONEY MANAGER
70: Letter O
210: Once you have entered your income categories, delete statements indicated in REM.
223: 6
225: 5, 8
230: 7
255: Your income categories
464: IF, LET statements credit the income to the proper account.
486: Prints a running total of both monthly and year-to-date income.
505: Once you have entered your expense categories, delete statements indicated in REM.
512: 6
515: 5, 8
518: 7
722: IF, LET statements debit the appropriate account.
810: Initialize each asset and liability balance with LET statements.
827: 5, 8
828: 7
865: Change titles of assets and liabilities to suit your own needs.
875: Inverse > on M
893: Inverse > on M
896: Inverse spaces; > on M
1020: 6
1025: 5, 8
1030: 7
1695: These 3 statements set up your graph but should be deleted after running. R(1) would be Jan. expenses last year; R(3) Feb., etc. These will only appear on the graph when you enter each month this year, but they will be in memory waiting.
2575: 6
2580: Inverse space
2588: A
2620: 81 represents last year (change to suit your needs); space between each letter representing a month; 82 represents this year.
3006: Delete statements in REM after entering all your budget items.
3010: 6
3015: 5, 8
3020: 7
3590: Delete statements indicated in REM after running 3600.
4065: Letter O
4080: Letter O
4570: 3
4575: 6
4580: 8
4585: D
4588: A
5030: Space between each letter.
6010: 6
6020: 5, 8
6608: Change loan titles to suit your own needs.
7520: A (2), A (2)

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