home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
64'er Special 23
/
64er_Magazin_Sonderheft_23_19xx_Markt__Technik_de_Disk_2_of_2_Side_A.d64
/
kassofix
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-10-26
|
37KB
|
1,174 lines
5 poke808,234:printchr$(8)
10 rem *******************************
11 rem * programm zur berechnung *
12 rem * von bankgeschaeften *
13 rem * von gerhard baukelmann *
14 rem * auf der reihe 100 a *
15 rem * 4300 essen 12 *
16 rem * tel.: 0201/21 26 40 *
17 rem *******************************
18 rem kennworteingabe
20 zl=0
21 ifzl=3then sys 64738
22 if zl=2 and kw$="64'er"thengoto68
30 printchr$(147):poke53280,0:poke53281,0:poke646,5:kw$=""
40 print"fuer commi kennwort eing.:"
50 poke646,0:inputkw$
60 kn$="geld":if kw$<>kn$thenpoke646,5:print"kennwort falsch!":fori=1to2000:nexti
61 rem anzahl eingaben
62 zl=zl+1
63 if kn$<>kw$then goto 21
66 rem
68 printchr$(8):poke53280,14:poke53281,6
69 printchr$(147):printchr$(142)
70 print" moechten sie eine [146]"
71 print" farbeinstellung vornehmen? [146]"
72 print" bitte j oder n druecken! [146]"
73 poke 198,0:wait 203,63
74 get h$:
75 if h$=chr$(74)thengoto100
76 if h$=chr$(78)thenprintchr$(147):poke53280,14:poke53281,6:poke646,14:goto 900
80 goto 73
90 rem farbeinstellungen
100 printchr$(147):poke646,0
101 poke53280,13:poke53281,5
105 printchr$(147):gosub 110
106 goto 180
110 print"****************************************"
120 print"[145]* [146]*"
130 print"[145]* b i t t e f a r b e n [146]*"
140 print"[145]* [146]*"
150 print"[145]* e i n s t e l l e n ! [146]*"
160 print"[145]****************************************"
170 return
180 print"[145]* *"
185 print"[145]* *"
190 print"[145]* *"
200 print"[145]* f1 [146] rahmen [146] *"
210 print"[145]* *"
220 print"[145]* *"
221 print"[145]* f3 [146] hintergrund [146] *"
222 print"[145]* *"
223 print"[145]* *"
224 print"[145]* f5 [146] schrift [146] *"
225 print"[145]* *"
226 print"[145]* *"
227 print"[145]* f7 [146] weiter [146] *"
228 print"[145]* *"
229 print"[145]* *"
230 print"[145]****************************************"
231 rem auswahlverzweigung
232 poke 198,0:wait203,63:get h$
233 if h$=chr$(133)then goto 238
234 if h$=chr$(134)then goto 243
235 if h$=chr$(135)then goto 248
236 if h$=chr$(136)then goto 255
237 goto 232
238 rem randfarbe
239 z=z+1:ifz>15thenz=0
240 poke 53280,z
241 printchr$(147):gosub 110
242 goto180
243 rem hintergrundfarbe
244 u=u+1:if u>15thenu=0
245 poke 53281,u
246 printchr$(147):gosub 110
247 goto180
248 rem schriftfarbe
249 w=w+1:ifw>15thenw=0
250 poke 646,w
251 printchr$(147):gosub 110
252 goto180
255 j1=peek(53281)and15
260 j2=peek(646)and15
261 ifj1<>j2then goto 900
262 printchr$(147):poke53280,0:poke53281,0:poke646,1
263 print"schrift- und hintergrundfarbe [146]"
264 print"muessen verschieden sein !!! [146]"
265 fori=1to2000:nexti:goto100
270 goto 900
285 printchr$(147)
290 print"***************************************"
300 print"* [146]*"
310 print"* ratenkreditberechnung [146]*"
320 print"* [146]*"
325 print"* [146]*"
330 print"***************************************"
340 poke214,6:poke211,0:sys58640
345 print:print"wollen sie den effektiven jahreszins [146]"
346 print:print"exakt[146] oder annaeherungsweise[146] er-"
347 print:print"mittelt haben?(f1 [146]/f2 [146])"
348 wait 203,63:get e$
349 if e$=chr$(133)then x=1:goto 362
350 if e$=chr$(137)then x=2:goto 362
355 goto 348
362 print:print:print"rundungsangabe fuer die kreditkosten:":print
363 print"(d)[146] fuer mark/"
365 print"(g)[146] fuer groschen/ (p)[146] fuer pfennig"
371 poke 198,0:wait 203,63:get r$
373 if r$="d"thenu=1:v=1:goto382
379 if r$="g"thenu=10:v=.1:goto382
380 if r$="p"thenu=100:v=.01:goto382
381 goto 371
382 printchr$(147):poke214,0:poke211,8:sys58640
383 if x>=1then print"der effekt. jahreszins wird"
384 if x=1then print"exakt berechnet
385 [139] x[178]2[167] [153]"annaeherungsweise berechnet."
386 [153]:[153]"eingabe benoetigter daten:wait":[153]
387 bk[178]0:nr[178]0:l%[178]0:zs[178]0:ba[178]0:mg[178]0:mk[178]0:mg[178]0:ef[178]0
390 [133]"*beantragter kredit:dm wait"; bk
391 [139] bk[179][178]0 [176] bk[177]1000000 [167][153]"falsche angabe!!!wait":[137]390
392 [153]
395 [133]"*even. netto restsaldo:dm wait"; nr
396 [139] nr[179]0 [176] nr[177]1000000 [167] [137] 395
397 [153]
400 [133]"*laufzeit in monaten: wait"; l%
401 [139] l%[179]12 [176] l%[177]120 [167][153]"falsche angabe!!!wait":[137]400
402 [153]
405 [133]"*zinsen pro monat in %: % wait"; zs:
406 [139] zs[179][178].01 [176] zs[177]5 [167][153]"falsche angabe!!!wait":[137]405
407 [153]
410 [133]"*bearbeit.gebuehr in %: % wait"; ba
411 [139] ba[179]0 [176] ba[177]20 [167] [137]410
412 [153]
415 [133]"*maklergebuehr in %: % wait"; mg
416 [139] mg[179]0 [176] mg[177]20 [167] [137] 415
417 [153]:[153]"soll die erste rate eventuell nie-"
418 [153]"driger oder die letzte hoeher sein? n/h"
419 [151]198,0:[146]203,63:[161] h$
420 [139] h$[178]"n" [167] p[178]0:[153]"niedriger":[137] 423
421 [139] h$[178]"h"[167] p[178]1:[153]"hoeher":[137]423
422 [137] 419
423 [153]:[153]" angaben rwaitichtig/fwaitalsch?"
424 [151]198,0:[146]203,63:[161] h$
425 [139] h$[178][199](82)[167][137]430
426 [139] h$[178][199](70)[167][137]382
427 [137] 424
430 su[178]bk[170]nr
435 q[178](zs[173]100)
440 kb[178]su[172]q[172]l%
450 gb[178](ba[173]100)[172]bk
455 gk[178](su[170]kb[170]gb)
460 [139] kb[172]u[171][181](kb[172]u)[177][178].5[167] kb[178]([181](kb[172]u)[173]u)[170]v:[137] 470
470 [139] kb[172]u[171][181](kb[172]u)[179].5 [167] kb[178]([181](kb[172]u)[173]u)
475 [139] gb[172]u[171][181](gb[172]u)[177][178].5[167] gb[178]([181](gb[172]u)[173]u)[170]v:[137] 485
480 [139] gb[172]u[171][181](gb[172]u)[179].5 [167] gb[178]([181](gb[172]u)[173]u)
485 mk[178]mg[172]bk[173]100
490 [139] mk[172]u[171][181](mk[172]u)[177][178].5[167]mk[178]([181](mk[172]u)[173]u)[170]v:[137] 505
500 [139] mk[172]u[171][181](mk[172]u)[179].5 [167]mk[178]([181](mk[172]u)[173]u)
505 g1[178]su[170]kb[170]mk[170]gb
510 r0[178]g1[173]l%
511 [139] p[178]1[167] [137] 524
515 r2[178][181](r0)[170]1
516 [139] r0[171][181](r0)[178]0[167]r2[178]g1[173]l%
517 r1[178]([171](l%[171]1)[172]r2[170]g1)
518 [139]r1[179][178]0[167][153][199](147);"ein kredit zu solchen konditionen wait"
519 [139]r1[179][178]0[167][153]"kann nicht herausgelegt werden!!!wait":[137]780
520 [153][199](147):[137]530
524 r2[178][181](r0)
525 [139] r0[171][181](r0)[178]0[167]r2[178]g1[173]l%
526 r1[178]([171](l%[171]1)[172]r2[170]g1)
527 [139]r2[179][178]0[167][153][199](147);"ein kredit zu solchen konditionen wait"
528 [139]r2[179][178]0[167][153]"kann nicht herausgelegt werden!!!wait":[137]780
529 [153][199](147)
530 [143] datenausgabe
550 [151]214,3:[151] 211,0
560 [158] 58640
570 [153]"ausgabe der daten:"
580 [153]
590 [153]"kreditsumme:dm:";[181](su[172]100[170].5)[173]100
600 [153]""
610 [153]"maklergebuehren:dm:";[181](mk[172]100)[173]100
620 [153]"======================================="
630 [153]
640 [153]"gesamtkreditherauslage:dm:";[181](mk[172]100[170].5)[173]100[170]su
650 [153]
660 [153]"kreditgebuehren:dm:";[181](kb[172]100[170].5)[173]100
679 [153]
680 [153]"bearbeitungsgebuehren:dm:";[181](gb[172]100[170].5)[173]100
690 [153]
700 [153]"gesamtkreditbetrag:dm:";[181](g1[172]100[170].5)[173]100
710 [153]"======================================="
720 [153]"ratenplan:"
721 r1[178][181](r1[172]100[170].5)[173]100
722 [139] p[178]0[167][137] 740
734 [153]"";l%[171]1;"raten:dm:";r2
735 [153]
736 [153]"letzte rate:dm:";r1
737 [137] 764
740 [153]"erste rate:dm:";r1
750 [153]
760 [153]"weitere";l%[171]1;"raten:dm:";r2
764 [139] e$[178][199](137) [167] [137] 767
765 [139] e$[178][199](133)[167] [141] 25000
766 [137] 780
767 mh[178](mk[173]su)[172]100
770 ef[178]24[172](((zs[172]l%)[170]mh[170](gb[172]100[173]su))[173](l%[170]1))
771 ef[178][181](ef[172]100[170].5)
775 [153]"effekt. jahreszins:";ef[173]100
780 [153]"noch eine berechnung?(j/n)"
790 [151] 198,0:[146]203,63:[161]f$
800 [139] f$ [178][199](74)[167][137]382
810 [139] f$[178][199](78)[167][153][199](147):[137]1000
830 [139] f$[178][199](92)[167][141] 26000
835 [137] 790
900 [143] kassofix hauptmenue
1000 [153][199](147)
1010 [153]"****************************************"
1020 [153]"on* wait*"
1030 [153]"on* k a s s o f i x v.3 wait*"
1040 [153]"on* menueauswahl wait*"
1050 [153]"on* (c) 1986 by gerd baukelmann wait*"
1060 [153]"on****************************************"
1070 [153]"on* *"
1080 [153]"on* f1 wait ratenkreditberechnung wait *"
1085 [153]"on* *"
1090 [153]"on* f2 wait rahmenkredit wait *"
1095 [153]"on* *"
1100 [153]"on* f3 wait hypothekendarlehen wait *"
1105 [153]"on* *"
1110 [153]"on* f4 wait sparbriefberechnungen wait *"
1115 [153]"on* *"
1120 [153]"on* f5 wait bonussparen wait *"
1125 [153]"on* *"
1130 [153]"on* f6 wait farbeinstellung wait *"
1135 [153]"on* *"
1137 [153]"on* f7 wait hilfsmenue wait *"
1138 [153]"on* *"
1139 [153]"on* f8 wait ende wait *"
1140 [153]"on****************************************"
1145 [151]198,0:[146] 203,63
1150 [161] m$
1160 [139] m$[178][199](133)[167][137]285
1170 [139] m$[178][199](137)[167][137]2000
1180 [139] m$[178][199](134)[167][137]3000
1190 [139] m$[178][199](138)[167][137]4000
1200 [139] m$[178][199](135)[167][137]5000
1210 [139] m$[178][199](139)[167][137]105
1220 [139] m$[178][199](136)[167][137]10000
1225 [139] m$[178][199](140)[167][153][199](147):[153]"bye!":[129]i[178]1[164]2000:[130]i:[137] 5
1226 [139] zl[178]2[175] m$[178][199](155)[167][141]30000
1227 [139] zl[178]2 [175] kw$[179][177]kn$ [167] zl[178]zl[170]1:[137]1000
1230 [137] 1145
2000 [153][199](147):[153]"on****************************************"
2010 [153]"on* wait*"
2020 [153]"on* r a h m e n k r e d i t wait*"
2030 [153]"on* wait*"
2035 [153]"on* wait*"
2040 [153]"on****************************************"
2050 [153]
2060 [153]" eingabe benoetigter daten: wait":[153]:[153]
2065 kb[178]0:zs[178]0:mr[178]0
2070 [133]"kreditbetrag: dm: wait";kb
2075 [139] kb[179]1000 [167] [153]"betrag muss mind. dm 1000 seinwait":[137]2070
2080 [153]
2085 [133]"zinssatz in % p.a.% : wait";zs
2090 [139] zs[179][178].1[167] [153]"zinssatz ist falsch! wait":[137] 2085
2091 [139] zs[177]30[167] [153]"zinssatz ist zu hoch! wait":[137] 2085
2095 [153]
2100 [133]"monatl. ratenhoehe:dm: wait";mr
2101 [139] mr[179][178]0[167] [141] 2150:[137]2100
2102 [139] mr[177]kb[167] [141] 2150:[137]2100
2103 [139] kb[173]mr[177]100 [167] [141] 2150:[137]2100
2114 [137] 2156
2150 [153]"falsche eingabe!!! wait":
2155 [142]
2156 [153]:[153]"zinszahlungstermin:wait vwaitierteljaehrlich/"
2157 [153]"hwaitalbjaehrlich/jwaitaehrlich?"
2158 [151]198,0:[146] 203,63:[161] h$:
2159 [139] h$[178][199](86)[167]x[178]1:y[178]90:z[178]3:j$[178]"vierteljaehrlich":[153]j$:[137] 2163
2160 [139] h$[178][199](72)[167]x[178]2.5:y[178]180:z[178]6:j$[178]"halbjaehrlich":[153]j$:[137] 2163
2161 [139] h$[178][199](74)[167]x[178]5.5:y[178]360:z[178]12:j$[178]"jaehrlich":[153]j$:[137] 2163
2162 [137] 2158
2163 [139]kb[173]mr[179]4[167] [153]"falsche eingabe!!!":[129] i[178]1 [164] 1000:[130]i:[137]2000
2164 [139] kb[173]mr[179]z[167] [141]2150:[137] 2158
2165 [153]:[153]"ausgabe des eff. jahreszins?(j/n)"
2166 [151] 198,0:[146] 203,63:[161] g$:[139] g$[178][199](74)[167] p[178]1:[137] 2200
2167 [139] g$[178][199](78)[167] p[178]0:[137] 2200
2168 [137] 2166
2200 [143] rechenroutine kontokorrent
2201 zh[178]0
2202 [139] kb[173]mr[179][178]z [167] aw[178]kb:zh[178]0:[137] 2400
2204 [139] zh[179][177]0[167] bw[178]aw[171]x[172]mr:[137]2206
2205 bw[178]kb[171]x[172]mr
2206 rw[178]bw[173]100
2207 zb[178]rw[172]y[172]zs[173]360:[139] zh[177]0[167] [137]2209
2208 aw[178]kb[171](z[172]mr)[170]zb:zh[178]z:[137] 2211
2209 aw[178]aw[171](z[172]mr)[170]zb:zh[178]zh[170]z
2211 [139] zh [177]120 [167] [153][199](147);"ein rahmenkredit zu solchen kondi-wait"
2212 [139] zh [177]120 [167] [153]"tionen kann nicht herausgelegt werden!wait":[137] 2744
2220 [143] abbruchbedingungen fuer rechnen
2221 [139]aw[171](z[172]mr)[179][178]0[167] [137]2400
2225 [137] 2204
2400 [143] rechenroutine untere verzinsung
2401 k1[178]0:d[178]0
2402 [139] mr[177]aw [167] r2[178]aw[170]((aw[173]100)[172]30[172]zs[173]360):[137] 2550
2415 kw[178]aw[173]100
2520 k1[178]k1[170](kw[172]30[172]zs[173]360):d[178]d[170]1
2525 aw[178]aw[171]mr:zh[178]zh[170]1
2530 [139] aw[177]mr[167] [137]2415
2540 [139] d[179] z [167] r2[178]aw[170]k1[170]((aw[173]100)[172]30[172]zs[173]360)
2545 [139]d[177][178]z [167] r2[178]aw[170]k1[170](((aw[170]k1)[173]100)[172]30[172]zs[173]360)
2550 r3[178][171][181](r2[172]100)[170]r2[172]100
2551 [139] r3[177][178].5[167] r4[178]0.01
2552 [139] r3[179].5[167] r4[178]0
2553 r5[178][181](r2[172]100)[173]100[170]r4
2554 [139] r5[177]mr[167] aw[178]0:r2[178]r5[171]mr:zh[178]zh[170]1:r2[178]r2[170]((r2[173]100)[172]30[172]zs[173]360):[137]2550
2555 [153][199](147)
2600 mr[178][181](mr[172]100[170].5)[173]100
2605 r5[178][181](r5[172]100[170].5)[173]100
2680 [153]:[153]"ausgabe der daten:":[153]
2700 [153]"bei einer kreditsumme von ":[153]
2710 [153]"dm ";[181](kb[172]100[170].5)[173]100:[153]:[153]
2730 [153]"zu einem zinssatz von";zs;"% p. a.":[153]
2735 [153]"ergibt sich bei einer monatlichen rate":[153]
2738 [153]"von dm";[181](mr[172]100[170].5)[173]100;"folgender ratenplan:":[153]:[153]
2739 [153]zh;"raten zu dm ";[181](mr[172]100[170].5)[173]100:[153]
2740 [153]"und eine rate von dm";r5:[153]
2741 [153]"zinszahlungstermin:";j$:[153]
2742 [153]"gesamtkreditbetrag dm";zh[172]mr[170]r5:[153]:[153]
2743 [139]p[178]1[167] [141] 20000
2744 [153]"noch eine berechnung?(j/n)"
2750 [151]198,0:[146] 203,63:[161] h$
2754 [139] h$[178][199](78)[167] [137]1000
2755 [139] h$[178][199](74)[167] [137]2000
2756 [139] h$[178][199](92)[167] [141]26000
2760 [137] 2750
3000 [143] hypothekendarlehen
3010 [153][199](147)
3020 [153]"****************************************"
3030 [153]"on* wait*"
3040 [153]"on* h y p o t h e k e n- wait*"
3045 [153]"on* wait*"
3050 [153]"on* d a r l e h e n wait*"
3060 [153]"on****************************************"
3070 [143] eingabe
3080 [153]"eingabe benoetigter daten: wait"
3090 [153]:[153]"wie hoch soll die schuldsumme sein?"
3100 [133]"dm: wait";c
3105 [139] c[179]1000 [176] c[177]50000000 [167][137]3100
3110 [153]:[133]"welche laufzeit in jahren";j
3115 [139] j[179]1 [176]j[177]50 [167][137]3110
3120 [153]:[133]"welcher zinssatz (in %)";z
3125 [139] z[179][178].1 [176] z[177]30 [167] [137]3120
3200 [143] berechnen der annuitaet
3210 q[178](1[170](z[173]100))
3220 rb[178]([171](q[174][171]j)[170]1)[173](q[171]1)
3230 an[178]1[173]rb:af[178]c[172]an
3240 ac[178]an[172]c:ac[178][181](ac[172]100)[173]100
3245 d[178]ac[173](((66[173]12)[172](z[173]100))[170]12)
3246 d[178][181](d[172]100)[173]100
3252 [153]:[153]"soll ein disagio vereinbart werden?(j/n)"
3253 [151] 198,0:[146] 203,63:[161] f$
3254 [139] f$[178][199](74)[167] [137] 3258
3255 [139] f$[178][199](78)[167] [137] 3259
3256 [137] 3253
3257 [137] 3258
3258 [141] 28000
3259 [153][199](147)
3260 [153]"ausgabe der daten:"
3270 [153]
3280 [153]"bei einer verzinsung von ";z;"% ergibt"
3290 [153]:[153]"sich fuer eine laufzeit von ";j;" jahren "
3295 [153]:[153]"bei einem kredit von dm: ";[181](c[172]100[170].5)[173]100
3300 [153]:[153]"eine jaehrliche belastung von"
3310 [153]:[153]"dm: ";ac
3315 [153]:[153]"das entspricht einer durchschnittlichen"
3320 [153]:[153]"monatlichen belastung von dm: ";[181](d[172]100[170].5)[173]100
3321 [139] f$[178][199](78)[167] [137] 3330
3325 [139] f$[178][199](74) [167] [151] 214,18:[151] 211,0:[158]58640
3326 [153]"die effektive verzinsung betraegt bei"
3327 [153]:[153]"einem disagio von ";zd;"%: ";z1;"%"
3328 [153]:[153]"auszahlungsbetrag: dm ";[181](l[172]100[170].5)[173]100
3330 [153]:[153]" taste druecken!"
3335 [151]198,0:[146]203,63:[161] h$
3336 [139] h$[179][177][199](92)[167] [137] 3500
3337 [139] h$[178][199](92)[167] [141] 26000
3340 [137] 3335
3500 [153][199](147)
3505 j4[178]0:j5[178]0:z5[178]z:w[178]0:v[178]0
3510 [153][199](147)
3511 [153]"****************************************"
3512 [153]"on* wait*"
3513 [153]"on* h y p o t h e k e n- wait*"
3514 [153]"on* wait*"
3515 [153]"on* d a r l e h e n wait*"
3516 [153]"on****************************************"
3520 [153]"moechten sie eine schuldenstand-"
3530 [153]"berechnungwait vornehmen? (j/n) wait"
3540 [151]198,0:[146]203,63:[161] h$
3550 [139] h$[178][199](74) [167] [137] 3600
3560 [139] h$[178][199](78) [167] [137] 3575
3570 [137] 3540
3575 [153]:[153]"noch eine berechnung? j/n"
3576 [151]198,0:[146]203,63:[161] h$
3577 [139] h$[178][199](74) [167] [137] 3000
3578 [139] h$[178][199](78) [167] [137] 1000
3579 [137] 3576
3600 [143] schuldenstandberechnung
3610 [153]:[153]"wieviele jahre lang haben sie bereits"
3620 [153]:[133]"ihre raten bezahlt";j4
3625 [139] j4[179][178]0[167] [137] 3610
3626 [139] j4[177]j [167] [137] 3610
3627 [139] j4[178]j [167] [137] 3800
3630 j5[178]j[171]j4
3640 z5[178]z5[173]100
3650 q[178]1[170]z5
3660 rb[178](1[171](q[174][171]j5))[173]z5
3670 v[178]rb[172]af
3680 w[178]c[171]v
3690 v[178][181](v[172]100)[173]100
3700 w[178][181](w[172]100)[173]100
3710 df[178]c[171](v[170]w)
3711 [139] df[177]0[167] w[178]w[170].01
3715 [153][199](147):[153]" schuldenstand:"
3716 [153]:[153]"bei einem kredit von dm";c;",einer"
3717 [153]:[153]"laufzeit von "j;"jahren zu einem zins-"
3718 [153]:[153]"satz von ";z5[172]100;"% p.a.
3719 if j4=1then goto 3721
3720 print:print"haben sie nach ";j4;"jahren dm";w:goto3730
3721 print:print"haben sie nach einem jahr dm";w
3730 print
3735 print"abbezahlt."
3740 print:print"sie haben noch dm ";v
3745 print:print"zu zahlen."
3750 print:print" taste druecken! "
3760 poke198,0:wait 203,63:geth$
3770 if h$=chr$(92)then gosub26000
3780 if h$<>chr$(92)then printchr$(147):goto3259
3800 printchr$(147):print" schuldenstand:"
3810 poke 214,10:poke211,0:sys58640
3820 print:print"sie haben keine schulden mehr!"
3830 print:print
3840 print:print
3850 print:print" taste druecken! "
3860 poke198,0:wait 203,63:geth$
3870 if h$=chr$(92)then gosub26000
3880 if h$<>chr$(92)then printchr$(147):goto3259
4000 rem sparbriefberechnungen
4005 gosub 4010
4006 goto 4080
4010 printchr$(147)
4020 print"****************************************"
4030 print"[145]* [146]*"
4040 print"[145]* s p a r b r i e f - [146]*"
4045 print"[145]* [146]*"
4050 print"[145]* b e r e c h n u n g [146]*"
4060 print"[145]****************************************"
4070 return
4080 print"[145]* *"
4085 print"[145]* waehlen sie den sparbrieftyp! [146] *"
4090 print"[145]* *"
4095 print"[145]* *"
4100 print"[145]* f1 [146] aufgezinst [146] *"
4105 print"[145]* *"
4110 print"[145]* *"
4115 print"[145]* f3 [146] abgezinst [146] *"
4120 print"[145]* *"
4125 print"[145]* *"
4130 print"[145]* f5 [146] zinsauszahlung jaehrlich [146] *"
4140 print"[145]* *"
4145 print"[145]* *"
4150 print"[145]* f7 [146] zurueck [146] *"
4155 print"[145]* *"
4160 print"[145]****************************************"
4170 rem auswahlverzweigung
4175 poke 198,0:wait203,63:get h$
4177 if h$=chr$(133)then goto 4200
4180 if h$=chr$(134)then goto 4300
4185 if h$=chr$(135)then goto 4400
4186 if h$=chr$(136)then goto 1000
4190 goto 4175
4200 rem aufgezinster sparbrief
4205 gosub 4010
4210 print"aufgezinster sparbrief [146]":print
4215 print"welcher betrag (min. dm 50,--)"
4220 input" dm [146]:";dm
4221 if dm<50 or dm>50000000 then goto4215
4225 print:print
4230 input"welcher zinssatz (in % p.a.)";ps
4231 if ps<=.1 orps>30 then goto4230
4235 print:input"welche laufzeit (in jahren)";j
4236 if j<=0 orj>40 then goto4235
4240 print:print" taste druecken! [146] "
4245 poke 198,0:wait 198,1
4246 rem berechnung
4250 q=1+(ps/100)
4255 e=(q^j)*dm
4256 e1=int(e*100):e2=e1/10:e3=int(e2):e4=e3/10
4257 ife2-int(e2)>=.5then e=e4+.1
4258 ife2-int(e2)<.5then e=e4
4260 printchr$(147):rem ausgabe
4265 print:print:print"der aufgezinste sparbrief zum nenn-"
4266 print:print"wert von dm: ";int(dm*100+.5)/100;" ,"
4270 print:print"einer laufzeit von ";j;" jahren"
4275 print:print"und zinsen von ";ps;"% p. a."
4280 print:print"hat einen rueckzahlungswert von"
4285 print:print" dm: ";e
4287 print:print" taste druecken! "
4290 poke 198,0:wait 203,63:get h$
4291 if h$=chr$(92)then gosub 26000
4292 if h$<>chr$(92)then goto 4000
4295 goto4290
4300 rem abgezinster sparbrief
4305 gosub 4010
4310 print"abgezinster sparbrief [146]":print
4315 print"welcher betrag (min. dm 50,--)"
4320 input" dm [146]:";dm
4321 if dm<50 or dm> 50000000 then goto4315
4325 print:print
4330 input"welcher zinssatz (in % p.a.)";ps
4331 if ps<=.1 or ps>30 then goto4330
4335 print:input"welche laufzeit (in jahren)";j
4336 if j<=0 orj>40 then goto4335
4340 print:print" taste druecken! [146] "
4345 poke 198,0:wait 198,1
4346 rem berechnung
4350 q=1+(ps/100)
4355 e=(q^-j)*dm
4356 e1=int(e*100):e2=e1/10:e3=int(e2):e4=e3/10
4357 ife2-int(e2)>=.5then e=e4+.1
4358 ife2-int(e2)<.5then e=e4
4360 printchr$(147):rem ausgabe
4365 print:print:print"der abgezinste sparbrief mit einem"
4366 print:print"nennwert von dm ";int(dm*100+.5)/100;" ,"
4370 print:print"einer laufzeit von ";j;" jahren"
4375 print:print"und zinsen von ";ps;"% p. a."
4380 print:print"hat einen kaufpreis von"
4385 print:print" dm: ";e
4387 print:print" taste druecken! "
4390 poke 198,0:wait 203,63:get h$
4391 if h$=chr$(92)then gosub 26000
4392 if h$<>chr$(92)then goto 4000
4395 goto4390
4400 rem jaehrliche zinsauszahlung
4405 gosub 4010
4410 print"sparbbrief mit jaehrlicher zinsaus-[146]"
4411 print"zahlung [146]"
4415 print:print"welcher betrag (min. dm 50,--)"
4420 input" dm [146]:";dm
4421 if dm<50 ordm>50000000 then goto4315
4425 print:print
4430 input"welcher zinssatz (in % p.a.)";ps
4431 if ps<=.1 or ps>30 then goto4430
4435 print:print
4440 print:print" taste druecken! [146] "
4445 poke 198,0:wait 198,1
4446 rem berechnung
4450 za=(ps/100)*dm
4455 z1=int(za*100):z2=z1/10:z3=int(z2):z4=z3/10
4460 ifz2-z3<.5thenz4=z4
4465 ifz2-z3>=.5thenz4=z4+.1
4467 printchr$(147):rem ausgabe
4470 print:print:print"der sparbrief mit einem nennwert von "
4475 print:print"dm: ";int(dm*100+.5)/100;" bringt bei einem "
4477 print:print"zinssatz von ";ps;"% p. a. "
4480 print:print"zinsen in hoehe von dm: ";z4
4482 print:print
4485 print:print
4487 print:print
4489 print:print" taste druecken! "
4490 poke 198,0:wait 203,63:get h$
4491 if h$=chr$(92)then gosub 26000
4492 if h$<>chr$(92)then goto 4000
4495 goto4390
5000 rem bonussparprogramm
5010 printchr$(147)
5020 print"****************************************"
5030 print"[145]* [146]*"
5040 print"[145]* b o n u s s p a r e n [146]*"
5050 print"[145]* [146]*"
5060 print"[145]****************************************"
5070 print"[145] dateneingabe [146]"
5080 poke214,7:poke211,0:sys58640
5090 input"sparrate: dm [146]";sr
5092 if sr<=0 or sr > 50000thenprint"falsche eingabe!!![146]":goto 5090
5093 input"zinssatz(in%): [146]";zs
5095 if zs<=.1 or zs>30 thenprint"falsche eingabe!!! [146]":goto5092
5100 input"wieviel jahre?: [146]";jh
5105 ifjh<=0 or jh>40 thenprint"falsche eingabe!!![146]":goto5100
5110 input"bonussatz(in%): % [146]";bs
5111 if bs<0 or bs>100 thenprint"falsche eingabe!!![146]":goto5110
5115 print"sparrate:(m)[146]onatlich/(v)[146]ierteljaehrlich "
5116 print"[145](h)[146]halbjaehlich oder (j)[146]jaehrlich?"
5121 wait 203,63:get l$
5122 eg=0:ifl$=chr$(77)thenprint"monatlich[146]":eg=12:goto5130
5123 ifl$=chr$(86)thenprint"vierteljaehrlich[146]":eg=4:goto5130
5124 ifl$=chr$(74)thenprint"jaehrlich[146]":eg=1:goto5130
5125 ifl$=chr$(72)thenprint" halbjaehrlich[146]":eg=2:goto5130
5126 goto5121
5130 print"zahlungsweise: v[146]orschuessig m[146]edio "
5131 print" oder n[146]achschuessig?"
5132 for i=1to300:nexti
5135 poke198,0:wait203,63:get n$
5136 ifn$=chr$(86) then kn=eg+1:j$="vorschuessig [146]":print"";j$:goto5140
5137 ifn$=chr$(77) then kn=eg:j$="medio [146]":print"";j$:goto5140
5138 ifn$=chr$(78) then kn=eg-1:j$="nachschuessig[146]":print"";j$:goto5140
5139 goto5135
5140 print:print"t a s t e d r u e c k e n[146]"
5142 poke198,0
5145 wait 198,1
5146 printchr$(147);"ausgabe der daten:":print
5160 jr=sr*eg:jr=int(jr*100+.5)/100
5161 kp=jr*jh:kp=int(kp*100+.5)/100
5162 zr=sr*zs/100*kn/2:zr=int(zr*100)/100
5163 j1=jr+zr
5165 rem rentenendwertfaktor
5170 q=(1+(zs/100))
5175 re=(-1+(q^jh))/(zs/100)
5180 ew=j1*re:ew=int(ew*100+.5)/100
5185 e1=ew-kp:e1=int(e1*100+.5)/100
5190 bn=kp*bs/100:bn=int(bn*100+.5)/100
5200 poke 213,5:poke211,0:sys58640
5210 print"jaehrl. sparsumme:dm: ";jr
5215 print
5220 print"kapital in ";jh;" jahren:dm: ";kp
5225 print
5230 print"zinsertrag:dm: ";e1
5235 print
5240 print"bonusertrag:dm: ";bn
5245 print
5250 print"gesamtbetrag:dm: ";ew+bn
5251 print:print"zinssatz: ";zs;"% p. a."
5255 print:print:print"****************************************"
5260 print"wuenschen sie eine rentenberechnung ?"
5265 print"bitte j/n druecken!"
5270 print:print"****************************************"
5275 poke 198,0:wait 203,63
5276 get g$
5280 if g$=chr$(74) then goto 5300
5283 if g$=chr$(78) then goto 5291
5285 if g$=chr$(92) then gosub 26000
5290 goto 5275
5291 print"noch eine berechnung?(j/n)"
5292 poke 198,0:wait 203,63
5293 get g$
5294 if g$=chr$(74) then goto 5000
5295 if g$=chr$(78) then goto 1000
5296 goto 5292
5300 gosub 5302 :rem rentenmenue
5301 goto 5310
5302 printchr$(147):print"[145]****************************************"
5303 print"[145]* [146]*"
5304 print"[145]* rentenberechnung fuer bonussparen [146]*"
5305 print"[145]* [146]*"
5306 print"[145]****************************************"
5307 return
5310 print"[145]* *"
5311 print"[145]* bestimmung des rentenkapitals [146] *"
5312 print"[145]* *"
5313 print"[145]* f1 [146] gesamtbetrag [146] *"
5314 print"[145]* *"
5315 print"[145]* *"
5316 print"[145]* f3 [146] gesamtbetrag-bonus [146] *"
5317 print"[145]* *"
5318 print"[145]* *"
5319 print"[145]* f5 [146] zinsertrag [146] *"
5320 print"[145]* *"
5321 print"[145]* *"
5322 print"[145]* f7 [146] bonusbetrag [146] *"
5323 print"[145]* *"
5324 print"[145]* *"
5325 print"[145]* f8 [146] beliebiger betrag [146] *"
5326 print"[145]* *"
5328 print"[145]****************************************"
5329 poke 198,0:wait203,63:get h$
5330 if h$=chr$(133)then rk=ew+bn:w$="gesamtbetrag [146]":goto5350
5335 if h$=chr$(134)then rk=ew:w$="gesamtbetrag-bonus [146]":goto5350
5340 if h$=chr$(135)then rk=e1:w$="zinsertrag [146]":goto5350
5341 if h$=chr$(140)then w$="beliebiger betrag [146]"
5342 if h$=chr$(140)then printchr$(147):gosub 5302
5343 if h$=chr$(140)then input"welcher betrag?dm: [146]";rk:goto5350
5345 if h$=chr$(136)then rk=bn:w$="bonusbetrag [146]":goto5350
5346 goto5329
5350 gosub 5302:if rk<=0orrk>5000000 thenprint"betrag ist falsch!!! [146]"
5351 if rk<=0orrk>5000000then for i=1to 2000:nexti:goto5300
5352 rem rentenzahlungsperiosde
5355 print"[145]* *"
5356 print"[145]* zahlungen der renten [146] *"
5357 print"[145]* *"
5358 print"[145]* m [146] monatlich [146] *"
5359 print"[145]* *"
5360 print"[145]* *"
5361 print"[145]* v [146] vierteljaehrlich [146] *"
5362 print"[145]* *"
5363 print"[145]* *"
5364 print"[145]* h [146] halbjaehrl [146] *"
5365 print"[145]* *"
5366 print"[145]* *"
5367 print"[145]* j [146] jaehrl [146] *"
5368 print"[145]* *"
5369 print"[145]* *"
5370 print"[145]****************************************"
5380 poke 198,0:wait203,63:get g$
5385 if g$=chr$(77)then xk=12:v$="monatlich ":goto5400
5386 if g$=chr$(86)then xk=4:v$="vierteljaehrlich ":goto5400
5387 if g$=chr$(74)then xk=1:v$="jaehrlich ":goto5400
5388 if g$=chr$(72)then xk=2:v$="halbjaehrlich ":goto5400
5395 goto5380
5399 gosub 5302
5400 gosub 5302
5401 rem resteingaben
5402 print
5405 print"zahlungsweise: v[146]orschuessig m[146]edio "
5410 print" oder n[146]achschuessig?"
5411 poke 198,0:wait203,63:get h$
5415 ifh$=chr$(86) then k2=xk+1:j$="vorschuessig ":printj$:goto5435
5420 ifh$=chr$(77) then k2=xk:j$="medio ":printj$:goto5435
5425 ifh$=chr$(78) then k2=xk-1:j$="nachschuessig":printj$:goto5435
5430 goto5411
5435 print:input"welcher zinssatz(in%)";z5
5436 ifz5<=0.1 or z5>30 thenprint"falsche eingabe!!![146]":goto5435
5440 print:print"wie lange [146] soll die rente gezahlt werden"
5445 print:input"[145] 0 [146] fuer ewige rente [146]/zahlen fuer jahre";da:z$=""
5446 if da=0then z$=" ewig ":goto5450
5447 if da>0 and da<50 then da=0+da:goto5450
5449 if da<1 or da>40 thenprint"falsche eingabe!!!":z$=chr$(da):goto5440
5450 gosub 5302
5500 rem eingabe pruefen
5501 print
5502 print" ueberpruefung der eingaben:[146] "
5503 print
5504 print" rentenkapital:";w$
5505 print
5507 print" zahlungstermin:";v$
5508 print
5509 print" zahlungsweise:";j$
5510 rem
5511 print
5512 print"dauer der rente:";z$
5513 if da>0thenpoke214,15:poke211,20:sys58640:print" ";da;" jahre [146]"
5514 print
5515 print"zinssatz:";z5;"%"
5516 print
5517 print"eingaben: r[146]ichtig/f[146]alsch?"
5520 poke 198,0:wait203,63:getk$
5525 if k$=chr$(82)then goto5530
5526 if k$=chr$(70)then goto5300
5527 goto 5520
5530 rem rentenberechnung
5535 rem sprung ins unterprogramm
5540 gosub 27000
5560 printchr$(147):print"":goto5146
6000 rem
10000 rem hilfmenue
10010 printchr$(147):printchr$(14)
10020 print"****************************************"
10030 print"[145]* [146]*"
10040 print"[145]* [203][160][193][160][211][160][211][160][207][160][198] [201] [216][160]([200]ilfsmenue) [146]*"
10042 print"[145]* [146]*"
10050 print"[145]****************************************"
10060 print"[145]* [198]1 [146] [210]atenkreditberechnung [146] *"
10070 print"[145]* *"
10080 print"[145]* [198]2 [146] [210]ahmenkredit [146] *"
10090 print"[145]* *"
10100 print"[145]* [198]3 [146] [200]ypothekendarlehen [146] *"
10110 print"[145]* *"
10120 print"[145]* [198]4 [146] [211]parbriefberechnung [146] *"
10130 print"[145]* *"
10140 print"[145]* [198]5 [146] [194]onussparen [146] *"
10150 print"[145]* *"
10160 print"[145]* [198]6 [146] [198]arbeinstellungen [146] *"
10170 print"[145]* *"
10180 print"[145]* [198]7 [146] [196]ruckmoeglichkeiten [146] *"
10182 print"[145]* *"
10185 print"[145]* [198]8 [146] [218]urueck ins [205]enue [146] *"
10190 print"[145]****************************************"
10200 poke198,0:wait 203,63
10210 get h$
10220 if h$=chr$(133)then goto11000
10230 if h$=chr$(137)then goto12000
10240 if h$=chr$(134)then goto13000
10250 if h$=chr$(138)then goto14000
10260 if h$=chr$(135)then goto15000
10270 if h$=chr$(139)then goto16000
10275 if h$=chr$(136)then goto17000
10280 if h$=chr$(140)thenprintchr$(147):printchr$(142):goto1000
10290 goto10200
11000 rem kommentar zum ratenkredit
11010 printchr$(147)
11020 print"****************************************"
11025 print"* [210][193][212][197][206][203][210][197][196][201][212][197] *"
11030 print"****************************************"
11040 print
11045 print"[196]er [208]rogrammpunkt [210][193][212][197][206][203][210][197][196][201][212][194][197][210][197][195][200][206][213][206][199][146]"
11050 print"ermoeglicht das [194]erechnen von [210]atenkre- "
11060 print"[145]diten, wie sie ueblicherweise im [194]ankge-"
11070 print"[145]schaeft vorgenommen werden."
11080 print"[198]olgendes ist zu beachten: "
11090 print"1.) [194]ei unrichtigen [197]ingaben meldet"
11100 print"sich das [208]rogramm mit einer [198]ehlermel-"
11110 print"dung.
11120 [153]"2.)str$ie (NULL)osten des (NULL)redites werden "
11130 [153]"kaufmaennisch je nach atnngabe gerundet."
11140 [153]"3.) str$er valffektive mid$ahrezinswait wird ent-"
11150 [153]"weder durch ein einfaches atnnnaeherungs-"
11160 [153]"verfahren oder iterativ exakt berechnet."
11170 [153]"peekei iterativer peekerechnung braucht der "
11175 [153]"(NULL)echner zum (NULL)eil einige (NULL)eit."
11180 [153]" (NULL)atn(NULL)(NULL)val str$(NULL)(NULL)vallen(NULL)val(NULL)! wait"
11190 [146] 203,63
11200 [161] v$
11210 [139] v$[178][199](74)[167][153][199](147):[137]1010
11220 [153][199](147):[153][199](142):[137]1010
12000 [143] kommentar zum rahmenkredit
12010 [153][199](147)
12020 [153]"****************************************"
12025 [153]"* (NULL)atnleft$(NULL)val(NULL)(NULL)(NULL)valstr$right$(NULL) *"
12030 [153]"****************************************"
12040 [153]
12045 [153]"str$er (NULL)rogrammpunkt (NULL)atnleft$(NULL)val(NULL)(NULL)(NULL)valstr$right$(NULL)wait"
12050 [153]"ermoeglicht das kontokorrentmaessige "
12060 [153]"peekerechnen von (NULL)rediten." "
12070 print"[196]ie [218]insbetraege werden jeweils"
12080 print"zum angegebenen [218]eitpunkt kapitali-"
12090 print"siert."
12100 print"[196]ie [194]erechnung geht davon aus, dass "
12110 print"die erste monatliche [210]ate 30 [212]age"
12120 print"nach [193]uszahlung des [203]redites faellig"
12130 print"wird.":print
12179 print
12180 print" [212][193][211][212][197] [196][210][213][197][195][203][197][206]! [146]"
12190 wait 203,63
12200 get v$
12210 if v$=chr$(74)thenprintchr$(147):goto1010
12220 printchr$(147):printchr$(142):goto1010
12230 if v$=chr$(74)thenprintchr$(147):goto1010
12250 printchr$(147):printchr$(142):goto1010
13000 rem kommentar hypothekardarlehen
13010 printchr$(147)
13020 print"****************************************"
13025 print"* [200][217][208][207][212][200][197][203][197][206][196][193][210][204][197][200][197][206] *"
13030 print"****************************************"
13040 print
13045 print"[200]ypothekendarlehen werden in der [210]e-"
13050 print"gel fuer [194]au- oder [210]enovierungsfinan-"
13060 print"zierungen vergeben."
13070 print"[199]emaess $1113 [194][199][194] verlangen die [194]anken"
13080 print"als [211]icherheit eine [194]elastung des "
13090 print"[199]rundstuecks ([200]ypothek)."
13100 print"[196]as [208]rogramm berechnet bankueblich"
13110 print"die monatliche [194]elastung, wenn "
13120 print"vorschuessig bezahlt wird."
13130 print"[194]ei vereinbartem [193]bgeld ([196]isagio) wird"
13140 print"die tatsaechliche [214]erzinsung auf"
13150 print"der [194]asis des [193]uszahlungsbetrages"
13160 print"iterativ ermittelt."
13170 print"[196]as [208]rogramm erlaubt ferner eine"
13180 print"[211]chuldenstandberechnung."
13200 print
13220 print" [212][193][211][212][197] [196][210][213][197][195][203][197][206]! [146]"
13230 wait 203,63
13240 get v$
13250 if v$=chr$(74)thenprintchr$(147):goto1010
13260 printchr$(147):printchr$(142):goto1010
14000 rem sparbriefe
14010 printchr$(147)
14020 print"****************************************"
14025 print"* [211][160][208][160][193][160][210][160][194][160][210][160][201][160][197][160][198][160][197] *"
14030 print"****************************************"
14040 print
14045 print"[211]parbriefe sind [206]ominalpapiere im"
14050 print"[211]inne des $ 808 [194][199][194]. [196]ie [194]anken ver-"
14060 print"kaufen in der [210]egel drei [212]ypen solcher"
14070 print"[211]parbriefe:"
14080 print"1.) aufgezinste [146] "
14090 print"[197]s handelt sich um [211]parbriefe mit [218]ins-"
14100 print"ansammlung"
14110 print"2.) abgezinste [146] "
14120 print"[197]s handelt sich um [211]parbriefe, deren"
14130 print"[203]aufpreis dem durch [204]aufzeit und [218]ins-"
14140 print"satz abgezinsten [206]ennwert entspricht."
14150 print"3.) mit jaehrlicher [218]insauszahlung [146]"
14160 print"[196]er [218]insertrag wird nach jeweils 12"
14170 print"[203]alendermonaten ausgezahlt."
14200 print
14210 print
14220 print" [212][193][211][212][197] [196][210][213][197][195][203][197][206]! [146]"
14230 wait 203,63
14240 get v$
14250 if v$=chr$(74)thenprintchr$(147):goto1010
14260 printchr$(147):printchr$(142):goto1010
15000 rem komentar bonussparen
15010 printchr$(147)
15020 print"****************************************"
15025 print"* [194][207][206][213][211][211][208][193][210][197][206] *"
15030 print"****************************************"
15040 print"[194][207][206][213][211][211][208][193][210][197][206] ist eine [205]oeglichkeit,sich"
15045 print"durch [211]parraten ueber einen gewissen"
15050 print"[218]eitraum fuer zukuenftige [196]ispositio-"
15055 print"nen ein angemessenes [203]apital zu be-"
15060 print"schaffen. [196]ie [194]anken gewaehren in der "
15070 print"[210]egel am [197]nde der [204]aufzeit auf die ein-"
15080 print"gezahlte [211]umme einen [194]onusprozentsatz,"
15090 print"der von der [199]esamtlaufzeit abhaengig "
15100 print"ist. [196]a diese [211]parform die [211]chaffung"
15119 print"einer zukuenftigen [218]usatzrente ermoeg-"
15120 print"licht, ist ein [210]entenberechnungspro-"
15130 print"gramm angefuegt."
15131 print"[194]eim [210]entenprogramm wird davon ausge-"
15132 print"gangen, dass die [210]entenzahlung 1 [202]ahr "
15133 print"nach [214]ertragsende beginnt."
15134 print
15140 print" [212][193][211][212][197] [196][210][213][197][195][203][197][206]! [146]"
15150 poke198,0:wait 198,1
15160 printchr$(142)
15170 printchr$(147):goto1000
16000 printchr$(147)
16020 print"****************************************"
16025 print"* [198][193][210][194][197][201][206][211][212][197][204][204][213][206][199] *"
16030 print"****************************************"
16040 print
16045 print"[196]urch [196]ruck auf [198]6 gelangen [211]ie "
16050 print"wieder ins [198]arbeinstellungsmenue. "
16055 print:print
16060 print"[194]ei gleicher [211]chrift- und [200]intergrund- "
16070 print"farbe wird eine [198]ehlermeldung "
16080 print"ausgegeben."
16179 print
16180 print" [212][193][211][212][197] [196][210][213][197][195][203][197][206]! [146]"
16190 wait 203,63
16200 get v$
16210 if v$=chr$(74)thenprintchr$(147):goto1010
16220 printchr$(147):printchr$(142):goto1010
16230 if v$=chr$(74)thenprintchr$(147):goto1010
16250 printchr$(147):printchr$(142):goto1010
17000 rem drucken
17010 printchr$(147)
17020 print"****************************************"
17025 print"* [196][210][213][195][203][205][207][197][199][204][201][195][200][203][197][201][212] *"
17030 print"****************************************"
17040 print"[197]s besteht die [205]oeglichkeit, sich die"
17045 print"[210]echenergebnisse der [196]atenausgabe aus-"
17050 print"drucken zu lassen."
17055 print
17056 print
17060 print"[211]chalten [211]ie zunaechst [201]hren [196]rucker ein"
17070 print"[145]und betaetigen [211]ie dann die \-[212]aste."
17080 print"[211]ofort beginnt der [193]usdruck."
17090 print:print
17180 print" [212][193][211][212][197] [196][210][213][197][195][203][197][206]! [146]"
17190 wait 203,63
17200 get v$
17210 if v$=chr$(74)thenprintchr$(147):goto1010
17220 printchr$(147):printchr$(142):goto1010
20000 rem jaehrl. effektivzins
20005 poke214,23:poke211,0:sys58640
20006 print"bitte warten![146]"
20010 rem fuer rahmenkredit
20015 if z=12then ex=zs:goto20110
20020 r=zs/100
20030 da=zh+1
20040 j=int(da/12)
20049 l1=da-(j*12)
20050 lr=da-(j*12)-1
20051 r=r+.0001
20055 rf=(1-(1+r)^-j)/r
20056 k1=(5.5*r*mr+(12*mr))*rf
20057 fj=(1+r)^(-da/12)
20060 k2=((lr*(lr+1)/24)*r*mr+(lr*mr+r5))*fj
20070 k3=k1+k2
20080 if k3>kbthen goto20051
20090 rem effi ausgeben
20100 ex=int(r*10000)/100
20110 poke214,23:poke211,0:sys58640
20120 print"effektiver jahreszins=";ex;"%"
20130 return
25000 rem unterprog. effektivzins
25008 if p=1 then gosub 35000
25009 if p=1 then return
25010 rem ermittlung des
25020 rem effektiven jahreszinses
25030 poke214,23:poke211,10:sys58640
25040 print"bitte warten ![146]"
25100 rem variablen zuordnen
25105 eh=0:ef=0:mh=0:l1=0:j1=0:j2=0:j3=0
25106 l1=(l%-12)/12
25107 mh=(mk/su)*100
25108 ef=24*(((zs*l%)+mh+(gb*100/su))/(l%+1))
25109 eh=ef/100
25110 rem erste jahr
25111 j1=(((11/12)*r1*eh)+((55/12)*eh*r2)+r1+(11*r2))/(1+eh)
25112 rb=(1-((1+eh)^-l1))/(eh)
25113 j2=(((5.5*eh*r2)+(12*r2))/(1+eh))*rb
25114 j3=j1+j2
25115 if j3>su then goto25120
25116 if j3<su then goto25240
25120 rem
25121 rem zunehmender zins
25122 eh=((eh*100)+.01)/100
25130 j1=(((11/12)*r1*eh)+((55/12)*eh*r2)+r1+(11*r2))/(1+eh)
25131 rem berechnung des
25140 rem rentenbarwertfaktor
25150 rb=(1-((1+eh)^-l1))/(eh)
25160 j2=(((5.5*eh*r2)+(12*r2))/(1+eh))*rb
25161 rem
25170 j3=j1+j2
25175 poke 214,0:poke211,0:sys58640
25176 print"iteration bei dm: [146]";int(j3*100)/100
25177 print"iteration bei % : [146]";" ":poke214,1:poke211,18:sys58640
25178 print;int(eh*10000)/100:poke214,0:poke211,0:sys58640
25179 poke 214,0:poke211,0:sys58640
25180 ifj3<su then goto25500
25181 goto25122
25200 rem
25210 rem
25220 rem iteration mit abnehmenden
25230 rem zins
25240 j1=0:j2=0:j3=0
25300 eh=((eh*100)-.01)/100
25310 j1=(((11/12)*r1*eh)+((55/12)*eh*r2)+r1+(11*r2))/(1+eh)
25320 rem abnehmender zins
25400 rem rentenbarwertfaktor
25410 rem
25420 rb=(1-((1+eh)^-l1))/(eh)
25430 j2=(((5.5*eh*r2)+(12*r2))/(1+eh))*rb
25440 j3=j1+j2
25450 poke 214,0:poke211,0:sys58640
25460 print"iteration bei dm: [146]";int(j3*100)/100
25470 print"iteration bei % : [146]";" ":poke214,1:poke211,18:sys58640
25475 print;int(eh*10000)/100:poke214,0:poke211,0:sys58640
25480 poke 214,0:poke211,0:sys58640
25490 if-j3<-su then goto25500
25495 goto25300
25500 rem ausgabe des effi
25510 eh= eh*100
25511 eh=int(eh*100+.5)/100
25512 rem
25513 poke 214,23:poke211,6:sys58640
25520 print"effekt. jahreszins= ";eh
25530 return
26000 rem hardcopyroutine
26005 open4,4,4:cmd 4
26010 for i=1024 to 1984 step 40: rem 25 zeilen
26015 bz$="":rem gesamtzeile loeschen
26020 for j=0 to 39:rem 40 zeichen
26030 z=peek(i+j):rem zeichen lesen
26040 if z<32 then z=z+64:rem umwandlung
26050 bz$=bz$+chr$(z)
26060 next j
26070 printbz$
26080 next i:close 4
26090 return
27000 rem unterprogramm
27010 rem annuitaeten
27020 rem und rentenberechnung
27030 rem annuitaetenfaktor
27040 q=(z5/100)+1
27050 a1=1-(q^-da):if da=0thena1=1
27060 a2=((z5/100)/a1)*q
27070 rt=rk*a2
27080 z6=(xk*k2)/(xk*2)
27090 z7=z6*(z5/100)
27100 e=rt/(xk+z7)
27110 e=e*100
27120 ife-int(e)>.5thend=1
27130 ife-int(e)<.5thend=0
27135 e=int(e)+d
27140 e=e/100
27150 rem ausgabe auf bildschirm
27160 printchr$(147):poke214,3:poke211,0:sys58640
27170 print"****************************************"
27180 print"* *"
27190 print"ihre rente betraegt: dm";int(e*100+.5)/100
27200 print
27210 print"gezahlt wird jeweils ";v$
27220 print
27230 print"zahlungsweise: ";j$
27240 print
27250 print"dauer der rente: ";da;" jahre"
27251 print
27260 print"zinssatz:";z5;"% p. a."
27270 print"* *"
27280 print"****************************************"
27300 if da=0thenpoke214,13:poke211,16:sys58640
27310 if da=0thenprintz$;" "
27315 print:print:print:print
27316 print"taste druecken! "
27317 poke198,0:wait203,63:get g$
27318 if g$=chr$(92)then gosub26000
27319 if g$=chr$(92) then goto 27317
27320 if g$<>chr$(92)then printchr$(147)
27321 return
28000 rem unterprogramm
28010 rem effektive verzinsung
28020 rem bei disagio
28030 poke 214,20:poke211,0:sys58640
28040 input"wieviel % disagio (max. 20%)";zd
28045 ifzd>20then28040
28050 ifzd<=0then28040
28055 poke 214,20:poke211,0:sys58640
28056 fori=1to 200:poke(1800+i),32:next i
28057 poke 214,20:poke211,0:sys58640
28058 print" bitte warten![146] "
28060 l=c-((zd/100)*c)
28070 rem iteration erstellen
28080 z1=z/100
28090 z1=z1+.0001
28100 r1=(1-((1+z1)^-j))/z1
28110 r2=l/ac
28120 if r1>r2thengoto 28090
28125 z1=int(z1*10000)/100
28130 poke 214,20:poke211,0:sys58640
28170 return
30000 ifzl=2and kw$=kn$ thenreturn
30001 ifzl<>2 thenreturn
30005 printchr$(147):poke214,10:poke211,10:sys58640
30010 print"";kn$;"[146]":fori=1 to2000:nexti:printchr$(147):return
35000 rem unterprog. zur iterativen
35010 rem ermittlung des
35020 rem effektiven jahreszinses
35030 poke214,23:poke211,10:sys58640
35040 print"bitte warten ![146]"
35100 rem variablen zuordnen
35105 eh=0:ef=0:mh=0:l1=0:j1=0:j2=0:j3=0
35106 l1=((l%-12)/12):l2=(l%/12)-l1
35107 mh=(mk/su)*100
35108 ef=24*(((zs*l%)+mh+(gb*100/su))/(l%+1))
35109 eh=ef/100
35110 rem lezte jahr
35111 j1=(((1/12)*r1*eh)+((65/12)*eh*r2)+r1+(11*r2))/((1+eh)^(l2))
35112 rb=(1-(1+eh)^-l1)/eh
35113 j2=(((5.5*eh*r2)+(12*r2))/(1+eh))*rb
35114 j3=j1+j2
35115 if j3>su then goto35120
35116 if j3<su then goto35240
35120 rem
35121 rem zunehmender zins
35122 eh=((eh*100)+.01)/100
35130 j1=(((1/12)*r1*eh)+((65/12)*eh*r2)+r1+(11*r2))/((1+eh)^(l2))
35131 rem berechnung des
35140 rem rentenbarwertfaktor
35150 rb=(1-((1+eh)^-l1))/(eh)
35160 j2=(((5.5*eh*r2)+(12*r2))/(1+eh))*rb
35170 j3=j1+j2
35175 poke 214,0:poke211,0:sys58640
35176 print"iteration bei dm: [146]";int(j3*100)/100
35177 print"iteration bei % : [146]";" ":poke214,1:poke211,18:sys58640
35178 print;int(eh*10000)/100:poke214,0:poke211,0:sys58640
35179 poke 214,0:poke211,0:sys58640
35180 ifj3<su then goto35500
35181 goto35122
35240 j1=0:j2=0:j3=0
35300 eh=((eh*100)-.01)/100
35310 j1=(((1/12)*r1*eh)+((65/12)*eh*r2)+r1+(11*r2))/((1+eh)^(l2))
35320 rem abnehmender zins
35400 rem rentenbarwertfaktor
35410 rem
35420 rb=(1-((1+eh)^-l1))/(eh)
35430 j2=(((5.5*eh*r2)+(12*r2))/(1+eh))*rb
35440 j3=j1+j2
35450 poke 214,0:poke211,0:sys58640
35460 print"iteration bei dm: [146]";int(j3*100)/100
35470 print"iteration bei % : [146]";" ":poke214,1:poke211,18:sys58640
35475 print;int(eh*10000)/100:poke214,0:poke211,0:sys58640
35480 poke 214,0:poke211,0:sys58640
35490 if-j3<-su then goto35500
35495 goto35300
35500 rem ausgabe des effi
35510 eh= eh*100
35511 eh=int(eh*100+.5)/100
35513 poke 214,23:poke211,6:sys58640
35520 print"effekt. jahreszins= ";eh
35530 return