Home » Personal collection » Acorn tapes » Electron_User » Electron_User_tape25b_acorn_eu_1991_july.wav » R.Gal/Lit

R.Gal/Lit

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_tape25b_acorn_eu_1991_july.wav
Filename: R.Gal/Lit
Read OK:
File size: 0284 bytes
Load address: FFFF1A00
Exec address: FFFF8023
File contents
   10REM Petrol Price Converter
   20REM by Peter Shaw
   30REM (c) The Micro User
   40REPEAT:MODE 7:VDU 23,1,0;0;0;0;
   50title$="Petrol Price Converter"
   60PRINT CHR$(141);SPC(8);title$
   70PRINT CHR$(141);SPC(8);title$
   80PRINT CHR$(145);SPC(8);STRING$(22,",")''':ga$="Gallons":li$="Litres"
   90PRINT "1) ";ga$;" to ";li$
  100PRINT "2) ";li$;" to ";ga$
  110PRINT "3) Exit program"
  120PRINT ''''':A=GET:IF A=49 PROCgl
  130IF A=50 PROClg
  140IF A=51 MODE 7:END
  150UNTIL FALSE
  160DEFPROCgl:PRINT "Price per gallon : `";:INPUT ""G:G=G*1000:L=INT(G*.22+.5):PRINT '"That's ";L/10;"p per litre"'''"Press any key...":A=GET:ENDPROC
  170DEFPROClg:PRINT "Price per litre (in pence) : ";:INPUT ""L:@%=&20202:L=L*10:G=INT(L/.22+.5):PRINT '"That's `";G/1000;" per gallon"'''"Press any key...":@%=0:A=GET:ENDPROC

� Petrol Price Converter
� by Peter Shaw
� (c) The Micro User
(�:� 7:� 23,1,0;0;0;0;
2#title$="Petrol Price Converter"
<� �(141);�(8);title$
F� �(141);�(8);title$
P8� �(145);�(8);�22,",")''':ga$="Gallons":li$="Litres"
Z� "1) ";ga$;" to ";li$
d� "2) ";li$;" to ";ga$
n� "3) Exit program"
x� ''''':A=�:� A=49 �gl
�� A=50 �lg
�� A=51 � 7:�
�� �
�z��gl:� "Price per gallon : `";:� ""G:G=G*1000:L=�(G*.22+.5):� '"That's ";L/10;"p per litre"'''"Press any key...":A=�:�
����lg:� "Price per litre (in pence) : ";:� ""L:@%=&20202:L=L*10:G=�(L/.22+.5):� '"That's `";G/1000;" per gallon"'''"Press any key...":@%=0:A=�:�
�
00000000  0d 00 0a 1c f4 20 50 65  74 72 6f 6c 20 50 72 69  |..... Petrol Pri|
00000010  63 65 20 43 6f 6e 76 65  72 74 65 72 0d 00 14 13  |ce Converter....|
00000020  f4 20 62 79 20 50 65 74  65 72 20 53 68 61 77 0d  |. by Peter Shaw.|
00000030  00 1e 18 f4 20 28 63 29  20 54 68 65 20 4d 69 63  |.... (c) The Mic|
00000040  72 6f 20 55 73 65 72 0d  00 28 19 f5 3a eb 20 37  |ro User..(..:. 7|
00000050  3a ef 20 32 33 2c 31 2c  30 3b 30 3b 30 3b 30 3b  |:. 23,1,0;0;0;0;|
00000060  0d 00 32 23 74 69 74 6c  65 24 3d 22 50 65 74 72  |..2#title$="Petr|
00000070  6f 6c 20 50 72 69 63 65  20 43 6f 6e 76 65 72 74  |ol Price Convert|
00000080  65 72 22 0d 00 3c 18 f1  20 bd 28 31 34 31 29 3b  |er"..<.. .(141);|
00000090  89 28 38 29 3b 74 69 74  6c 65 24 0d 00 46 18 f1  |.(8);title$..F..|
000000a0  20 bd 28 31 34 31 29 3b  89 28 38 29 3b 74 69 74  | .(141);.(8);tit|
000000b0  6c 65 24 0d 00 50 38 f1  20 bd 28 31 34 35 29 3b  |le$..P8. .(145);|
000000c0  89 28 38 29 3b c4 32 32  2c 22 2c 22 29 27 27 27  |.(8);.22,",")'''|
000000d0  3a 67 61 24 3d 22 47 61  6c 6c 6f 6e 73 22 3a 6c  |:ga$="Gallons":l|
000000e0  69 24 3d 22 4c 69 74 72  65 73 22 0d 00 5a 1a f1  |i$="Litres"..Z..|
000000f0  20 22 31 29 20 22 3b 67  61 24 3b 22 20 74 6f 20  | "1) ";ga$;" to |
00000100  22 3b 6c 69 24 0d 00 64  1a f1 20 22 32 29 20 22  |";li$..d.. "2) "|
00000110  3b 6c 69 24 3b 22 20 74  6f 20 22 3b 67 61 24 0d  |;li$;" to ";ga$.|
00000120  00 6e 17 f1 20 22 33 29  20 45 78 69 74 20 70 72  |.n.. "3) Exit pr|
00000130  6f 67 72 61 6d 22 0d 00  78 1a f1 20 27 27 27 27  |ogram"..x.. ''''|
00000140  27 3a 41 3d a5 3a e7 20  41 3d 34 39 20 f2 67 6c  |':A=.:. A=49 .gl|
00000150  0d 00 82 0e e7 20 41 3d  35 30 20 f2 6c 67 0d 00  |..... A=50 .lg..|
00000160  8c 10 e7 20 41 3d 35 31  20 eb 20 37 3a e0 0d 00  |... A=51 . 7:...|
00000170  96 07 fd 20 a3 0d 00 a0  7a dd f2 67 6c 3a f1 20  |... ....z..gl:. |
00000180  22 50 72 69 63 65 20 70  65 72 20 67 61 6c 6c 6f  |"Price per gallo|
00000190  6e 20 3a 20 60 22 3b 3a  e8 20 22 22 47 3a 47 3d  |n : `";:. ""G:G=|
000001a0  47 2a 31 30 30 30 3a 4c  3d a8 28 47 2a 2e 32 32  |G*1000:L=.(G*.22|
000001b0  2b 2e 35 29 3a f1 20 27  22 54 68 61 74 27 73 20  |+.5):. '"That's |
000001c0  22 3b 4c 2f 31 30 3b 22  70 20 70 65 72 20 6c 69  |";L/10;"p per li|
000001d0  74 72 65 22 27 27 27 22  50 72 65 73 73 20 61 6e  |tre"'''"Press an|
000001e0  79 20 6b 65 79 2e 2e 2e  22 3a 41 3d a5 3a e1 0d  |y key...":A=.:..|
000001f0  00 aa 93 dd f2 6c 67 3a  f1 20 22 50 72 69 63 65  |.....lg:. "Price|
00000200  20 70 65 72 20 6c 69 74  72 65 20 28 69 6e 20 70  | per litre (in p|
00000210  65 6e 63 65 29 20 3a 20  22 3b 3a e8 20 22 22 4c  |ence) : ";:. ""L|
00000220  3a 40 25 3d 26 32 30 32  30 32 3a 4c 3d 4c 2a 31  |:@%=&20202:L=L*1|
00000230  30 3a 47 3d a8 28 4c 2f  2e 32 32 2b 2e 35 29 3a  |0:G=.(L/.22+.5):|
00000240  f1 20 27 22 54 68 61 74  27 73 20 60 22 3b 47 2f  |. '"That's `";G/|
00000250  31 30 30 30 3b 22 20 70  65 72 20 67 61 6c 6c 6f  |1000;" per gallo|
00000260  6e 22 27 27 27 22 50 72  65 73 73 20 61 6e 79 20  |n"'''"Press any |
00000270  6b 65 79 2e 2e 2e 22 3a  40 25 3d 30 3a 41 3d a5  |key...":@%=0:A=.|
00000280  3a e1 0d ff                                       |:...|
00000284
R.Gal/Lit.m0
R.Gal/Lit.m1
R.Gal/Lit.m2
R.Gal/Lit.m4
R.Gal/Lit.m5