home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
basic
/
library
/
zbasic
/
pia
/
piain.z
< prev
next >
Wrap
Text File
|
1987-11-17
|
5KB
|
141 lines
1 REM Compile with ZBASIC RUN+
2 REM Parts of this software were created using the ZBasic Compiler.
3 REM Portions of this Code are (C) Copyrighted, 1985 by Zedcor, Inc.
115 DIM A(2,6),B(7,114),C(4,100),D(9,6),F(10,8),G(6,114),H(3,6),I(114)
120 DIM J(2,51),K(8,2),L(6,114),O(114),Q(8,4),T(13,3),V(4,6),Z(486)
125 DIM 6A$(2),9D$(12),66E$(8),36F$(6),4G$(10),4H$(7),23K$(7),41N$(3)
126 DIM 10P$(3),43Q$(4),35R$(2),35T$(4),35U$(4),66W$(8),43X$(2)
127 DIM 66B$,11C$,20J$,20L$,66M$,2O$,1S$,12V$,35Y$
128 DIM A1,A2,A3,A4,A5,A6,A7,A8,A9,C1,C2,C5,C7,C8,C9,F1,F5,F6,G1,G2
129 DIM G3,G4,G5,G6,G7,G8,G9,I1,I2,I3,I4,I5,I6,I7,I8,I9,K1,K2,K3,K4
130 DIM K5,K6,K7,K8,K9,M1,M2,M3,M4,M5,M6,M7,M8,M9,N1,N2,N3,N4,N5,N6
131 DIM N7,N8,N9,P1,P2,P3,P4,P5,P6,P7,P8,P9,Q1,Q4,Q5,Q6,Q9,R1,S1,S2
132 DIM S3,S4,S5,S6,S7,S8,S9,T1,T2,T3,T4,T5,T6,T7,T8,T9,U1,U2,U3,U4
133 DIM U5,U6,U7,U8,U9,V2,V4,V5,V6,V7,V8,V9,W1,W2,W3,X1,X2,X6,X7,X9
134 CLEAR END: INKEY$(1): ON INKEY$(1) GOTO 9900
135 N5=114: N7=N5-14
1028 PRINT " > ";: GOSUB 9830: INPUT&1,"";T5: GOSUB 9860
1042 GOSUB 9830: INPUT&8,"";L$: L$=L$+".pia"
1043 ON ERROR GOSUB 6100
1046 ON ERROR RETURN: IF K6 THEN 1005
1296 ON ERROR RETURN
1510 OPEN"I",1,"PIACAL.CHN": RUN 1
2205 K4=G1: GOSUB 9820: CLS: I3=1: LOCATE 0,1
2320 LOCATE U6-1,U7: PRINT USING " ######.## ";O(K1-1936)
2410 LOCATE U6,U7: INPUT&9,"";C$: O(K1-1936)=VAL(C$)
2425 GOSUB 2600: GOSUB 2550: LOCATE U6,U7: GOTO 2405
2460 LOCATE U6-1,U7: PRINT ">";
2505 GOSUB 9850: LOCATE 9,22
2555 GOSUB 9840: LOCATE 9,22
2610 LOCATE 7,22: PRINT STRING$(65," ");
2615 LOCATE 7,23: PRINT STRING$(65," ");
2655 GOSUB 9850: LOCATE 9,22
2720 LOCATE U6-1,U7: PRINT USING " ######.## ";O(K1-1936)
2905 GOSUB 9830: INPUT;&1,"";C$
2915 BEEP: LOCATE 61,23: PRINT " ";: LOCATE 61,23: GOTO 2905
3015 GOSUB 9860: LOCATE 25,23
3075 INKEY$(1)
3080 ON INKEY$(14) GOTO 3300 : REM Cursor up
3085 ON INKEY$(17) GOTO 3350 : REM Cursor left
3090 ON INKEY$(19) GOTO 3400 : REM Cursor right
3095 ON INKEY$(22) GOTO 3450 : REM Cursor down
3100 ON INKEY$(23) GOTO 3500 : REM Exit correction mode (page down)
3105 ON INKEY$(24) GOTO 3150 : REM Data entry (insert)
3155 INKEY$(0)
3175 I3=1: GOSUB 2400
3270 LOCATE U6-1,U7: PRINT USING " ######.## ";O(K1-1936)
3280 ON INKEY$(14) RETURN
3281 ON INKEY$(17) RETURN
3282 ON INKEY$(19) RETURN
3283 ON INKEY$(22) RETURN
3284 ON INKEY$(23) RETURN
3285 ON INKEY$(24) RETURN
3286 INKEY$(1)
3287 GOTO 3005
3290 INKEY$(1)
3295 GOTO 3115
3307 LOCATE U6-1,U7: PRINT " ";: K1=K1-1
3325 GOTO 3120
3357 LOCATE U6-1,U7: PRINT " ";: K1=K1-20
3365 GOTO 3120
3407 LOCATE U6-1,U7: PRINT " ";: K1=K1+20
3415 GOTO 3120
3457 LOCATE U6-1,U7: PRINT " ";: K1=K1+1
3475 GOTO 3120
3502 ON INKEY$(14) RETURN
3503 ON INKEY$(17) RETURN
3504 ON INKEY$(19) RETURN
3505 ON INKEY$(22) RETURN
3506 ON INKEY$(23) RETURN
3507 ON INKEY$(24) RETURN
3510 LOCATE U6-1,U7: PRINT " ";
3515 GOTO 3005
3555 GOSUB 9850: LOCATE 30,21: PRINT " Correction mode "
3560 LOCATE 9,22: PRINT "-";CHR$(26);" = Right ";CHR$(24);
3570 LOCATE 9,23: PRINT CHR$(27);"- = Left ";CHR$(25);
4110 GOSUB 9830: INPUT&1,"";C$: GOSUB 9860
4310 PRINT " > ";: GOSUB 9830: LINEINPUT&65,"";M$: GOSUB 9860: RETURN
4716 PRINT "> ";: GOSUB 9830: INPUT&9,"";B(1,N2+K1): GOSUB 9860
5004 ON ERROR GOSUB 5030
5006 ON ERROR RETURN
5100
5105
5110
5115
5120
5125
5130
5135
5300
5305
5310
5315
5317
5320
5530 PRINT " (y or n) > ";: GOSUB 9830: INPUT&1,"";C$: GOSUB 9860
5910 GOSUB 9830: INPUT&3,"";G(0,N6): GOSUB 9860
6105 BEEP: GOSUB 9840: K6=1: ERROR=0
6115 GOSUB 6200: RETURN
6816 GOSUB 9830: INPUT&6,"";C(2,K2): GOSUB 9860
6831 GOSUB 9830: INPUT&1,"";O$: GOSUB 9860
6861 GOSUB 9830: INPUT&6,"";F(K2,K1): GOSUB 9860
6880 IF T5>=1 THEN LINEINPUT #1,B$: RETURN
7056 PRINT " > ";: GOSUB 9830: LINEINPUT&65,"";B$: GOSUB 9860
7775 C5=1.-I6*.285/I1: RETURN
7915 GOSUB 9830: INPUT&6,"";B(6,K2): GOSUB 9860
7920 IF T5>=1 THEN LINEINPUT #1,M$: RETURN
8056 GOSUB 9830: INPUT&10,"";C$
8371 GOSUB 9830: INPUT&6,"";C(2,K2): GOSUB 9860
8390 GOSUB 9830: INPUT&6,"";F(K2,K1): GOSUB 9860
8470 GOSUB 9830: INPUT&6,"";B(6,K2): GOSUB 9860
8541 GOSUB 9830: INPUT&9,"";B(1,N2+K1): GOSUB 9860
8590 PRINT USING " Monthly noncovered pension is $####.##";F6
8711 GOSUB 9830: INPUT&7,"";C$
8756 GOSUB 9830: INPUT&1,"";A6: GOSUB 9860
8806 GOSUB 9830: INPUT&10,"";C$
8856 GOSUB 9830: INPUT&7,"";C$
8915 PRINT " > ";: GOSUB 9830: INPUT&1,"";A5: GOSUB 9860
8965 PRINT " > ";: GOSUB 9830: INPUT&1,"";A4: GOSUB 9860
9015 PRINT " > ";: GOSUB 9830: INPUT&1,"";A3: GOSUB 9860
9056 GOSUB 9830: INPUT&10,"";C$
9107 GOSUB 9830: INPUT&4,"";G1
9175 PRINT " > ";: GOSUB 9830: INPUT&1,"";T9: GOSUB 9860
9206 GOSUB 9830: INPUT&4,"";G2
9256 GOSUB 9830: INPUT&10,"";C$
9381 PRINT " > ";: GOSUB 9830: INPUT&1,"";A1: GOSUB 9860
9426 PRINT " > ";: GOSUB 9830: INPUT&1,"";T3: GOSUB 9860
9465 PRINT " > ";: GOSUB 9830: INPUT&1,"";A2: GOSUB 9860
9560 PRINT "(0 if none) > ";: GOSUB 9830: INPUT&9,"";F6: GOSUB 9860
9621 GOSUB 9830: INPUT&1,"";C$: GOSUB 9860
9627 GOSUB 9830: INPUT&8,"";L$: GOSUB 9860: L$=L$+".pia"
9820 COLOR 0,K(0,2),1: RETURN
9830 COLOR 0,K(1,2),1: RETURN
9840 COLOR 0,K(2,2),1: RETURN
9850 COLOR 0,K(3,2),1: RETURN
9860 COLOR 0,K(5,2),1: RETURN
9863 COLOR 0,K(6,2),1: RETURN
9864 COLOR 0,K(7,2),1: RETURN
9870 COLOR 0,K(8,2),1: RETURN
9885 GOSUB 9830: INPUT&1,"";C$: GOSUB 9860