home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
64'er Special 68
/
64er_Magazin_Sonderheft_68_19xx_Markt__Technik_de_Side_A.d64
/
gesamt
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-10-26
|
2KB
|
69 lines
0 dima(8,12),m$(12),a$(8),e(4,12),e$(4),es(4),as(8)
1 open15,8,15,"i
2 [159]2,8,2,"gj,s,r":[132]2,gj$:[160]2
10 [153]"loadgesamtuebersicht nach jahren
12 print"einnahmen/ausgaben
13 [139]gj$[178]""[167]gj$[178]"91
14 fori=1to8:reada$(i):next:fori=1to12:readm$(i):next
16 fori=1to4:reade$(i):next:print""gj$"[145][145]
18 [133]"heutiges datum tt.mm.cmdcmdcmdcmdcmdcmdcmdcmd";sd$
20 [133]"von jahr 1991cmdcmdcmdcmdcmdcmd";j1:[139]j1[179]1900[167][138]
22 [133]"bis jahr 1991cmdcmdcmdcmdcmdcmd";j2:[139]j2[179]j1[167][138]
30 [129]j[178]j1[164]j2
32 [129]k[178]1[164]12:[129]i[178]1[164]8:a(i,k)[178].:[130]i,k
33 [129]k[178]1[164]12:[129]i[178]1[164]4:e(i,k)[178].:[130]i,k
34 e$[178][201]([196](j),4):[159]2,8,2,"ad"[170]e$[170]",s,r
35 fori=1to4:es(i)=.:next:fori=1to8:as(i)=.:next
36 input#15,f1:iff1then50
38 input#2,a:fori=1toa:input#2,a$,b,c,d$:d=val(mid$(d$,3,2))
40 a(c,d)=a(c,d)+b:next:close2
42 fori=1to12:a(8,i)=a(1,i)+a(2,i)+a(3,i)+a(4,i)+a(5,i)+a(6,i)+a(7,i):next
50 close2:open2,8,2,"ed"+e$+",s,r":input#2,a:fori=1toa
52 input#2,a$,x$,x$,b$,x$,x$,c:b=val(mid$(b$,3,2)):a=1:ifa$="x"thena=3
53 ifa$="h"thena=2
54 e(a,b)=e(a,b)+c
55 next:close2:fori=1to12:e(4,i)=e(1,i)+e(2,i)+e(3,i):next
56 fori=1to4:fork=1to12:es(i)=es(i)+e(i,k):nextk,i
57 fori=1to8:fork=1to12:as(i)=as(i)+a(i,k):nextk,i
100 print"jahr "e$"[146] wird gedruckt.":print"bitte drucker bereitmachen (taste)
102 [151]198,.:[146]198,1
110 [159]4,4
112 [152]4:[152]4,"generalverwaltung einnahmen/ausgaben
114 print#4:print#4:print#4,"jahr: "e$" stand: "sd$" rev. p1":print#4
116 forba=1to2:ba$="einnahmen":ifba=2thenba$="ausgaben
118 [152]4:[152]4:[152]4,"ueberblick ueber "ba$":
120 forps=1to2:pa=(ps-1)*6+1:pb=ps*6
130 print#4:print#4:print#4,"monat ! ";:formz=patopb:print#4,m$(mz)" ! ";:next
140 ifps=2thenprint#4,"summe !";
145 print#4
150 print#4,"========!";:fori=1to6:print#4,"=========!";:next
152 ifps=2thenprint#4,"=========!";
154 print#4:forbt=1toba*4
156 ifba=1thenprint#4,e$(bt)"!";
158 ifba=2thenprint#4,a$(bt)"!";
160 formz=patopb:a=a(bt,mz):ifba=1thena=e(bt,mz)
162 sl=9:gosub800:print#4,a$"!";:next
170 ifps=1then180
172 a=as(bt):ifba=1thena=es(bt)
174 sl=9:gosub800:print#4,a$"!";
180 print#4:ifbt<>ba*4-1then190
182 print#4,"--------!";:fori=1to6:print#4,"---------!";:next
184 ifps=2thenprint#4,"---------!";
186 print#4
190 next:next:next:dr$=" "
200 print#4:print#4:print#4:print#4,"alle betraege in dm";
202 ifj2<>jthenprint#4,dr$" forts. naechste seite";
204 print#4:print#4:print#4:print#4:close4:next
206 print"ende !!":end
800 a$=str$(a):ifa=int(a)thena$=a$+".
802 [129]fi[178]1[164][195](a$):[139][202](a$,fi,1)[178]"."[167]806
804 [130]:a$[178]a$[170]".
806 iflen(a$)-fi<>2thena$=a$+"0":goto806
808 iflen(a$)<slthena$=" "+a$:goto808
810 return
900 databuerobed,fachlit.,fahrtks.,computer,elektro.,"post ",sonstig.
902 data"summe "
904 data"januar ",februar,"maerz ","april ","mai ","juni ","juli "
906 data"august ",septbr.,oktober,novmbr.,dezmbr.
908 data"lohn/ek.","kapital.","sonstig.","summe "