home *** CD-ROM | disk | FTP | other *** search
- 0 print"[147]":poke53281,13:poke53280,7:dimdn(50):dimco(50)
- 1 dimpe$(200):dimcn(200):dimcd$(200):dimcp$(200):dimca(200):dimm$(14)
- 2 print"[144]":print:print" please enter current date":print
- 3 print" <mm-dd-yy>[146] ";da$
- 4 print:input" ";da$:iflen(da$)<>8thenprint"watch format":goto3
- 6 bb$="****************************************"
- 7 vv$="========================================"
- 8 ff$="========================================"
- 9 yy$=vv$+ff$
- 10 poke53281,7:poke53280,7:print"[147]":forp=1to3:print:next
- 11 poke53282,16:poke53283,15:poke53284,2:poke53265,peek(53265)or64
- 20 printtab(8);"[144]1. add check information":print
- 30 printtab(8);"[144]2. examine check file ":print
- 40 printtab(8);"[144]3. menu of print options":print
- 50 printtab(8);"[144]4. change information ":print
- 60 printtab(8);"[144]5. initialize options ":print
- 65 printtab(8);"[144]6. balance check book ":print
- 70 printtab(8);"[144]7. graph comparsions ":print
- 75 printtab(8);"[144]8. end program ":print
- 80 printtab(8);"[144]please select one "
- 85 getx$:ifx$=""then85
- 86 ifx$<"1"orx$>"8"thenprint"enter a number 1-7":goto85
- 90 x=val(x$):onxgoto30100,30100,31300,30100,20000,6000,30100,32000
- 100 s$="":k=0:c=0:h=0:q=0:t=0:x=0:a=0:gt=0:print"[147]":goto10
- 105 rem**********************************
- 110 rem**written by glenn lumpkins
- 140 rem**********************************
- 6000 rem*** routine to balance check book***
- 6001 poke53281,7:poke53280,9
- 6010 :print"[147]":print" enter bank's ending balance"
- 6015 print:input" $ ";be
- 6020 print:print" how many deposits not listed":print
- 6025 input" $ ";d$:print"[147]":d=val(d$)
- 6030 ifd$=""ord$="0"then6080
- 6040 fori=1tod
- 6050 print" enter deposit not listed":print:input" $ ";dn(i)
- 6055 print"[147]"
- 6060 dp=dp+dn(i):next
- 6080 print" how many checks outstanding"
- 6085 print:input" $ ";cn$:print"[147]":cn=val(cn$)
- 6090 ifcn$="0"orcn$=""then6130
- 6100 fori=1tocn
- 6110 print" enter amount of outstanding check"
- 6115 print:input"$ ";co(i):print"[147]"
- 6120 ac=ac+co(i):next
- 6130 print" any other charges such as:"
- 6135 print:print" automatic deductions":print
- 6137 print" service charges"
- 6140 print:print" <y/n>[146]"
- 6142 getas$:ifas$=""then6142
- 6145 ifas$="n"then6230
- 6150 ifas$="y"then6200
- 6155 ifas$<>"n"oras$<>"y"then6140
- 6200 print"[147]":print" enter in total amount of charges"
- 6220 print:input" $ ";oc
- 6230 ba=(be+dp)-(ac+oc)
- 6240 print"[147]":print:print" enter your checkbook balance"
- 6250 print:input" $ ";yb:print"[147]"
- 6255 ifyb=bathen6300
- 6260 ifba>0thenprint" your balance should be":print
- 6262 bn$=str$(ba+.001):bn$=left$(bn$,len(bn$)-1)
- 6265 ifba<0thenprint" your balance should be":print
- 6266 ifba>0thenprint" $";bn$:print:goto6280
- 6270 b$=str$(ba-.001):b$=left$(b$,len(b$)-1):print" $";b$:print
- 6280 ifba<ybthenbx=yb-ba:print:print" you are over by"
- 6285 bc$=str$(bx+.001):bc$=left$(bc$,len(bc$)-1)
- 6288 ifba<ybthen:print:print" [160]$";bc$:goto7000
- 6290 ifba>ybthenax=ba-yb:print:print" you are under by"
- 6295 ay$=str$(ax+.001):ay$=left$(ay$,len(ay$)-1)
- 6297 ifba>ybthenprint:print" $";ay$
- 6300 ifba=ybthenprint:print"[147]":print"you are in balance--no adjustment needed"
- 7000 print:print:print:print" press any key to continue"
- 7010 getp$:ifp$=""then7010
- 7012 ba=0:yb=0:ac=0:dp=0
- 7020 goto100
- 10000 rem***routine for change***
- 10001 poke53281,1:poke53280,8
- 10010 print"[147]":open5,8,5,"0:"+z$+",r"
- 10015 print" one moment reading ";z$
- 10020 fori=1to199:c=i
- 10030 input#5,cn(i),cd$(i),pe$(i),cp$(i),ca(i)
- 10040 ifcn(i)=9999thenclose5:goto10060
- 10050 next
- 10060 print"[147]":printtab(11);z$:print
- 10065 printbb$
- 10070 print"r#";"[146] ";"ck no.";"[146] ";"date";"[146] ";"payee":print
- 10071 ifk=1then10100
- 10090 fori=1toc:k=k+1
- 10100 printi;tab(4)cn(i);tab(11)cd$(i);tab(21)pe$(i)
- 10101 v$=str$(ca(i)+.001):v$=left$(v$,len(v$)-1)
- 10102 print"purpose[218][146]";tab(11)cp$(i)
- 10106 print"amount [218][146]";tab(11)"$";v$:print
- 10120 ifk=4thenprint:print" continue paging <y/n>[146]"
- 10121 ifk=4thengetss$:ifss$=""then10121
- 10125 ifk>4thenk=1:goto10060
- 10135 ifss$="n"thengoto10150
- 10140 next
- 10150 print:input"change which record no.";rn
- 10160 print"[147]":print"record number ";rn:print
- 10170 print"1. check number ";cn(rn):print
- 10171 print"2. check date[160][160] ";cd$(rn):print
- 10172 print"3. check payee ";pe$(rn):print
- 10174 print"4. check purpose ";cp$(rn):print
- 10176 print"5. check amount ";ca(rn):print
- 10177 print"6. return to menu ":print
- 10200 print:print"change which line"
- 10201 getci$:ifci$=""then10201
- 10202 ci=val(ci$):ifci<1orci>6thenprint"enter a number 1-6":goto10201
- 10205 print"[147]":forg=1to10:print:nextg:printtab(7);z$;" check"
- 10210 ifci=1thenprint"old check number ";cn(rn):input"new check number";cn(rn)
- 10219 ifci=6thenprint"[147]":goto100
- 10220 ifci=2thenprint"old check date ";cd$(rn):input"new check date";cd$(rn)
- 10225 iflen(cd$(rn))>8thenprint"watch format":print:goto10220
- 10230 ifci=3thenprint"old check payee ";pe$(rn):input"new check payee";pe$(rn)
- 10235 iflen(pe$(rn))>17thenprint"17 characters max. please":print:goto10230
- 10240 ifci=4thenprint"old check purpose ";cp$(rn)
- 10241 ifci=4theninput"new check purpose ";cp$(rn)
- 10245 iflen(cp$(rn))>30thenprint"30 characters max. please":print:goto10240
- 10250 ifci=5thenprint"old check amount "ca(rn):input"new check amount";ca(rn)
- 10252 print:print"change another line <y/n>[146]"
- 10253 getac$:ifac$=""then10253
- 10255 ifac$="n"thengoto10260
- 10256 ifac$="y"thengoto10160
- 10260 ifx=4thenopen5,8,5,"@0:"+z$+",w"
- 10270 fori=1toc
- 10280 print#5,cn(i):print#5,cd$(i):print#5,pe$(i):print#5,cp$(i):print#5,ca(i)
- 10290 next:i=c+1:cn(i)=999:cd$(i)="date":pe$(i)="eof":cp$(i)="xxxx":ca(i)=9999
- 10300 print#5,cn(i):print#5,cd$(i):print#5,pe$(i):print#5,cp$(i):print#5,ca(i)
- 10310 close5:goto100
- 19999 rem***routine for initializing**
- 20000 print"[147]":forg=1to8:print:next
- 20001 printtab(6);"1. initialize with information":print
- 20002 printtab(6);"2. initialize one file only ":print
- 20003 printtab(6);"3. auto initialize all files ":print
- 20004 printtab(6);"4. return to menu ":print
- 20005 printtab(6);"please select one "
- 20006 getq$:ifq$=""then20006
- 20007 q=val(q$):ifq<1orq>4then20006
- 20010 ifq=1thenh=0:c=0:goto30100
- 20025 ifq=4thengoto100
- 20030 ifq=2thengoto30100
- 20040 print"[147]":forg=1to12:print:next:printtab(7);"initializing ";z$
- 20042 open5,8,5,"0:"+z$+",w"
- 20050 pe$(1)="eof":cn(1)=9999:cd$(1)="date":cp$(1)="xxxx":ca(1)=9999
- 20060 print#5,cn(1):print#5,cd$(1):print#5,pe$(1):print#5,cp$(1):print#5,ca(1)
- 20070 close5:ifq=2thenq=0:a=0:goto100
- 20080 ifq=3thena=a+1:goto30115
- 29999 rem***data for sub menu***
- 30000 dataselection menu,1. charge cards,2. contributions
- 30010 data3. entertainment,4. household,5. loan payments,6. medical/dental
- 30020 data7. mortgage payments,8. taxes,9. tuition,10. utilities
- 30030 data11. insurance,12. miscellaneous,13. return main menu
- 30100 print"[147]":fors=1to4:print:next
- 30105 rem**routine to select routines**
- 30110 fors=1to14:readm$(s):printtab(9);m$(s):next:restore
- 30112 print:input" please select one";a
- 30113 ifa<1ora>13then30112
- 30115 ifa=1thenz$="charge cards"
- 30117 ifa=2thenz$="contributions"
- 30119 ifa=3thenz$="entertainment"
- 30120 ifa=4thenz$="household"
- 30122 ifa=5thenz$="loan payments"
- 30124 ifa=6thenz$="medical/dental"
- 30126 ifa=7thenz$="mortgage payments"
- 30128 ifa=8thenz$="taxes"
- 30130 ifa=9thenz$="tuition"
- 30132 ifa=10thenz$="utilities"
- 30134 ifa=11thenz$="insurance"
- 30136 ifa=12thenz$="miscellaneous"
- 30137 ifa=13thenopen3,4:goto31393
- 30138 ifq=2thengoto20040
- 30139 ifq=3thengoto20040
- 30140 ifx=1thengoto31000
- 30145 ifx=2thengoto31200
- 30150 ifx=4thengoto10000
- 30155 ifx=3thengoto31305
- 30158 ifx=7thengoto35000
- 30160 ifh=2thengoto31335
- 30170 ifh=1then31450
- 30180 goto31070
- 31000 rem**routine to read--load array--add info***
- 31001 poke53281,12:poke53280,10:print"[147]":print" one moment reading "z$
- 31010 open5,8,5,"0:"+z$+",r"
- 31020 fori=1to199:c=i
- 31030 input#5,cn(i),cd$(i),pe$(i),cp$(i),ca(i)
- 31040 ifcn(i)=9999thenclose5:goto31055
- 31050 next
- 31055 c=c-1
- 31070 print"[147]":c=c+1:ifx=5thenprint"initializing ";z$
- 31071 print:print:ifx=1then print"information for ";z$:print
- 31075 input"enter check number ";cn(c):print
- 31080 input"enter date <mm-dd-yy>";cd$(c):print
- 31085 iflen(cd$(c))<>8thenprint"watch format":goto31080
- 31090 input"enter payee ";pe$(c):print
- 31095 iflen(pe$(c))>17thenprint"17 characters max. please":goto31090
- 31100 input"enter purpose ";cp$(c):print
- 31105 iflen(cp$(c))>30thenprint"30 characters max. please":goto31100
- 31110 input"enter check amount ";ca(c):print
- 31115 print"is this correct <y/n/r>[146]":print
- 31116 getr$:ifr$=""then31116
- 31117 ifr$="n"then31075
- 31118 ifr$="r"thengoto100
- 31120 print"another ";z$;" check <y/n>[146] "
- 31130 getan$:ifan$=""then31130
- 31140 ifan$="y"then31070
- 31142 ifx=5thenopen5,8,5,"0:"+z$+",w":goto31150
- 31145 open5,8,5,"@0:"+z$+",w"
- 31150 fori=1toc
- 31160 print#5,cn(i):print#5,cd$(i):print#5,pe$(i):print#5,cp$(i):print#5,ca(i)
- 31170 next:i=c+1:pe$(i)="eof":cn(i)=9999:cd$(i)="date":cp$(i)="xxxx":ca(i)=9999
- 31180 print#5,cn(i):print#5,cd$(i):print#5,pe$(i):print#5,cp$(i):print#5,ca(i)
- 31182 close5:goto100
- 31200 rem***routine to examine files***
- 31201 poke53281,7:poke53280,14
- 31210 open5,8,5,"0:"+z$+",r":print"[147]":print" one moment reading ";z$
- 31215 fori=1to199:c=i
- 31220 input#5,cn(i),cd$(i),pe$(i),cp$(i),ca(i)
- 31225 ifcn(i)=9999thenclose5:goto31232
- 31230 next
- 31232 print"[147]":printtab(11);z$:print
- 31233 printbb$
- 31235 print"ck no.";"[146] ";" date ";"[146] ";" payee ":print
- 31237 ifk=1thengoto31242
- 31240 fori=1toc-1:k=k+1
- 31242 v$=str$(ca(i)+.001):v$=left$(v$,len(v$)-1)
- 31245 printcn(i),cd$(i)," ";pe$(i)
- 31246 print"purpose[218][146]",cp$(i)
- 31247 print"amount [218][146]","$";v$:print
- 31250 ifk=4thenprint:print" continue paging <y/n>[146]"
- 31251 ifk=4thengets$:ifs$=""then31251
- 31253 ifk>4thenk=1:goto31232
- 31255 ifs$="n"thengoto100
- 31260 next
- 31269 print:print" press any key to continue"
- 31270 getct$:ifct$=""then31270
- 31271 goto100
- 31300 print"[147]":forp=1to8:print:nextp:poke53281,3:poke53280,10
- 31305 printtab(9);"print options ":print:printtab(9);"1. one check file "
- 31307 print:printtab(9)"2. all check files"
- 31308 print:printtab(9);"3. return to menu ":print
- 31310 printtab(9);"please select one "
- 31312 geth$:ifh$=""then31312
- 31313 ifh$<"1"orh$>"3"thenh$="":goto31310
- 31314 ifh$="2"thenprint"[147]":print" are you sure you want all files":print
- 31315 ifh$="2"theninput" <y/n/r>[146]";ic$
- 31316 ific$="n"then31300
- 31317 ific$="r"then100
- 31320 h=val(h$):ifh<1orh>3then31315
- 31331 a=0:t=0:x=0:c=0:q=0:gt=0:print"[147]"
- 31332 ifh=2thena=a+1:goto30115
- 31333 ifh=1thengoto30100
- 31334 ifh=3thenprint"[147]":goto100
- 31335 rem**start of print all files**
- 31336 open5,8,5,"0:"+z$+",r"
- 31338 ifh=2thenprinttab(7);"printing ";z$;" file":print
- 31340 fori=1to199:c=i
- 31345 input#5,cn(i),cd$(i),pe$(i),cp$(i),ca(i)
- 31350 ifcn(i)=9999thenclose5:goto31368
- 31360 t=t+ca(i)
- 31365 next
- 31366 rem**routine to print all files**
- 31368 c=c-1:gt=gt+t:gt$=str$(gt+.001):gt$=left$(gt$,len(gt$)-1)
- 31369 ifcn(1)=9999thenprinttab(7);"no entries for ";z$:close5:print:goto31332
- 31370 open3,4:print#3,chr$(16)chr$(51)chr$(51);z$
- 31373 cc=len(z$):uu$=left$(bb$,cc):print#3,chr$(16)chr$(51)chr$(51);uu$
- 31374 print#3,chr$(10):print#3,yy$:print#3,chr$(16)chr$(48)chr$(49)"check #";
- 31375 print#3,chr$(16)chr$(49)chr$(50)"date";chr$(16)chr$(50)chr$(49)"[199]";
- 31376 print#3,chr$(16)chr$(50)chr$(56)"payee";chr$(16)chr$(51)chr$(56)"[200]";
- 31377 print#3,chr$(16)chr$(52)chr$(49)"[199]";chr$(16)chr$(53)chr$(50)"purpose";
- 31378 print#3,chr$(16)chr$(55)chr$(48)"[200]";chr$(16)chr$(55)chr$(52)"amount"
- 31379 print#3,yy$
- 31380 fori=1toc
- 31382 print#3,chr$(16)chr$(48)chr$(50);cn(i);chr$(16)chr$(49)chr$(48);cd$(i);
- 31384 print#3,chr$(16)chr$(50)chr$(49);pe$(i);chr$(16)chr$(52)chr$(49);cp$(i);
- 31385 i$=str$(int(ca(i)))+"."+right$(str$(ca(i)*100),2)
- 31386 print#3,chr$(16)chr$(55)chr$(49)"$";""tab(8-len(i$));i$
- 31387 t$=str$(t+.001):t$=left$(t$,len(t$)-1)
- 31392 ifi=cthenprint#3:print#3,"total for ";z$;" $";t$:t=0:print#3:print#3
- 31393 ifa=13thenprint#3,"year to date ";da$;" total";" $";gt$:print#3:print#3
- 31394 ifa=13thenclose3:goto100
- 31395 ifi=cthenclose3:goto31332
- 31396 next
- 31450 rem**routine to print one file**
- 31460 open5,8,5,"0:"+z$+",r"
- 31461 ifh=1thenprint"[147]":forg=1to10:print:next:printtab(7);"printing ";z$;" file"
- 31470 fori=1to199:c=i
- 31480 input#5,cn(i),cd$(i),pe$(i),cp$(i),ca(i)
- 31490 ifcn(i)=9999thenclose5:goto31510
- 31495 t=t+ca(i)
- 31500 next
- 31510 c=c-1:t$=str$(t +.001):t$=left$(t$,len(t$)-1)
- 31520 open3,4:print#3,chr$(16)chr$(51)chr$(51);z$
- 31522 cc=len(z$):uu$=left$(bb$,cc):print#3,chr$(16)chr$(51)chr$(51);uu$
- 31523 print#3,chr$(10):print#3,yy$:print#3,chr$(16)chr$(48)chr$(49)"check #";
- 31524 print#3,chr$(16)chr$(49)chr$(50)"date";chr$(16)chr$(50)chr$(49)"[199]";
- 31525 print#3,chr$(16)chr$(50)chr$(56)"payee";chr$(16)chr$(51)chr$(56)"[200]";
- 31526 print#3,chr$(16)chr$(52)chr$(49)"[199]";chr$(16)chr$(53)chr$(50)"purpose";
- 31527 print#3,chr$(16)chr$(55)chr$(48)"[200]";chr$(16)chr$(55)chr$(52)"amount"
- 31545 print#3,yy$
- 31550 fori=1toc
- 31560 print#3,chr$(16)chr$(48)chr$(50);cn(i);chr$(16)chr$(49)chr$(48);cd$(i);
- 31561 print#3,chr$(16)chr$(50)chr$(49);pe$(i);chr$(16)chr$(52)chr$(49);cp$(i);
- 31562 i$=str$(int(ca(i)))+"."+right$(str$(ca(i)*100),2)
- 31563 print#3,chr$(16)chr$(55)chr$(49)"$";""tab(8-len(i$));i$
- 31572 ifi=cthengoto31590
- 31580 next
- 31590 print#3:print#3,"total for ";z$;" $";t$:forl=1to5:print#3:next:close3
- 31595 goto100
- 32000 print"[147]":forl=1to10:print:next
- 32005 printtab(9);"it's been a pleasure":forl=1to4000:next:print"[147]":end
- 35000 rem**routine for graphs**
- 35001 print"[147]": print" do you wish a copy of the graph <y/n>[146]"
- 35002 getha$:ifha$=""then35002
- 35010 print"[147]":poke53280,7:poke53281,7:print" one moment reading "z$
- 35020 open5,8,5,"0:"+z$+",r"
- 35030 fori=1to199
- 35040 input#5,cn(i),cd$(i),pe$(i),cp$(i),ca(i)
- 35050 ifcn(i)=9999thenclose5:goto40005
- 35060 j$=left$(cd$(i),2):ifj$="01"thenj=j+ca(i)
- 35070 ifj$="02"thenf=f+ca(i)
- 35080 ifj$="03"thenm=m+ca(i)
- 35090 ifj$="04"thenap=ap+ca(i)
- 35100 ifj$="05"thenma=ma+ca(i)
- 35110 ifj$="06"thenju=ju+ca(i)
- 35120 ifj$="07"thenjl=jl+ca(i)
- 35130 ifj$="08"thenau=au+ca(i)
- 35140 ifj$="09"thensp=sp+ca(i)
- 35150 ifj$="10"thenoc=oc+ca(i)
- 35160 ifj$="11"thenno=no+ca(i)
- 35170 ifj$="12"thende=de+ca(i)
- 35180 next
- 40005 print"[147]"
- 40010 print" [194]":n=25:ifj>660thenn=50
- 40020 print"jan[171][192]";:fori=1toj/n:print" [144][146]";:next:printj;:print:n=25
- 40025 print" [194]":iff>660thenn=50
- 40030 print"feb[171][192]";:fori=1tof/n:print" [144][146]";:next:printf;:print:n=25
- 40040 print" [194]":ifm>660thenn=50
- 40050 print"mar[171][192]";:fori=1tom/n:print" [144][146]";:next:printm;:print:n=25
- 40060 print" [194]":ifap>660thenn=50
- 40070 print"apr[171][192]";:fori=1toap/n:print"[158] [144][146]";:next:printap;:print:n=25
- 40080 print" [194]":ifma>660thenn=50
- 40090 print"may[171][192]";:fori=1toma/n:print"[156] [144][146]";:next:printma;:print:n=25
- 40100 print" [194]":ifju>660thenn=50
- 40110 print"jun[171][192]";:fori=1toju/n:print"[144] [144][146]";:next:printju;:print:n=25
- 40120 print" [194]":ifjl>660thenn=50
- 40130 print"jul[171][192]";:fori=1tojl/n:print" [144][146]";:next:printjl;:print:n=25
- 40140 print" [194]":ifau>660thenn=50
- 40150 print"aug[171][192]";:fori=1toau/n:print" [144][146]";:next:printau;:print:n=25
- 40160 print" [194]":ifsp>660thenn=50
- 40170 print"sep[171][192]";:fori=1tosp/n:print" [144][146]";:next:printsp;:print:n=25
- 40180 print" [194]":ifoc>660thenn=50
- 40190 print"oct[171][192]";:fori=1tooc/n:print"[158] [144][146]";:next:printoc;:print:n=25
- 40200 print" [194]":ifno>660thenn=50
- 40210 print"nov[171][192]";:fori=1tono/n:print"[156] [144][146]";:next:printno;:print:n=25
- 40220 print" [194]":ifde>660thenn=50
- 40230 print"dec[171][192]";:fori=1tode/n:print"[144] [144][146]";:next:printde;:print:n=25
- 40235 ifha$="y"thenprint" [173][195][177][195][177][195][177][195][177][195][177][195]";z$;"[177][195][177][195][177][195][177][195][177][195][189]":goto40260
- 40240 print".......press any key to continue......"
- 40250 geta$:ifa$=""then40250
- 40260 j=0:f=0:m=0:ap=0:ma=0:ju=0:jl=0:au=0:sp=o:oc=0:no=0:de=0
- 40270 ifha$="y"then41001
- 41000 ifha$="n"thengoto100
- 41001 print"";:ss=(peek(210))*256:open3,3:open4,4
- 41002 forr=0to24:b$=""
- 41003 forc=0to39:a$=""
- 41004 ifpeek(ss+((r*40)+c))>127then:get#3,a$:b$=b$+chr$(18)+a$+chr$(146)
- 41005 ifpeek(ss+((r*40)+c))>127thengoto41100
- 41006 get#3,a$:ifa$=chr$(13)then:a$=" "
- 41007 b$=b$+a$
- 41100 nextc:print#4,b$:nextr:close4:close3:goto100
-