Home » Personal collection » Acorn ADFS disks » Electron » MTF_finished_programs.ADF » TAPE3/A/APP\WASTED

TAPE3/A/APP\WASTED

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 » MTF_finished_programs.ADF
Filename: TAPE3/A/APP\WASTED
Read OK:
File size: 02D7 bytes
Load address: FFFF0E00
Exec address: FFFF8023
Duplicates

There are 2 duplicate copies of this file in the archive:

File contents
    4 @%=&20300
    5 MODE3
   10 FOR appoint=0 TO 20 STEP 0.5
   20 RESTORE
   30 in=0:out=0:doctor=0:patient=0:patient2=0
   40 FOR patcount%=1 TO 30
   50 READ consult
   60 apptime=appoint*(patcount%-1)
   70 IF apptime>out THEN newin=apptime:doctor=doctor+(newin-out):out=newin+consult:in=newin:NEXT patcount%:GOTO 100
   80 newin=out:patient=patient+(out-apptime):IF in>apptime THEN patient2=patient2+(out-in) ELSE patient2=patient2+(out-apptime)
   90 in=newin:out=newin+consult:NEXT patcount%
  100 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"
  110 NEXT appoint
  120 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
  130 DEF FNx(X):=INT(X*1000)/1000
 @%=&20300
 �3

 � appoint=0 � 20 � 0.5
 �
- in=0:out=0:doctor=0:patient=0:patient2=0
( � patcount%=1 � 30
2 � consult
<" apptime=appoint*(patcount%-1)
Fj � apptime>out � newin=apptime:doctor=doctor+(newin-out):out=newin+consult:in=newin:� patcount%:� �Dd@
Px newin=out:patient=patient+(out-apptime):� in>apptime � patient2=patient2+(out-in) � patient2=patient2+(out-apptime)
Z+ in=newin:out=newin+consult:� patcount%
d� � �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"
n � appoint
xE � 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*1000)/1000
�
00000000  0d 00 04 0e 20 40 25 3d  26 32 30 33 30 30 0d 00  |.... @%=&20300..|
00000010  05 07 20 eb 33 0d 00 0a  1b 20 e3 20 61 70 70 6f  |.. .3.... . appo|
00000020  69 6e 74 3d 30 20 b8 20  32 30 20 88 20 30 2e 35  |int=0 . 20 . 0.5|
00000030  0d 00 14 06 20 f7 0d 00  1e 2d 20 69 6e 3d 30 3a  |.... ....- in=0:|
00000040  6f 75 74 3d 30 3a 64 6f  63 74 6f 72 3d 30 3a 70  |out=0:doctor=0:p|
00000050  61 74 69 65 6e 74 3d 30  3a 70 61 74 69 65 6e 74  |atient=0:patient|
00000060  32 3d 30 0d 00 28 17 20  e3 20 70 61 74 63 6f 75  |2=0..(. . patcou|
00000070  6e 74 25 3d 31 20 b8 20  33 30 0d 00 32 0e 20 f3  |nt%=1 . 30..2. .|
00000080  20 63 6f 6e 73 75 6c 74  0d 00 3c 22 20 61 70 70  | consult..<" app|
00000090  74 69 6d 65 3d 61 70 70  6f 69 6e 74 2a 28 70 61  |time=appoint*(pa|
000000a0  74 63 6f 75 6e 74 25 2d  31 29 0d 00 46 6a 20 e7  |tcount%-1)..Fj .|
000000b0  20 61 70 70 74 69 6d 65  3e 6f 75 74 20 8c 20 6e  | apptime>out . n|
000000c0  65 77 69 6e 3d 61 70 70  74 69 6d 65 3a 64 6f 63  |ewin=apptime:doc|
000000d0  74 6f 72 3d 64 6f 63 74  6f 72 2b 28 6e 65 77 69  |tor=doctor+(newi|
000000e0  6e 2d 6f 75 74 29 3a 6f  75 74 3d 6e 65 77 69 6e  |n-out):out=newin|
000000f0  2b 63 6f 6e 73 75 6c 74  3a 69 6e 3d 6e 65 77 69  |+consult:in=newi|
00000100  6e 3a ed 20 70 61 74 63  6f 75 6e 74 25 3a e5 20  |n:. patcount%:. |
00000110  8d 44 64 40 0d 00 50 78  20 6e 65 77 69 6e 3d 6f  |.Dd@..Px newin=o|
00000120  75 74 3a 70 61 74 69 65  6e 74 3d 70 61 74 69 65  |ut:patient=patie|
00000130  6e 74 2b 28 6f 75 74 2d  61 70 70 74 69 6d 65 29  |nt+(out-apptime)|
00000140  3a e7 20 69 6e 3e 61 70  70 74 69 6d 65 20 8c 20  |:. in>apptime . |
00000150  70 61 74 69 65 6e 74 32  3d 70 61 74 69 65 6e 74  |patient2=patient|
00000160  32 2b 28 6f 75 74 2d 69  6e 29 20 8b 20 70 61 74  |2+(out-in) . pat|
00000170  69 65 6e 74 32 3d 70 61  74 69 65 6e 74 32 2b 28  |ient2=patient2+(|
00000180  6f 75 74 2d 61 70 70 74  69 6d 65 29 0d 00 5a 2b  |out-apptime)..Z+|
00000190  20 69 6e 3d 6e 65 77 69  6e 3a 6f 75 74 3d 6e 65  | in=newin:out=ne|
000001a0  77 69 6e 2b 63 6f 6e 73  75 6c 74 3a ed 20 70 61  |win+consult:. pa|
000001b0  74 63 6f 75 6e 74 25 0d  00 64 af 20 f1 20 8a 30  |tcount%..d. . .0|
000001c0  29 20 a8 28 28 61 70 70  6f 69 6e 74 2a 31 30 29  |) .((appoint*10)|
000001d0  2b 30 2e 35 29 2f 31 30  3b 8a 31 30 29 a4 78 28  |+0.5)/10;.10).x(|
000001e0  64 6f 63 74 6f 72 29 3b  8a 32 30 29 a4 78 28 70  |doctor);.20).x(p|
000001f0  61 74 69 65 6e 74 29 3b  8a 33 31 29 a4 78 28 70  |atient);.31).x(p|
00000200  61 74 69 65 6e 74 32 29  3b 8a 34 32 29 a4 78 28  |atient2);.42).x(|
00000210  64 6f 63 74 6f 72 2b 70  61 74 69 65 6e 74 29 3b  |doctor+patient);|
00000220  8a 35 33 29 a4 78 28 64  6f 63 74 6f 72 2b 70 61  |.53).x(doctor+pa|
00000230  74 69 65 6e 74 32 29 3b  8a 36 34 29 a4 78 28 31  |tient2);.64).x(1|
00000240  30 30 2a 28 28 64 6f 63  74 6f 72 2b 70 61 74 69  |00*((doctor+pati|
00000250  65 6e 74 32 29 2f 6f 75  74 29 29 3b 22 25 20 77  |ent2)/out));"% w|
00000260  61 73 74 65 64 22 0d 00  6e 0e 20 ed 20 61 70 70  |asted"..n. . app|
00000270  6f 69 6e 74 0d 00 78 45  20 dc 20 36 2c 32 2c 35  |oint..xE . 6,2,5|
00000280  2c 31 2c 37 2c 31 36 2c  32 2c 35 2c 34 2c 37 2c  |,1,7,16,2,5,4,7,|
00000290  32 2c 37 2c 32 2c 33 2c  34 2c 31 2c 33 2c 36 2c  |2,7,2,3,4,1,3,6,|
000002a0  33 2c 35 2c 34 2c 31 38  2c 36 2c 33 2c 35 2c 31  |3,5,4,18,6,3,5,1|
000002b0  2c 34 2c 31 39 2c 33 2c  35 0d 00 82 1c 20 dd 20  |,4,19,3,5.... . |
000002c0  a4 78 28 58 29 3a 3d a8  28 58 2a 31 30 30 30 29  |.x(X):=.(X*1000)|
000002d0  2f 31 30 30 30 0d ff                              |/1000..|
000002d7
TAPE3/A/APP\WASTED.m0
TAPE3/A/APP\WASTED.m1
TAPE3/A/APP\WASTED.m2
TAPE3/A/APP\WASTED.m4
TAPE3/A/APP\WASTED.m5