home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Profi Club
/
Profi_Club_1_1992_-_de.d64
/
devisen.64
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2023-02-26
|
9KB
|
447 lines
1 rem ***********************
2 rem * devisen 64 *
3 rem * written by *
4 rem * thomas knoop *
5 rem * hirschgraben 15 *
6 rem * 2000 hamburg 76 *
7 rem * feb. 1987 *
8 rem ***********************
10 print"[147]";
11 dim a$(18),a(18),b(18),b$(18)
12 poke 53280,0:poke 53281,0
15 printchr$(142);:print chr$(8);
20 for x=1 to 18:read a$(x),a(x),b(x),b$(x):next:read t$,m$,j$
25 t$(1)="[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]"
26 t$(2)="[221] devisen 64[182] written by[182] thomas knoop [221]"
27 t$(3)="[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]"
29 d=1
30 gosub 2500
31 print"[145]";
32 print tab(13)" m e n u e [146]"
33 print
34 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]";
35 print"[221]";spc(2)"1[146] = dm betrag in ausl.waehrung";spc(6)"[221]";
40 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][192][179]";
45 print"[221]";spc(2)"2[146] = ausl.waehrung in dm betrag";spc(6)"[221]";
50 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][192][179]";
55 print"[221]";spc(2)"3[146] = ausl.waehrung in ausl.waehrung";spc(2)"[221]";
60 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][192][179]";
65 print"[221]";spc(2)"4[146] = kurs-uebersicht";spc(17)"[221]";
70 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][192][179]";
75 print"[221]";spc(2)"5[146] = kurse aendern";spc(19)"[221]";
76 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][192][179]";
77 print"[221]";spc(2)"6[146] = kurse drucken";spc(19)"[221]";
80 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][192][179]";
85 print"[221]";spc(2)"7[146] = kurse laden";spc(21)"[221]";
90 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][192][179]";
95 print"[221]";spc(2)"8[146] = kurse abspeichern";spc(15)"[221]";
100 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][192][179]";
105 print"[221]";spc(2)"9[146] = programm - ende";spc(17)"[221]";
110 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]";
114 poke 55296,1
115 poke 2023,125
120 get x$
125 x=val(x$)
130 if x<1 or x>9 then 120
135 on x goto 145,240,355,515,745,1155,855,960,1065
140 goto 120
145 rem ** dm-ausl. **
150 gosub 2525
155 gosub 2500
160 za=val(be$)
165 print"einzuwechselnder dm betrag ?";
168 gr=6
170 gosub 2665
175 dm=val(be$)
180 au=dm/a(za)
185 au=au*b(za)
187 au=int(100*au+.5)
189 au=au/100
190 print:print:print
195 print tab(8)"sie bekommen fuer"dm"dm"
197 print
198 printtab(10)">>"au;b$(za)" <<"
200 for x=1 to 9:print:next
205 for x=1 to 40:print"[192]";:next
210 print"[181] m[146] = menue [194] w[146] = dm - ausl.waehrung [182]";
215 for x=1 to 40:print"[192]";:next
220 get x$
225 if x$="m"then 30
230 if x$="w"then 145
235 goto 220
240 rem ** aul.-dm **
245 gosub 2525
250 gosub 2500
255 za=val(be$)
260 print"einzuwechselnden "b$(za)" betrag ?";
263 gr=6
265 gosub 2665
270 be=val(be$)
275 au=be*a(za)
280 au=au/b(za)
285 au=int(100*au+.5)
290 au=au/100
295 print:print
300 print tab(4)"sie bekommen fuer"be;b$(za)
305 print
310 print tab(12)">>"au"dm <<"
315 for x=1 to 9:print:next
320 for x=1 to 40:print"[192]";:next
325 print"[181] m[146] = menue [194] w[146] = ausl. - dm betrag [182]";
330 for x=1 to 40:print"[192]";:next
335 get x$
340 if x$="m"then 30
345 if x$="w"then 240
350 goto 335
355 rem ** ausl.-ausl. **
360 zz=1
365 gosub 2525
370 print"von land (nummer) ?";
375 gr=2
378 gosub 2665
380 a=val(be$)
381 y=val(be$)
384 gosub 2810
385 print"[145] ";
390 print:print"[145]";
395 print"nach land (nummer) ?";
400 gr=2
403 gosub 2665
405 b=val(be$)
407 y=val(be$)
408 gosub 2810
410 zz=0
415 gosub 2500
420 print"umzurechnender "b$(a)" betrag ?";
423 gr=6
425 gosub 2665
430 be=val(be$)
435 au=be*a(a)/b(a)
440 au=au/a(b)*b(b)
445 au=int(100*au+.5)
450 au=au/100
455 print:print
460 print tab(8)"sie bekommen fuer"be;b$(a)"
465 [153]
470 [153] [163]12)">>"au;b$(b)" <<"
475 [129] x[178]1 [164] 10:[153]:[130]
480 [129] x[178]1 [164] 40:[153]"tan";:[130]
485 [153]"int mwait = menue peek wwait = ausl.-ausl.waehrung abs";
490 [129] x[178]1 [164] 40:[153]"tan";:[130]
495 [161] x$
500 [139] x$[178]"m"[167] 30
505 [139] x$[178]"w"[167] 355
510 [137] 495
515 [143] ** kurs-uebersicht **
520 [141] 2500
525 [153]"onon";
530 [129] x[178]1 [164] 40:[153]"and";:[130]
535 [129] x[178]1 [164] 18
540 [153]"int";[166]38)"abs";
545 [130]
550 [129] x[178]1 [164] 40:[153]"usr";:[130]
555 [153]""
560 [153]
565 [129] x[178]1 [164] 18
570 [153] [166]14)"peek";[166]12)"peek";[166]12)
575 [130]
580 [153]""
585 [153]
590 [129] x[178]1 [164] 18
595 y[178][195](a$(x))
600 y[178]39[171]y
605 [153] [166]1);a$(x);[166]y)
610 [130]
615 [153]""
620 [153]
625 [129] x[178]1 [164] 18
630 y[178][195](b$(x))
635 x$[178][196](b(x))
640 z[178][195](x$)
645 y[178]y[170]z[171]1
650 y[178]23[171]y
655 [153] [166]15)b(x);b$(x);[166]y)
660 [130]
665 [153]""
670 [153]
675 [129] x[178]1 [164] 18
680 x$[178][196](a(x))
685 y[178][195](x$)
690 y[178]11[171]y
695 [153] [166]28);a(x);[166]y)
700 [130]
705 [153]""
710 [153]
715 [129] x[178]1 [164] 18
720 [153] [166]36);"dm";[166]2)
725 [130]
730 [153]"stand : ";t$;".";m$;".";j$
732 [139] zz[178]1 [167] [142]
735 [151] 198,0:[146] 198,1
740 [137] 30
745 [143] ** kurse aendern **
750 zz[178]1:[141] 515
755 zz[178]0
760 [153]""
765 [153]
770 [129] x[178]1 [164] 18
775 [153] [166]29);
778 [151] 19,64
780 [133] x$
782 [153]
783 [151] 19,0
785 x$[178][200](x$,6)
790 be[178][197](x$)
795 a(x)[178]be
798 [139] [181](x[173]2)[179][177]x[173]2 [167] [153]"on";
800 [130]
805 [153]
810 [153] [166]8)"on";
815 [151] 19,64
820 [133] x$
825 [153]
830 [151] 19,0
835 t$[178][200](x$,2)
840 m$[178][202](x$,4,3)
845 j$[178][201](x$,4)
850 [137] 30
855 [143] ** kurse laden **
860 [141] 2500
861 [153]"on";
862 [153] [163]14)"(NULL)tantantantantantantantantantantanright$"
863 [153] [163]14)"(NULL)daten laden(NULL)"
864 [153] [163]14)"mid$tantantantantantantantantantantan(NULL)"
865 [153]:[153]
867 [139] d[178]1 [167] [153]"datentraeger : diskettewait / kassette"
868 [139] d[178]2 [167] [153]"datentraeger : diskette / kassettewait"
869 [153]:[153]
870 [153]" bitte legen sie die daten-diskette einwait"
875 [153]
880 [153] [163]6)"und druecken danach 'return'wait"
885 [161] x$
890 [139] x$[178][199](13)[167] 900
891 [139] x$[178][199](32)[167] 30
894 [139] x$[178][199](29)[167] [141] 2865
895 [137] 885
900 [139] d[178]2 [167] 904
903 [141] 2740
904 [151] 214,16:[151] 211,10:[158] 58640
905 [153]"daten werden geladen"
908 [139] d[178]2 [167] [159] 3,1,0,"kurse":[137] 915
910 [159] 3,8,5,"kurse,s,r"
915 [129] x[178]1 [164] 18
920 [132]3,a(x)
925 [130]
930 [132]3,t$
931 [132]3,m$
932 [132]3,j$
935 [160] 3
940 [151] 214,16:[151] 211,10:[158] 58640
945 [153]" daten sind geladenwait "
950 [129] x[178]1 [164] 2000:[130]
955 [137] 30
960 [143] ** kurse speichern **
965 [141] 2500
966 [153]"on";
967 [153] [163]12)"(NULL)tantantantantantantantantantantantantantantanright$"
968 [153] [163]12)"(NULL)daten speichern(NULL)"
969 [153] [163]12)"mid$tantantantantantantantantantantantantantantan(NULL)"
970 [153]:[153]
973 [153]"datentraeger : diskettewait / kassette"
974 [153]:[153]
975 [153]" bitte legen sie die daten-diskette einwait"
980 [153]
985 [153] [163]6)"und druecken danach 'return'wait"
990 [161] x$
995 [139] x$[178][199](13)[167] 1005
997 [139] x$[178][199](32)[167] 30
998 [139] x$[178][199](29)[167] [141] 2865
1000 [137] 990
1005 [139] d[178]2 [167] 1009
1008 [141] 2740
1009 [151] 214,16:[151] 211,8:[158] 58640
1010 [153]"daten werden gespeichert":[153]
1012 [139] d[178]2 [167] [159] 3,1,1,"kurse":[137] 1020
1015 [159] 3,8,5,"@:kurse,s,w"
1020 [129] x[178]1 [164] 18
1025 [152]3,a(x)
1030 [130]
1035 [152]3,t$
1036 [152]3,m$
1037 [152]3,j$
1040 [160] 3
1045 [151] 214,16:[151] 211,8:[158] 58640
1050 [153]" daten sind gespeichertwait "
1055 [129] x[178]1 [164] 2000:[130]
1060 [137] 30
1065 [143] ** programm - ende **
1070 [141] 2500
1075 [153]:[153]:[153]:[153]:[153]:[153]
1080 [153]"haben sie alle daten gesichert ? ";
1085 [161] x$
1087 [153]"cmdstop ";:[129] x[178]1 [164] 200:[130]
1088 [153]"cmd ";:[129] x[178]1 [164] 200:[130]
1090 [139] x$[178]"j"[167] [153]"cmdjawait":[137] 1115
1095 [139] x$[178]"n"[167] [153]"cmdneinwait":[137] 1105
1100 [137] 1085
1105 [129] x[178]1 [164] 1000:[130]
1110 [137] 30
1115 [129] x[178]1 [164] 1000:[130]
1120 [141] 2500
1125 [153]:[153]:[153]:[153]:[153]:[153]:[153]:[153]
1130 [153] [163]6)"oncmdstop p r o g r a m m - e n d e "
1135 [129] x[178]1 [164] 200:[130]
1140 [153] [163]6)"oncmd p r o g r a m m - e n d e "
1145 [129] x[178]1 [164] 200:[130]
1150 [137] 1130
1155 [143] ** kurse drucken **
1160 [141] 2500
1165 [153] [163]3)"bitte legen sie das papier ein und"
1170 [153]
1175 [153] [163]8)"schalten den drucker an"
1180 [153]
1185 [153] [163]15)"t a s t ewait"
1190 [151] 198,0:[146] 198,1
1200 [141] 2770
1205 po$[178][199](16):sr$[178][199](14)
1207 [141] 2500
1208 [153]"";[163]13)" ich drucke ! wait"
1210 [159] 3,4
1215 [157] 3
1218 [152]3,sr$;"ortantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantan^"
1220 [152]3,"(NULL)";po$;"05";"land";po$;"30";"(NULL)";po$;"35";"waehrung";po$;"54";"(NULL)";
1224 [152]3,po$;"57";"dm kurs";po$;"78";"(NULL)"
1225 [152]3,"-tantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantan<"
1230 [129] x[178]1 [164] 18
1235 [152]3,"(NULL)";po$;"03";a$(x);po$;"30""(NULL)";po$;"33";b(x);b$(x);po$;"54";"(NULL)";
1240 [152]3,po$;"57";a(x);po$;"73";"dm";po$;"78";"(NULL)"
1245 [130]
1250 [152]3,"/tantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantantanexp"
1255 [152]3
1260 [152]3,po$;"05";"stand : ";t$;".";m$;".";j$
1265 [152]3
1270 [160] 3
1275 [153]"on";[163]12)" f e r t i g ! wait"
1280 [129] x[178]1 [164] 2000:[130]
1285 [137] 30
2500 [143] ** titel **
2505 [153]"load";
2510 [129] x[178]1 [164] 3:[153]t$(x);:[130]
2515 [153]:[153]
2520 [142]
2525 [143] ** daten ausgeben **
2530 [141] 2500
2531 z[178]0
2532 [153]"onon";
2535 [129] x[178]1 [164] 40:[153]"and";:[130]
2540 [129] x[178]1 [164] 18
2545 [153]"int";[166]38)"abs";
2550 [130]
2555 [129] x[178]1 [164] 40:[153]"usr";:[130]
2560 [153]""
2565 [153]
2570 [129] x[178]1 [164] 18
2575 y[178][195](a$(x))
2580 [139] x[178]10 [167] z[178][171]1
2585 y[178]26[171]y
2590 [153][166]2);x;[166]2[170]z)"peek ";a$(x);[166]y)
2595 [130]
2598 [139] zz[178]1 [167] [142]
2600 [153]"welches land (nummer) ?";
2605 gr[178]2
2608 [141] 2665
2610 x[178][197](be$)
2612 [129] y[178]1 [164] 18
2615 [139] x[178]y [167] 2630
2620 [130]
2625 [137] 2635
2630 [142]
2635 [141] 2500
2640 [153] [163]10)"falsche nummer !!!!"
2645 [153]:[153]:[153]:[153]:[153]
2650 [153] [163]15)"t a s t e"
2655 [151] 198,0:[146] 198,1
2659 [151] 198,0
2660 [137] 2525
2665 [143] ** eingabe **
2669 be$[178]"":z[178]0
2670 [153]" wait";
2675 [161] x$
2680 [139] x$[178][199](13)[167] [153]"cmd ":[142]
2683 [139] x$[178][199](20)[167] 2720
2684 [139] x$[178][199](32)[167] zz[178]0:[137] 30
2685 [139] x$[178]"0"[176] x$[178]"1"[176] x$[178]"2"[176] x$[178]"3"[176] x$[178]"4"[176] x$[178]"5"[167] 2705
2690 [139] x$[178]"6"[176] x$[178]"7"[176] x$[178]"8"[176] x$[178]"9"[167] 2705
2700 [137] 2675
2705 [139] z[178]gr [167] 2675
2708 be$[178]be$[170]x$
2710 [153]"cmd"x$;" wait";
2714 z[178]z[170]1
2715 [137] 2675
2720 [139] z[178]0 [167] 2675
2724 [153]"cmd cmdcmd wait";
2725 be$[178][200](be$,z[171]1)
2730 z[178]z[171]1
2735 [137] 2675
2740 [143] ** floppy an **
2743 [151] 768,185
2745 [159] 1,8,15,"i":[160] 1
2748 [151] 768,139
2750 [139] st[178][171]128 [167] [153]:[153] [163]10)"floppy nicht bereit !wait"
2755 [139] st[178][171]128 [167] [129] x[178]1 [164] 2000:[130]
2760 [139] st[178][171]128 [167] 30
2765 [142]
2770 [143] ** drucker an **
2775 gn[178]4
2779 [151] 768,185
2780 [159] 127,gn
2785 [152]127:[160] 127
2789 [151] 768,139
2790 [139] st[178][171]128 [167] [153]:[153] [163]9)"drucker nicht bereit !"
2795 [139] st[178][171]128 [167] [129] x[178]1 [164] 2000:[130]
2800 [139] st[178][171]128 [167] 30
2805 [142]
2810 [143] ** falsche zahl **
2815 [129] x[178]1 [164] 18
2820 [139] x[178]y [167] [142]
2825 [130]
2830 [141] 2500
2835 [153] [163]10)"falsche nummer !!!!"
2840 [153]:[153]:[153]:[153]:[153]
2845 [153] [163]15)"t a s t e"
2850 [151] 198,0:[146] 198,1
2855 [151] 198,0
2860 [137] 365
2865 [143] ** datentraeger **
2870 [139] d[178]2 [167] 2895
2875 [151] 214,9:[151] 211,15:[158] 58640
2880 [153]"diskette / kassettewait"
2885 d[178]2
2890 [137] 2910
2895 [151] 214,9:[151] 211,15:[158] 58640
2900 [153]"diskettewait / kassette"
2905 d[178]1
2910 [151] 214,12:[151] 211,27:[158] 58640
2915 [139] d[178]1 [167] [153]"diskettewait"
2920 [139] d[178]2 [167] [153]"kassettewait"
2925 [142]
3000 [131] usa,1.89,1,dollar
3005 [131] kanada,1.44,1,dollar
3010 [131] england,2.91,1,pfund
3015 [131] irland,2.72,1,pfund
3020 [131] holland,89.25,100,hfl
3025 [131] schweiz,120.00,100,sfrs
3030 [131] belgien,4.87,100,bfrs
3035 [131] frankreich,30.75,100,ff
3040 [131] daenemark,27.25,100,dkr
3050 [131] norwegen,27.00,100,nkr
3055 [131] schweden,29.00,100,skr
3060 [131] italien,1.45,1000,lire
3065 [131] oesterreich,14.33,100,oes
3070 [131] spanien,1.47,100,ptas
3075 [131] portugal,1.50,100,esc
3080 [131] finnland,41.00,100,fmk
3085 [131] griechenland,1.55,100,dra
3090 [131] jugoslawien,0.45,100,din
3095 [131] 24,feb,1987