Home » Personal collection » Acorn ADFS disks » Electron » Finished_programs.ADF » TAPE3/A/APP\BLOCK
TAPE3/A/APP\BLOCK
This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.
Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.
Tape/disk: | Home » Personal collection » Acorn ADFS disks » Electron » Finished_programs.ADF |
Filename: | TAPE3/A/APP\BLOCK |
Read OK: | ✔ |
File size: | 0678 bytes |
Load address: | FFFF0E00 |
Exec address: | FFFF8023 |
Duplicates
There are 2 duplicate copies of this file in the archive:
- Personal collection » Acorn ADFS disks » Electron » MTF_finished_programs.ADF » TAPE3/A/APP\BLOCK
- Personal collection » Acorn ADFS disks » Electron » Finished_programs.ADF » TAPE3/A/APP\BLOCK
- Personal collection » Acorn hard disk » zipped_disks » elk03 » finished/TAPE3/A/APP.BLOCK
File contents
5 min=99999 6 minapp=0 7 realmin=0 10 @%=&20304 20 MODE 0 30 early=0 40 total=0 45 PROCgraph 50 RESTORE 220 60 DIM consult(30) 70 FOR count=1 TO 30 80 READ consult 90 total=total+consult:consult(count)=consult 100 NEXT count 110 FOR appoint=0 TO 20 STEP 0.05 120 in=0:out=0:doctor=0:patient=0:patient2=0 130 FOR patcount%=1 TO 30 140 consult=consult(patcount%) 150 apptime=appoint*((patcount%-((patcount%-1) MOD 3))-1)-early 160 IF apptime>out THEN newin=apptime:GOTO 180 170 newin=out:patient=patient+(out-apptime):IF in>apptime THEN patient2=patient2+(out-in) ELSE patient2=patient2+(out-apptime) 180 in=newin:out=newin+consult:NEXT patcount% 190 doctor=out-total 195 PROCplot 196 GOTO 210 200 PRINT TAB(0) INT((appoint*10)+0.5)/10;TAB(10)FNx(doctor);TAB(20)FNx(patient);TAB(31)FNx(patient2);TAB(42)FNx(doctor+patient);TAB(53)FNx(doctor+patient2);TAB(64)FNx(100*((doctor+patient2)/out));"% wasted" 210 NEXT appoint 212 PRINT '"minpoint=";min;" optimum appointment=";minapp;" real minpoint(without weighting)=";realmin 215 END 220 DATA 6,2,5,1,7,16,2,5,4,7,2,7,2,3,4,1,3,6,3,5,4,18,6,3,5,1,4,19,3,5 230 DEF FNx(X):=X+0.0000005 240 DATA 1,1,1,2,2,2,2,3,3,3,3,3,4,4,4,4,5,5,5,5,5,6,6,6,7,7,7,16,18,19 250 DATA 19,18,16,7,7,7,6,6,6,5,5,5,5,5,4,4,4,4,3,3,3,3,3,2,2,2,2,1,1,1 260 DATA 1,1,1,2,2,2,3,2,3,3,3,4,3,4,5,4,4,5,5,5,5,6,6,6,7,7,7,16,18,19 1000 DEFPROCgraph 1010 MOVE 100,900:DRAW 100,100:DRAW 1100,100 1020 @%=&90A:VDU 5:FOR label=0 TO 20:MOVE (100+50*(label)),99:DRAW (100+50*(label)),90:MOVE(50*(label)-50),70:PRINT label:NEXT label:VDU 4:@%=&20300 1100 ENDPROC 2000 DEFPROCplot 2010 MOVE (100+50*(appoint)),(100+((800/2200)*(doctor*2+patient))):DRAW (100+50*(appoint)),(100+((800/2200)*(doctor*2+patient))) 2015 IF doctor*2+patient<min THEN min=doctor*2+patient:minapp=appoint:realmin=doctor+patient 2020 ENDPROC
min=99999 minapp=0 realmin=0 @%=&20304 � 0 early=0 ( total=0 - �graph 2 � �d\@ < � consult(30) F � count=1 � 30 P � consult Z/ total=total+consult:consult(count)=consult d � count n � appoint=0 � 20 � 0.05 x- in=0:out=0:doctor=0:patient=0:patient2=0 � � patcount%=1 � 30 � consult=consult(patcount%) �> apptime=appoint*((patcount%-((patcount%-1) � 3))-1)-early �) � apptime>out � newin=apptime:� �tt@ �x newin=out:patient=patient+(out-apptime):� in>apptime � patient2=patient2+(out-in) � patient2=patient2+(out-apptime) �+ in=newin:out=newin+consult:� patcount% � doctor=out-total � �plot � � �dR@ ȯ � �0) �((appoint*10)+0.5)/10;�10)�x(doctor);�20)�x(patient);�31)�x(patient2);�42)�x(doctor+patient);�53)�x(doctor+patient2);�64)�x(100*((doctor+patient2)/out));"% wasted" � � appoint �c � '"minpoint=";min;" optimum appointment=";minapp;" real minpoint(without weighting)=";realmin � � �E � 6,2,5,1,7,16,2,5,4,7,2,7,2,3,4,1,3,6,3,5,4,18,6,3,5,1,4,19,3,5 � � �x(X):=X+0.0000005 �E � 1,1,1,2,2,2,2,3,3,3,3,3,4,4,4,4,5,5,5,5,5,6,6,6,7,7,7,16,18,19 �E � 19,18,16,7,7,7,6,6,6,5,5,5,5,5,4,4,4,4,3,3,3,3,3,2,2,2,2,1,1,1 E � 1,1,1,2,2,2,3,2,3,3,3,4,3,4,5,4,4,5,5,5,5,6,6,6,7,7,7,16,18,19 � ��graph �# � 100,900:� 100,100:� 1100,100 �} @%=&90A:� 5:� label=0 � 20:� (100+50*(label)),99:� (100+50*(label)),90:�(50*(label)-50),70:� label:� label:� 4:@%=&20300 L � � ��plot �z � (100+50*(appoint)),(100+((800/2200)*(doctor*2+patient))):� (100+50*(appoint)),(100+((800/2200)*(doctor*2+patient))) �X � doctor*2+patient<min � min=doctor*2+patient:minapp=appoint:realmin=doctor+patient � � �
00000000 0d 00 05 0e 20 6d 69 6e 3d 39 39 39 39 39 0d 00 |.... min=99999..| 00000010 06 0d 20 6d 69 6e 61 70 70 3d 30 0d 00 07 0e 20 |.. minapp=0.... | 00000020 72 65 61 6c 6d 69 6e 3d 30 0d 00 0a 0e 20 40 25 |realmin=0.... @%| 00000030 3d 26 32 30 33 30 34 0d 00 14 08 20 eb 20 30 0d |=&20304.... . 0.| 00000040 00 1e 0c 20 65 61 72 6c 79 3d 30 0d 00 28 0c 20 |... early=0..(. | 00000050 74 6f 74 61 6c 3d 30 0d 00 2d 0b 20 f2 67 72 61 |total=0..-. .gra| 00000060 70 68 0d 00 32 0b 20 f7 20 8d 64 5c 40 0d 00 3c |ph..2. . .d\@..<| 00000070 12 20 de 20 63 6f 6e 73 75 6c 74 28 33 30 29 0d |. . consult(30).| 00000080 00 46 13 20 e3 20 63 6f 75 6e 74 3d 31 20 b8 20 |.F. . count=1 . | 00000090 33 30 0d 00 50 0e 20 f3 20 63 6f 6e 73 75 6c 74 |30..P. . consult| 000000a0 0d 00 5a 2f 20 74 6f 74 61 6c 3d 74 6f 74 61 6c |..Z/ total=total| 000000b0 2b 63 6f 6e 73 75 6c 74 3a 63 6f 6e 73 75 6c 74 |+consult:consult| 000000c0 28 63 6f 75 6e 74 29 3d 63 6f 6e 73 75 6c 74 0d |(count)=consult.| 000000d0 00 64 0c 20 ed 20 63 6f 75 6e 74 0d 00 6e 1c 20 |.d. . count..n. | 000000e0 e3 20 61 70 70 6f 69 6e 74 3d 30 20 b8 20 32 30 |. appoint=0 . 20| 000000f0 20 88 20 30 2e 30 35 0d 00 78 2d 20 69 6e 3d 30 | . 0.05..x- in=0| 00000100 3a 6f 75 74 3d 30 3a 64 6f 63 74 6f 72 3d 30 3a |:out=0:doctor=0:| 00000110 70 61 74 69 65 6e 74 3d 30 3a 70 61 74 69 65 6e |patient=0:patien| 00000120 74 32 3d 30 0d 00 82 17 20 e3 20 70 61 74 63 6f |t2=0.... . patco| 00000130 75 6e 74 25 3d 31 20 b8 20 33 30 0d 00 8c 1f 20 |unt%=1 . 30.... | 00000140 63 6f 6e 73 75 6c 74 3d 63 6f 6e 73 75 6c 74 28 |consult=consult(| 00000150 70 61 74 63 6f 75 6e 74 25 29 0d 00 96 3e 20 61 |patcount%)...> a| 00000160 70 70 74 69 6d 65 3d 61 70 70 6f 69 6e 74 2a 28 |pptime=appoint*(| 00000170 28 70 61 74 63 6f 75 6e 74 25 2d 28 28 70 61 74 |(patcount%-((pat| 00000180 63 6f 75 6e 74 25 2d 31 29 20 83 20 33 29 29 2d |count%-1) . 3))-| 00000190 31 29 2d 65 61 72 6c 79 0d 00 a0 29 20 e7 20 61 |1)-early...) . a| 000001a0 70 70 74 69 6d 65 3e 6f 75 74 20 8c 20 6e 65 77 |pptime>out . new| 000001b0 69 6e 3d 61 70 70 74 69 6d 65 3a e5 20 8d 74 74 |in=apptime:. .tt| 000001c0 40 0d 00 aa 78 20 6e 65 77 69 6e 3d 6f 75 74 3a |@...x newin=out:| 000001d0 70 61 74 69 65 6e 74 3d 70 61 74 69 65 6e 74 2b |patient=patient+| 000001e0 28 6f 75 74 2d 61 70 70 74 69 6d 65 29 3a e7 20 |(out-apptime):. | 000001f0 69 6e 3e 61 70 70 74 69 6d 65 20 8c 20 70 61 74 |in>apptime . pat| 00000200 69 65 6e 74 32 3d 70 61 74 69 65 6e 74 32 2b 28 |ient2=patient2+(| 00000210 6f 75 74 2d 69 6e 29 20 8b 20 70 61 74 69 65 6e |out-in) . patien| 00000220 74 32 3d 70 61 74 69 65 6e 74 32 2b 28 6f 75 74 |t2=patient2+(out| 00000230 2d 61 70 70 74 69 6d 65 29 0d 00 b4 2b 20 69 6e |-apptime)...+ in| 00000240 3d 6e 65 77 69 6e 3a 6f 75 74 3d 6e 65 77 69 6e |=newin:out=newin| 00000250 2b 63 6f 6e 73 75 6c 74 3a ed 20 70 61 74 63 6f |+consult:. patco| 00000260 75 6e 74 25 0d 00 be 15 20 64 6f 63 74 6f 72 3d |unt%.... doctor=| 00000270 6f 75 74 2d 74 6f 74 61 6c 0d 00 c3 0a 20 f2 70 |out-total.... .p| 00000280 6c 6f 74 0d 00 c4 0b 20 e5 20 8d 64 52 40 0d 00 |lot.... . .dR@..| 00000290 c8 af 20 f1 20 8a 30 29 20 a8 28 28 61 70 70 6f |.. . .0) .((appo| 000002a0 69 6e 74 2a 31 30 29 2b 30 2e 35 29 2f 31 30 3b |int*10)+0.5)/10;| 000002b0 8a 31 30 29 a4 78 28 64 6f 63 74 6f 72 29 3b 8a |.10).x(doctor);.| 000002c0 32 30 29 a4 78 28 70 61 74 69 65 6e 74 29 3b 8a |20).x(patient);.| 000002d0 33 31 29 a4 78 28 70 61 74 69 65 6e 74 32 29 3b |31).x(patient2);| 000002e0 8a 34 32 29 a4 78 28 64 6f 63 74 6f 72 2b 70 61 |.42).x(doctor+pa| 000002f0 74 69 65 6e 74 29 3b 8a 35 33 29 a4 78 28 64 6f |tient);.53).x(do| 00000300 63 74 6f 72 2b 70 61 74 69 65 6e 74 32 29 3b 8a |ctor+patient2);.| 00000310 36 34 29 a4 78 28 31 30 30 2a 28 28 64 6f 63 74 |64).x(100*((doct| 00000320 6f 72 2b 70 61 74 69 65 6e 74 32 29 2f 6f 75 74 |or+patient2)/out| 00000330 29 29 3b 22 25 20 77 61 73 74 65 64 22 0d 00 d2 |));"% wasted"...| 00000340 0e 20 ed 20 61 70 70 6f 69 6e 74 0d 00 d4 63 20 |. . appoint...c | 00000350 f1 20 27 22 6d 69 6e 70 6f 69 6e 74 3d 22 3b 6d |. '"minpoint=";m| 00000360 69 6e 3b 22 20 6f 70 74 69 6d 75 6d 20 61 70 70 |in;" optimum app| 00000370 6f 69 6e 74 6d 65 6e 74 3d 22 3b 6d 69 6e 61 70 |ointment=";minap| 00000380 70 3b 22 20 72 65 61 6c 20 6d 69 6e 70 6f 69 6e |p;" real minpoin| 00000390 74 28 77 69 74 68 6f 75 74 20 77 65 69 67 68 74 |t(without weight| 000003a0 69 6e 67 29 3d 22 3b 72 65 61 6c 6d 69 6e 0d 00 |ing)=";realmin..| 000003b0 d7 06 20 e0 0d 00 dc 45 20 dc 20 36 2c 32 2c 35 |.. ....E . 6,2,5| 000003c0 2c 31 2c 37 2c 31 36 2c 32 2c 35 2c 34 2c 37 2c |,1,7,16,2,5,4,7,| 000003d0 32 2c 37 2c 32 2c 33 2c 34 2c 31 2c 33 2c 36 2c |2,7,2,3,4,1,3,6,| 000003e0 33 2c 35 2c 34 2c 31 38 2c 36 2c 33 2c 35 2c 31 |3,5,4,18,6,3,5,1| 000003f0 2c 34 2c 31 39 2c 33 2c 35 0d 00 e6 19 20 dd 20 |,4,19,3,5.... . | 00000400 a4 78 28 58 29 3a 3d 58 2b 30 2e 30 30 30 30 30 |.x(X):=X+0.00000| 00000410 30 35 0d 00 f0 45 20 dc 20 31 2c 31 2c 31 2c 32 |05...E . 1,1,1,2| 00000420 2c 32 2c 32 2c 32 2c 33 2c 33 2c 33 2c 33 2c 33 |,2,2,2,3,3,3,3,3| 00000430 2c 34 2c 34 2c 34 2c 34 2c 35 2c 35 2c 35 2c 35 |,4,4,4,4,5,5,5,5| 00000440 2c 35 2c 36 2c 36 2c 36 2c 37 2c 37 2c 37 2c 31 |,5,6,6,6,7,7,7,1| 00000450 36 2c 31 38 2c 31 39 0d 00 fa 45 20 dc 20 31 39 |6,18,19...E . 19| 00000460 2c 31 38 2c 31 36 2c 37 2c 37 2c 37 2c 36 2c 36 |,18,16,7,7,7,6,6| 00000470 2c 36 2c 35 2c 35 2c 35 2c 35 2c 35 2c 34 2c 34 |,6,5,5,5,5,5,4,4| 00000480 2c 34 2c 34 2c 33 2c 33 2c 33 2c 33 2c 33 2c 32 |,4,4,3,3,3,3,3,2| 00000490 2c 32 2c 32 2c 32 2c 31 2c 31 2c 31 0d 01 04 45 |,2,2,2,1,1,1...E| 000004a0 20 dc 20 31 2c 31 2c 31 2c 32 2c 32 2c 32 2c 33 | . 1,1,1,2,2,2,3| 000004b0 2c 32 2c 33 2c 33 2c 33 2c 34 2c 33 2c 34 2c 35 |,2,3,3,3,4,3,4,5| 000004c0 2c 34 2c 34 2c 35 2c 35 2c 35 2c 35 2c 36 2c 36 |,4,4,5,5,5,5,6,6| 000004d0 2c 36 2c 37 2c 37 2c 37 2c 31 36 2c 31 38 2c 31 |,6,7,7,7,16,18,1| 000004e0 39 0d 03 e8 0c 20 dd f2 67 72 61 70 68 0d 03 f2 |9.... ..graph...| 000004f0 23 20 ec 20 31 30 30 2c 39 30 30 3a df 20 31 30 |# . 100,900:. 10| 00000500 30 2c 31 30 30 3a df 20 31 31 30 30 2c 31 30 30 |0,100:. 1100,100| 00000510 0d 03 fc 7d 20 40 25 3d 26 39 30 41 3a ef 20 35 |...} @%=&90A:. 5| 00000520 3a e3 20 6c 61 62 65 6c 3d 30 20 b8 20 32 30 3a |:. label=0 . 20:| 00000530 ec 20 28 31 30 30 2b 35 30 2a 28 6c 61 62 65 6c |. (100+50*(label| 00000540 29 29 2c 39 39 3a df 20 28 31 30 30 2b 35 30 2a |)),99:. (100+50*| 00000550 28 6c 61 62 65 6c 29 29 2c 39 30 3a ec 28 35 30 |(label)),90:.(50| 00000560 2a 28 6c 61 62 65 6c 29 2d 35 30 29 2c 37 30 3a |*(label)-50),70:| 00000570 f1 20 6c 61 62 65 6c 3a ed 20 6c 61 62 65 6c 3a |. label:. label:| 00000580 ef 20 34 3a 40 25 3d 26 32 30 33 30 30 0d 04 4c |. 4:@%=&20300..L| 00000590 06 20 e1 0d 07 d0 0b 20 dd f2 70 6c 6f 74 0d 07 |. ..... ..plot..| 000005a0 da 7a 20 ec 20 28 31 30 30 2b 35 30 2a 28 61 70 |.z . (100+50*(ap| 000005b0 70 6f 69 6e 74 29 29 2c 28 31 30 30 2b 28 28 38 |point)),(100+((8| 000005c0 30 30 2f 32 32 30 30 29 2a 28 64 6f 63 74 6f 72 |00/2200)*(doctor| 000005d0 2a 32 2b 70 61 74 69 65 6e 74 29 29 29 3a df 20 |*2+patient))):. | 000005e0 28 31 30 30 2b 35 30 2a 28 61 70 70 6f 69 6e 74 |(100+50*(appoint| 000005f0 29 29 2c 28 31 30 30 2b 28 28 38 30 30 2f 32 32 |)),(100+((800/22| 00000600 30 30 29 2a 28 64 6f 63 74 6f 72 2a 32 2b 70 61 |00)*(doctor*2+pa| 00000610 74 69 65 6e 74 29 29 29 0d 07 df 58 20 e7 20 64 |tient)))...X . d| 00000620 6f 63 74 6f 72 2a 32 2b 70 61 74 69 65 6e 74 3c |octor*2+patient<| 00000630 6d 69 6e 20 8c 20 6d 69 6e 3d 64 6f 63 74 6f 72 |min . min=doctor| 00000640 2a 32 2b 70 61 74 69 65 6e 74 3a 6d 69 6e 61 70 |*2+patient:minap| 00000650 70 3d 61 70 70 6f 69 6e 74 3a 72 65 61 6c 6d 69 |p=appoint:realmi| 00000660 6e 3d 64 6f 63 74 6f 72 2b 70 61 74 69 65 6e 74 |n=doctor+patient| 00000670 0d 07 e4 06 20 e1 0d ff |.... ...| 00000678