Home » Personal collection » Acorn tapes » Electron_User » Electron_User_tape26a_acorn_eu_1991_august.wav » GeogInp

GeogInp

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 tapes » Electron_User » Electron_User_tape26a_acorn_eu_1991_august.wav
Filename: GeogInp
Read OK:
File size: 07B0 bytes
Load address: FFFF1A00
Exec address: FFFF8023
Duplicates

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

File contents
   10REM > <BasicSave$Dir>.GEOGINPUT
   20REM ARCHIMEDES TO ROLAND DXY1200
   30REM DATA INPUT PROGRAM
   40REM by R.T.POET FEB 1990 Version 1
   50REM (c) The Micro User
   60max_areas=12: REM (areas surveyed)
   70max_number=18: REM (of questions)
   80max_letters=16: REM (in questions)
   90max_value=100: REM (% result)
  100@%=00000004
  110P$="Please give "
  120D$="data file name "
  130B$="Blank filename, equals end"
  140PRINT P$+D$;: INPUT filename$
  150IF filename$=""PRINT B$ : END
  160PROCduplicate
  170PROCleave      : REM finished
  171
  180DEFPROCduplicate
  190ONERROR PROCerror:PROCleave
  200fileref=OPENIN filename$
  210INPUT# fileref,number
  220PRINT "RETRY WITH NEW FILENAME."
  230CLOSE# fileref:END
  240ENDPROC
  241
  250DEFPROCdatain : REM main procedure
  260ONERROR OFF:REM restore to normal
  270fileref= OPENOUT filename$
  280PRINT "Ready to input data for ";
  290PRINT filename$
  300Q$="How many Questions in survey "
  310REPEAT
  320PRINT Q$;"(max ";max_number;") ";
  330INPUT reply
  340IF reply>max_number VDU7
  350UNTIL reply<=max_number
  360number = reply
  370PRINT# fileref,number
  380PRINT P$;"number of AREAs (max ";
  390PRINT max_areas;" )";:INPUT reply
  400IF reply > max_areas VDU7:GOTO380
  410areas = reply
  420PRINT# fileref,areas
  430DIM result(areas)
  440FOR question = 1 TO number
  450REPEAT
  460PRINT "QUESTION ";question
  470PRINT P$;"question text (max ";
  480PRINT max_letters;" ) characters";
  490INPUT A$
  500A$ = LEFT$(A$,max_letters): VDU7
  510B$=STRING$(max_letters-LENA$," ")
  520PRINT "Is >";A$+B$;"< correct ?";
  530INPUT" Y/N ", reply$
  540UNTIL((reply$="Y")OR(reply$="y"))
  550PRINT# fileref,A$
  560REPEAT
  570FOR area = 1 TO areas
  580T$ = "Result for area "
  590PRINT "Question ";A$+B$+T$;
  600PRINT area; " (0 to 100%) ";
  610INPUT "please ", result(area)
  620IF result(area)>100 VDU7:GOTO590
  630NEXT area
  640PRINT"Question ";question;
  650PRINT " inputs  are :-"
  660FOR area = 1 TO areas
  670PRINT result(area);
  680NEXT area
  690PRINT'"Are the results correct ";
  700PRINT "for ";A$+B$; :INPUT reply$
  710UNTIL((reply$="Y")OR(reply$="y"))
  720FOR area = 1 TO areas
  730PRINT# fileref, result(area)
  740NEXT area
  750NEXT question
  760ENDPROC
  761
  770DEFPROCleave
  780CLOSE# fileref
  790@%=10
  800M$ ="Data saved on diskfile "
  810PRINT M$;filename$
  820END
  830ENDPROC
  831
  840DEFPROCerror
  850CLOSE# fileref
  860ONERROR OFF
  870PROCdatain
  880ENDPROC

!� > <BasicSave$Dir>.GEOGINPUT
"� ARCHIMEDES TO ROLAND DXY1200
� DATA INPUT PROGRAM
($� by R.T.POET FEB 1990 Version 1
2� (c) The Micro User
<$max_areas=12: � (areas surveyed)
F#max_number=18: � (of questions)
P$max_letters=16: � (in questions)
Zmax_value=100: � (% result)
d@%=00000004
nP$="Please give "
xD$="data file name "
�#B$="Blank filename, equals end"
�� P$+D$;: � filename$
�� filename$=""� B$ : �
��duplicate
��leave      : � finished
�
���duplicate
�� �error:�leave
�fileref=� filename$
��# fileref,number
� � "RETRY WITH NEW FILENAME."
��# fileref:�
��
�
���datain : � main procedure
� �:� restore to normal
fileref= � filename$
!� "Ready to input data for ";
"� filename$
,&Q$="How many Questions in survey "
6�
@!� Q$;"(max ";max_number;") ";
J� reply
T� reply>max_number �7
^� reply<=max_number
hnumber = reply
r�# fileref,number
|!� P$;"number of AREAs (max ";
�� max_areas;" )";:� reply
� � reply > max_areas �7:�D|A
�areas = reply
��# fileref,areas
�� result(areas)
�� question = 1 � number
��
�� "QUESTION ";question
�� P$;"question text (max ";
�"� max_letters;" ) characters";
�� A$
�A$ = �A$,max_letters): �7
�B$=�max_letters-�A$," ")
!� "Is >";A$+B$;"< correct ?";
�" Y/N ", reply$
 �((reply$="Y")�(reply$="y"))
&�# fileref,A$
0�
:� area = 1 � areas
DT$ = "Result for area "
N� "Question ";A$+B$+T$;
X� area; " (0 to 100%) ";
b� "please ", result(area)
l� result(area)>100 �7:�DNB
v
� area
��"Question ";question;
�� " inputs  are :-"
�� area = 1 � areas
�� result(area);
�
� area
�!�'"Are the results correct ";
�� "for ";A$+B$; :� reply$
� �((reply$="Y")�(reply$="y"))
�� area = 1 � areas
��# fileref, result(area)
�
� area
�� question
��
�
��leave
�# fileref
	@%=10
 !M$ ="Data saved on diskfile "
*� M$;filename$
4�
>�
?
H��error
R�# fileref
\� �
f�datain
p�
�
00000000  0d 00 0a 21 f4 20 3e 20  3c 42 61 73 69 63 53 61  |...!. > <BasicSa|
00000010  76 65 24 44 69 72 3e 2e  47 45 4f 47 49 4e 50 55  |ve$Dir>.GEOGINPU|
00000020  54 0d 00 14 22 f4 20 41  52 43 48 49 4d 45 44 45  |T...". ARCHIMEDE|
00000030  53 20 54 4f 20 52 4f 4c  41 4e 44 20 44 58 59 31  |S TO ROLAND DXY1|
00000040  32 30 30 0d 00 1e 18 f4  20 44 41 54 41 20 49 4e  |200..... DATA IN|
00000050  50 55 54 20 50 52 4f 47  52 41 4d 0d 00 28 24 f4  |PUT PROGRAM..($.|
00000060  20 62 79 20 52 2e 54 2e  50 4f 45 54 20 46 45 42  | by R.T.POET FEB|
00000070  20 31 39 39 30 20 56 65  72 73 69 6f 6e 20 31 0d  | 1990 Version 1.|
00000080  00 32 18 f4 20 28 63 29  20 54 68 65 20 4d 69 63  |.2.. (c) The Mic|
00000090  72 6f 20 55 73 65 72 0d  00 3c 24 6d 61 78 5f 61  |ro User..<$max_a|
000000a0  72 65 61 73 3d 31 32 3a  20 f4 20 28 61 72 65 61  |reas=12: . (area|
000000b0  73 20 73 75 72 76 65 79  65 64 29 0d 00 46 23 6d  |s surveyed)..F#m|
000000c0  61 78 5f 6e 75 6d 62 65  72 3d 31 38 3a 20 f4 20  |ax_number=18: . |
000000d0  28 6f 66 20 71 75 65 73  74 69 6f 6e 73 29 0d 00  |(of questions)..|
000000e0  50 24 6d 61 78 5f 6c 65  74 74 65 72 73 3d 31 36  |P$max_letters=16|
000000f0  3a 20 f4 20 28 69 6e 20  71 75 65 73 74 69 6f 6e  |: . (in question|
00000100  73 29 0d 00 5a 1f 6d 61  78 5f 76 61 6c 75 65 3d  |s)..Z.max_value=|
00000110  31 30 30 3a 20 f4 20 28  25 20 72 65 73 75 6c 74  |100: . (% result|
00000120  29 0d 00 64 0f 40 25 3d  30 30 30 30 30 30 30 34  |)..d.@%=00000004|
00000130  0d 00 6e 15 50 24 3d 22  50 6c 65 61 73 65 20 67  |..n.P$="Please g|
00000140  69 76 65 20 22 0d 00 78  18 44 24 3d 22 64 61 74  |ive "..x.D$="dat|
00000150  61 20 66 69 6c 65 20 6e  61 6d 65 20 22 0d 00 82  |a file name "...|
00000160  23 42 24 3d 22 42 6c 61  6e 6b 20 66 69 6c 65 6e  |#B$="Blank filen|
00000170  61 6d 65 2c 20 65 71 75  61 6c 73 20 65 6e 64 22  |ame, equals end"|
00000180  0d 00 8c 19 f1 20 50 24  2b 44 24 3b 3a 20 e8 20  |..... P$+D$;: . |
00000190  66 69 6c 65 6e 61 6d 65  24 0d 00 96 1a e7 20 66  |filename$..... f|
000001a0  69 6c 65 6e 61 6d 65 24  3d 22 22 f1 20 42 24 20  |ilename$="". B$ |
000001b0  3a 20 e0 0d 00 a0 0e f2  64 75 70 6c 69 63 61 74  |: ......duplicat|
000001c0  65 0d 00 aa 1c f2 6c 65  61 76 65 20 20 20 20 20  |e.....leave     |
000001d0  20 3a 20 f4 20 66 69 6e  69 73 68 65 64 0d 00 ab  | : . finished...|
000001e0  04 0d 00 b4 0f dd f2 64  75 70 6c 69 63 61 74 65  |.......duplicate|
000001f0  0d 00 be 14 ee 85 20 f2  65 72 72 6f 72 3a f2 6c  |...... .error:.l|
00000200  65 61 76 65 0d 00 c8 17  66 69 6c 65 72 65 66 3d  |eave....fileref=|
00000210  8e 20 66 69 6c 65 6e 61  6d 65 24 0d 00 d2 15 e8  |. filename$.....|
00000220  23 20 66 69 6c 65 72 65  66 2c 6e 75 6d 62 65 72  |# fileref,number|
00000230  0d 00 dc 20 f1 20 22 52  45 54 52 59 20 57 49 54  |... . "RETRY WIT|
00000240  48 20 4e 45 57 20 46 49  4c 45 4e 41 4d 45 2e 22  |H NEW FILENAME."|
00000250  0d 00 e6 10 d9 23 20 66  69 6c 65 72 65 66 3a e0  |.....# fileref:.|
00000260  0d 00 f0 05 e1 0d 00 f1  04 0d 00 fa 1f dd f2 64  |...............d|
00000270  61 74 61 69 6e 20 3a 20  f4 20 6d 61 69 6e 20 70  |atain : . main p|
00000280  72 6f 63 65 64 75 72 65  0d 01 04 1c ee 85 20 87  |rocedure...... .|
00000290  3a f4 20 72 65 73 74 6f  72 65 20 74 6f 20 6e 6f  |:. restore to no|
000002a0  72 6d 61 6c 0d 01 0e 18  66 69 6c 65 72 65 66 3d  |rmal....fileref=|
000002b0  20 ae 20 66 69 6c 65 6e  61 6d 65 24 0d 01 18 21  | . filename$...!|
000002c0  f1 20 22 52 65 61 64 79  20 74 6f 20 69 6e 70 75  |. "Ready to inpu|
000002d0  74 20 64 61 74 61 20 66  6f 72 20 22 3b 0d 01 22  |t data for ";.."|
000002e0  0f f1 20 66 69 6c 65 6e  61 6d 65 24 0d 01 2c 26  |.. filename$..,&|
000002f0  51 24 3d 22 48 6f 77 20  6d 61 6e 79 20 51 75 65  |Q$="How many Que|
00000300  73 74 69 6f 6e 73 20 69  6e 20 73 75 72 76 65 79  |stions in survey|
00000310  20 22 0d 01 36 05 f5 0d  01 40 21 f1 20 51 24 3b  | "..6....@!. Q$;|
00000320  22 28 6d 61 78 20 22 3b  6d 61 78 5f 6e 75 6d 62  |"(max ";max_numb|
00000330  65 72 3b 22 29 20 22 3b  0d 01 4a 0b e8 20 72 65  |er;") ";..J.. re|
00000340  70 6c 79 0d 01 54 19 e7  20 72 65 70 6c 79 3e 6d  |ply..T.. reply>m|
00000350  61 78 5f 6e 75 6d 62 65  72 20 ef 37 0d 01 5e 17  |ax_number .7..^.|
00000360  fd 20 72 65 70 6c 79 3c  3d 6d 61 78 5f 6e 75 6d  |. reply<=max_num|
00000370  62 65 72 0d 01 68 12 6e  75 6d 62 65 72 20 3d 20  |ber..h.number = |
00000380  72 65 70 6c 79 0d 01 72  15 f1 23 20 66 69 6c 65  |reply..r..# file|
00000390  72 65 66 2c 6e 75 6d 62  65 72 0d 01 7c 21 f1 20  |ref,number..|!. |
000003a0  50 24 3b 22 6e 75 6d 62  65 72 20 6f 66 20 41 52  |P$;"number of AR|
000003b0  45 41 73 20 28 6d 61 78  20 22 3b 0d 01 86 1d f1  |EAs (max ";.....|
000003c0  20 6d 61 78 5f 61 72 65  61 73 3b 22 20 29 22 3b  | max_areas;" )";|
000003d0  3a e8 20 72 65 70 6c 79  0d 01 90 20 e7 20 72 65  |:. reply... . re|
000003e0  70 6c 79 20 3e 20 6d 61  78 5f 61 72 65 61 73 20  |ply > max_areas |
000003f0  ef 37 3a e5 8d 44 7c 41  0d 01 9a 11 61 72 65 61  |.7:..D|A....area|
00000400  73 20 3d 20 72 65 70 6c  79 0d 01 a4 14 f1 23 20  |s = reply.....# |
00000410  66 69 6c 65 72 65 66 2c  61 72 65 61 73 0d 01 ae  |fileref,areas...|
00000420  13 de 20 72 65 73 75 6c  74 28 61 72 65 61 73 29  |.. result(areas)|
00000430  0d 01 b8 1b e3 20 71 75  65 73 74 69 6f 6e 20 3d  |..... question =|
00000440  20 31 20 b8 20 6e 75 6d  62 65 72 0d 01 c2 05 f5  | 1 . number.....|
00000450  0d 01 cc 1a f1 20 22 51  55 45 53 54 49 4f 4e 20  |..... "QUESTION |
00000460  22 3b 71 75 65 73 74 69  6f 6e 0d 01 d6 1f f1 20  |";question..... |
00000470  50 24 3b 22 71 75 65 73  74 69 6f 6e 20 74 65 78  |P$;"question tex|
00000480  74 20 28 6d 61 78 20 22  3b 0d 01 e0 22 f1 20 6d  |t (max ";...". m|
00000490  61 78 5f 6c 65 74 74 65  72 73 3b 22 20 29 20 63  |ax_letters;" ) c|
000004a0  68 61 72 61 63 74 65 72  73 22 3b 0d 01 ea 08 e8  |haracters";.....|
000004b0  20 41 24 0d 01 f4 1d 41  24 20 3d 20 c0 41 24 2c  | A$....A$ = .A$,|
000004c0  6d 61 78 5f 6c 65 74 74  65 72 73 29 3a 20 ef 37  |max_letters): .7|
000004d0  0d 01 fe 1c 42 24 3d c4  6d 61 78 5f 6c 65 74 74  |....B$=.max_lett|
000004e0  65 72 73 2d a9 41 24 2c  22 20 22 29 0d 02 08 21  |ers-.A$," ")...!|
000004f0  f1 20 22 49 73 20 3e 22  3b 41 24 2b 42 24 3b 22  |. "Is >";A$+B$;"|
00000500  3c 20 63 6f 72 72 65 63  74 20 3f 22 3b 0d 02 12  |< correct ?";...|
00000510  14 e8 22 20 59 2f 4e 20  22 2c 20 72 65 70 6c 79  |.." Y/N ", reply|
00000520  24 0d 02 1c 20 fd 28 28  72 65 70 6c 79 24 3d 22  |$... .((reply$="|
00000530  59 22 29 84 28 72 65 70  6c 79 24 3d 22 79 22 29  |Y").(reply$="y")|
00000540  29 0d 02 26 11 f1 23 20  66 69 6c 65 72 65 66 2c  |)..&..# fileref,|
00000550  41 24 0d 02 30 05 f5 0d  02 3a 16 e3 20 61 72 65  |A$..0....:.. are|
00000560  61 20 3d 20 31 20 b8 20  61 72 65 61 73 0d 02 44  |a = 1 . areas..D|
00000570  1b 54 24 20 3d 20 22 52  65 73 75 6c 74 20 66 6f  |.T$ = "Result fo|
00000580  72 20 61 72 65 61 20 22  0d 02 4e 1b f1 20 22 51  |r area "..N.. "Q|
00000590  75 65 73 74 69 6f 6e 20  22 3b 41 24 2b 42 24 2b  |uestion ";A$+B$+|
000005a0  54 24 3b 0d 02 58 1c f1  20 61 72 65 61 3b 20 22  |T$;..X.. area; "|
000005b0  20 28 30 20 74 6f 20 31  30 30 25 29 20 22 3b 0d  | (0 to 100%) ";.|
000005c0  02 62 1d e8 20 22 70 6c  65 61 73 65 20 22 2c 20  |.b.. "please ", |
000005d0  72 65 73 75 6c 74 28 61  72 65 61 29 0d 02 6c 1f  |result(area)..l.|
000005e0  e7 20 72 65 73 75 6c 74  28 61 72 65 61 29 3e 31  |. result(area)>1|
000005f0  30 30 20 ef 37 3a e5 8d  44 4e 42 0d 02 76 0a ed  |00 .7:..DNB..v..|
00000600  20 61 72 65 61 0d 02 80  1a f1 22 51 75 65 73 74  | area....."Quest|
00000610  69 6f 6e 20 22 3b 71 75  65 73 74 69 6f 6e 3b 0d  |ion ";question;.|
00000620  02 8a 17 f1 20 22 20 69  6e 70 75 74 73 20 20 61  |.... " inputs  a|
00000630  72 65 20 3a 2d 22 0d 02  94 16 e3 20 61 72 65 61  |re :-"..... area|
00000640  20 3d 20 31 20 b8 20 61  72 65 61 73 0d 02 9e 13  | = 1 . areas....|
00000650  f1 20 72 65 73 75 6c 74  28 61 72 65 61 29 3b 0d  |. result(area);.|
00000660  02 a8 0a ed 20 61 72 65  61 0d 02 b2 21 f1 27 22  |.... area...!.'"|
00000670  41 72 65 20 74 68 65 20  72 65 73 75 6c 74 73 20  |Are the results |
00000680  63 6f 72 72 65 63 74 20  22 3b 0d 02 bc 1d f1 20  |correct ";..... |
00000690  22 66 6f 72 20 22 3b 41  24 2b 42 24 3b 20 3a e8  |"for ";A$+B$; :.|
000006a0  20 72 65 70 6c 79 24 0d  02 c6 20 fd 28 28 72 65  | reply$... .((re|
000006b0  70 6c 79 24 3d 22 59 22  29 84 28 72 65 70 6c 79  |ply$="Y").(reply|
000006c0  24 3d 22 79 22 29 29 0d  02 d0 16 e3 20 61 72 65  |$="y"))..... are|
000006d0  61 20 3d 20 31 20 b8 20  61 72 65 61 73 0d 02 da  |a = 1 . areas...|
000006e0  1c f1 23 20 66 69 6c 65  72 65 66 2c 20 72 65 73  |..# fileref, res|
000006f0  75 6c 74 28 61 72 65 61  29 0d 02 e4 0a ed 20 61  |ult(area)..... a|
00000700  72 65 61 0d 02 ee 0e ed  20 71 75 65 73 74 69 6f  |rea..... questio|
00000710  6e 0d 02 f8 05 e1 0d 02  f9 04 0d 03 02 0b dd f2  |n...............|
00000720  6c 65 61 76 65 0d 03 0c  0e d9 23 20 66 69 6c 65  |leave.....# file|
00000730  72 65 66 0d 03 16 09 40  25 3d 31 30 0d 03 20 21  |ref....@%=10.. !|
00000740  4d 24 20 3d 22 44 61 74  61 20 73 61 76 65 64 20  |M$ ="Data saved |
00000750  6f 6e 20 64 69 73 6b 66  69 6c 65 20 22 0d 03 2a  |on diskfile "..*|
00000760  12 f1 20 4d 24 3b 66 69  6c 65 6e 61 6d 65 24 0d  |.. M$;filename$.|
00000770  03 34 05 e0 0d 03 3e 05  e1 0d 03 3f 04 0d 03 48  |.4....>....?...H|
00000780  0b dd f2 65 72 72 6f 72  0d 03 52 0e d9 23 20 66  |...error..R..# f|
00000790  69 6c 65 72 65 66 0d 03  5c 08 ee 85 20 87 0d 03  |ileref..\... ...|
000007a0  66 0b f2 64 61 74 61 69  6e 0d 03 70 05 e1 0d ff  |f..datain..p....|
000007b0
GeogInp.m0
GeogInp.m1
GeogInp.m2
GeogInp.m4
GeogInp.m5