home *** CD-ROM | disk | FTP | other *** search
/ Loadstar 92 / 092.d81 / scha (.txt) < prev    next >
Commodore BASIC  |  2022-08-26  |  14KB  |  442 lines

  1. 0 dv=peek(186):ifdv<8thendv=8
  2. 1 ifa=0thena=1:load"help-scha",dv,1
  3. 2 ifa=1thena=2:load"notepad",dv,1
  4. 3 poke198,0
  5. 5 dim m0$(20),m1$(20),m2$(20),m3$(20),m4$(20),m5$(20),m6$(20),m7$(20),m8$(20)
  6. 6 dimm9$(20):sp$="          ":dimw$(14)
  7. 7 dimd$(37):fori=0to37:d$(i)="0":next
  8. 8 d$(33)="100000":fl=0
  9. 10 poke53280,0:poke53281,0:ad=36864
  10. 20 readx:fori=1tox:readm0$(i):next
  11. 21 readx:fori=1tox:readm1$(i):next
  12. 22 readx:fori=1tox:readm2$(i):next
  13. 23 readx:fori=1tox:readm3$(i):next
  14. 24 readx:fori=1tox:readm4$(i):next
  15. 25 readx:fori=1tox:readm5$(i):next
  16. 26 readx:fori=1tox:readm6$(i):next
  17. 27 readx:fori=1tox:readm7$(i):next
  18. 28 readx:fori=1tox:readm8$(i):next
  19. 29 readx:fori=1tox:readm9$(i):next
  20. 30 readx:fori=1tox:readw$(i):next
  21. 31 print"";
  22. 40 sysad,"[212][160][193][160][216][160] [160][193] [195][160][195] [207] [213] [206] [212][160][193][160][206] [212]","[211]chedule [193]"
  23. 50 ifpeek(198)<>1thenend
  24. 55 sysad+15:getdv$:getme$:gethi$:gettx$
  25. 56 dv=asc(dv$):m=asc(me$)and15:h=asc(hi$)and15:tx=asc(tx$)and15
  26. 60 sysad+18:poke198,0:gosub9000
  27. 70 sysad+3,14+64,11,7,m,h,tx,m0$(1),m0$(2),m0$(3),m0$(4),m0$(5),m0$(6),m0$(7),m0$(8),m0$(9),m0$(10),m0$(11),m0$(12),m0$(13),m0$(14)
  28. 80 getk$:k$=str$(asc(k$)-48):k=val(k$)
  29. 85 ifk>3thensysad+18:poke781,21:sys59903
  30. 90 onkgoto 200,300,900,1075,2075,3075,4075,5080,6080,7075,8080,8560,700,40
  31. 95 goto70
  32. 100 :
  33. 200 gosub9300
  34. 210 ifval(w$)=0then275
  35. 220 open15,dv,15,"io":w$="scha."+w$
  36. 225 open2,dv,2,"0:"+w$+",s,r"
  37. 230 input#15,e,e$,e1,e2
  38. 234 poke214,21:print:print"                                    "
  39. 235 poke214,21:print:print"[196]isk [211]tatus:"e;e$:fori=1to2000:next
  40. 236 poke214,21:print:print"                                    "
  41. 240 ifethenclose2:close15:print"[145][198]ile [206]ot [204]oaded":fori=1to2000:next:goto275
  42. 250 fori=0to37:input#2,d$(i):next
  43. 270 close2:close15
  44. 275 gosub9000:goto70
  45. 280 :
  46. 300 gosub9300:ifval(w$)=0then375
  47. 310 w$="scha."+w$
  48. 320 open15,dv,15,"s0:"+w$:close15
  49. 330 open15,dv,15,"io"
  50. 335 open2,dv,2,"0:"+w$+",s,w"
  51. 340 input#15,e,e$,e1,e2
  52. 344 poke214,21:print:print"                                    "
  53. 345 poke214,21:print:print"[196]isk [211]tatus: "e;e$:fori=1to2000:next
  54. 346 poke214,21:print:print"                                    "
  55. 350 ifethenclose2:close15:print"[145][198]ile [206]ot [211]aved":fori=1to2000:next:goto375
  56. 355 gosub400
  57. 360 fori=0to37:print#2,d$(i):next
  58. 370 close2:close15
  59. 375 gosub9000:goto70
  60. 390 :
  61. 400 tl=val(d$(4))+val(d$(8))+val(d$(13))+val(d$(17))+val(d$(18))+val(d$(19))
  62. 405 tl=tl+val(d$(25))+val(d$(26))
  63. 410 d$(27)=str$(tl)
  64. 415 d$(28)=d$(27):d$(29)=str$(val(d$(4))+val(d$(12))+val(d$(18)))
  65. 420 tl=val(d$(28))-val(d$(29)):iftl=0thend$(37)=d$(28):return
  66. 425 d$(30)=str$(tl)
  67. 430 d$(31)=str$(int(tl*.8+.5))
  68. 435 tl=val(d$(32))-val(d$(33)):iftl<=0thend$(37)=d$(28):return
  69. 440 d$(34)=str$(tl)
  70. 445 d$(35)=str$(int(tl*.03+.5))
  71. 450 d$(36)=d$(35):ifval(d$(31))<val(d$(35))thend$(36)=d$(31)
  72. 455 d$(37)=str$(val(d$(28))-val(d$(36)))
  73. 460 return
  74. 465 :
  75. 500 sysad+6,2:sysad+9,1
  76. 505 sys50176,1,3,38,20,tx,0
  77. 510 ky=peek(197)
  78. 515 ifky=3thensys51712,1,3,38,20,7:goto505
  79. 520 ifky=6thenopen15,dv,15,"s0:"+n$:close15:sysad+12,n$,1:goto505
  80. 530 ifky=5then poke147,0:sys57812n$,dv,1:sys62631:sysad+9,1:goto505
  81. 550 sysad+6,1:sysad+9,2:return
  82. 560 :
  83. 600 sysad+6,2:poke646,tx:print"[147]"tab(14)"*** [200][197][204][208] ***"
  84. 601 poke646,m
  85. 602 print"[176][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][174]";
  86. 603 fori=1to21:print"[221]                                      [221]";:next
  87. 604 print"[173][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][189]";:poke646,tx
  88. 605 print"              [208]ress [210][197][212][213][210][206]";:poke52346,tx
  89. 606 open2,dv,2,h$+",p,r":sys51968
  90. 610 poke198,0
  91. 615 getk$:ifk$<>chr$(13)then615
  92. 620 close2:sysad+9,2:return
  93. 625 :
  94. 700 poke646,tx
  95. 701 print"[176][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][174]"
  96. 702 print"[221]        [212]otals for [211]chedule [193]        [221]"
  97. 704 print"[171][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][179]"
  98. 706 print"[221][205]edical/[196]ental [197]xp.                  [221]"
  99. 708 print"[221][212]axes                                [221]"
  100. 710 print"[221][201]nterest                             [221]"
  101. 712 print"[221][195]ontributions                        [221]"
  102. 714 print"[221][195]asualty/[212]heft                       [221]"
  103. 716 print"[221][205]oving [197]xpenses                      [221]"
  104. 717 print"[221][202]ob [197]xpenses                         [221]"
  105. 718 print"[221][205]iscellaneous                        [221]"
  106. 719 print"[221][212]otal                                [221]"
  107. 720 print"[171][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][179]"
  108. 722 print"[221][193]djusted [212][207][212][193][204]                       [221]"
  109. 724 print"[173][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][189]"
  110. 725 fori=217to242:pokei,peek(i)or128:next
  111. 726 gosub9200:gosub400
  112. 730 print""
  113. 735 printtab(28)right$(sp$+d$(4),10)
  114. 740 printtab(28)right$(sp$+d$(8),10)
  115. 745 printtab(28)right$(sp$+d$(13),10)
  116. 750 printtab(28)right$(sp$+d$(17),10)
  117. 755 printtab(28)right$(sp$+d$(18),10)
  118. 757 printtab(28)right$(sp$+d$(19),10)
  119. 760 printtab(28)right$(sp$+d$(25),10)
  120. 762 printtab(28)right$(sp$+d$(26),10)
  121. 764 printtab(28)right$(sp$+d$(27),10)
  122. 765 print
  123. 770 printtab(28)right$(sp$+d$(37),10)
  124. 775 getk$:ifk$<>chr$(13)then775
  125. 780 sysad+18:gosub9000:goto70
  126. 785 :
  127. 900 gosub9400:ifw$<>"y"thengosub9000:goto70
  128. 905 poke214,22:print:print"[208]rinting...      "
  129. 907 gosub400
  130. 910 open4,4,7
  131. 915 print#4,sp$;"[211]chedule [193] - [201]temized [196]eductions"
  132. 920 print#4,sp$;"------------------------------------"
  133. 922 fori=1to4:print#4,sp$;left$(m1$(i),27)+right$(sp$+d$(i),10):next:print#4
  134. 925 fori=1to4:print#4,sp$;left$(m2$(i),27)+right$(sp$+d$(i+4),10):next:print#4
  135. 930 fori=1to5:print#4,sp$;left$(m3$(i),27)+right$(sp$+d$(i+8),10):next:print#4
  136. 935 fori=1to4:print#4,sp$;left$(m4$(i),27)+right$(sp$+d$(i+13),10):next:print#4
  137. 955 print#4,sp$;left$(m5$(1),27)+right$(sp$+d$(18),10):print#4
  138. 960 print#4,sp$;left$(m6$(1),27)+right$(sp$+d$(19),10):print#4
  139. 965 fori=1to6:print#4,sp$;left$(m7$(i),27)+right$(sp$+d$(i+19),10):next:print#4
  140. 970 print#4,sp$;left$(m8$(1),27)+right$(sp$+d$(26),10):print#4
  141. 972 print#4,sp$;"[212]otal                      "+right$(sp$+d$(27),10)
  142. 975 print#4,sp$;"[193]djusted [212]otal             "+right$(sp$+d$(37),10)
  143. 990 print#4:close4:gosub9000:goto70
  144. 995 :
  145. 1000 sysad+3,8+64,1,8,m,h,tx,m1$(1),m1$(2),m1$(3),m1$(4),m1$(5),m1$(6),m1$(7),m1$(8)
  146. 1010 getk$:k$=str$(asc(k$)-48):k=val(k$)
  147. 1020 ifk=8thensysad+18:goto70
  148. 1025 ifk=7thenh$="med.h":gosub600:goto1000
  149. 1030 ifk=5thenn$="med.np":gosub500:goto1000
  150. 1035 ifk=6thengosub9500:goto1000
  151. 1040 ifk=3then1000
  152. 1045 ifk=4then1000
  153. 1050 gosub9100:iflen(w$)=0then1000
  154. 1055 ifk=1thend$(1)=w$
  155. 1060 ifk=2thend$(2)=w$
  156. 1065 d$(3)=str$(int(val(d$(2))*.075))
  157. 1070 d$(4)=str$(val(d$(1))-val(d$(3)))
  158. 1071 ifval(d$(4))<0thend$(4)="0"
  159. 1075 fori=1to4
  160. 1080 m1$(i)=left$(m1$(i),27)+right$(sp$+d$(i),10):next
  161. 1085 goto1000
  162. 1090 :
  163. 2000 sysad+3,8+64,1,8,m,h,tx,m2$(1),m2$(2),m2$(3),m2$(4),m2$(5),m2$(6),m2$(7),m2$(8)
  164. 2010 getk$:k$=str$(asc(k$)-48):k=val(k$)
  165. 2020 ifk=8thensysad+18:goto70
  166. 2025 ifk=7thenh$="tax.h":gosub600:goto2000
  167. 2030 ifk=5thenn$="tax.np":gosub500:goto2000
  168. 2035 ifk=6thengosub9500:goto2000
  169. 2045 ifk=4then2000
  170. 2050 gosub9100:iflen(w$)=0then2000
  171. 2055 d$(k+4)=w$:d$(8)=str$(val(d$(5))+val(d$(6))+val(d$(7)))
  172. 2075 fori=1to4
  173. 2080 m2$(i)=lef