Home » Archimedes archive » Archimedes World » AW-1993-01.adf » AWJan93 » !AWJan93/Goodies/MilesPG/!Help

!AWJan93/Goodies/MilesPG/!Help

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 » Archimedes archive » Archimedes World » AW-1993-01.adf » AWJan93
Filename: !AWJan93/Goodies/MilesPG/!Help
Read OK:
File size: 08A7 bytes
Load address: 0000
Exec address: 0000
File contents
     
                    
                                Application : mpg
   
                       Help for Version 1.0 : (05 Sep 1992)
     
                           (C) Archimedes World 1992


  1. This programme is to calculate fuel consumption in miles per gallon given the number of miles travelled and the fuel used in litres. The program can be run from the desktop by the usual double click on the file Icon. The icon is displayed on the Icon bar. The Icon bar menu offers the usual info window 
and quit. The main window is automatically loaded. The miles or fuel in litres is entered by a single click in the relevent writable Icon. This displays a
 caret and the value can be entered from the keyboard. To calculate mpg click on the OK button. The input can be amended by clicking on the Icon again and using Ctrl U to clear the Icon; the new value is then entered.
 
N.B. To run this programme you will need the module Interface loaded. This 
module can be found by opening !Interface on the September Archimedes World
Disk. The module should be copied to your !System module directory. !mpg will automatically load this module.  

2. This programme was developed using the software and articles published by
 Archimedes World (August 1992 and September 1992 Issues). The software used 
was:-

!FormEd - (Acorn) for producing the Templates.
!Interface - (Simon Huntingdon) for the "Impression style boxes".
!Convert - (Joe Taylor) for tokenising Basic text files.
!WimpEd - (Joe Taylor) for constructing the basic Wimp shell for the program.
!WimpGloss  - (Joe Taylor) a glossary providing info on functions etc.

Joe Taylor's software and articles saved months of struggling with the
 Programmer's Reference manual. This was my first WIMP programme and was
 produced soley with the above info; I do not have a copy of the Programmer's Reference manual. In all I spent about 8hrs most of it experimenting with
 !WimpEd and !FormEd to produce !mpg. Joe Taylor is an excellent start for
 anyone as I now believe I could tackle something more complex.


    Thankyou Archimedes World for the articles very helpful indeed.


Dave Hyett
6th September 1992.
  
   
   
                            
   
00000000  20 20 20 20 20 0a 20 20  20 20 20 20 20 20 20 20  |     .          |
00000010  20 20 20 20 20 20 20 20  20 20 0a 20 20 20 20 20  |          .     |
00000020  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00000030  20 20 20 20 20 20 20 20  20 20 20 41 70 70 6c 69  |           Appli|
00000040  63 61 74 69 6f 6e 20 3a  20 6d 70 67 0a 20 20 20  |cation : mpg.   |
00000050  0a 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |.               |
00000060  20 20 20 20 20 20 20 20  48 65 6c 70 20 66 6f 72  |        Help for|
00000070  20 56 65 72 73 69 6f 6e  20 31 2e 30 20 3a 20 28  | Version 1.0 : (|
00000080  30 35 20 53 65 70 20 31  39 39 32 29 0a 20 20 20  |05 Sep 1992).   |
00000090  20 20 0a 20 20 20 20 20  20 20 20 20 20 20 20 20  |  .             |
000000a0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 28 43  |              (C|
000000b0  29 20 41 72 63 68 69 6d  65 64 65 73 20 57 6f 72  |) Archimedes Wor|
000000c0  6c 64 20 31 39 39 32 0a  0a 0a 20 20 31 2e 20 54  |ld 1992...  1. T|
000000d0  68 69 73 20 70 72 6f 67  72 61 6d 6d 65 20 69 73  |his programme is|
000000e0  20 74 6f 20 63 61 6c 63  75 6c 61 74 65 20 66 75  | to calculate fu|
000000f0  65 6c 20 63 6f 6e 73 75  6d 70 74 69 6f 6e 20 69  |el consumption i|
00000100  6e 20 6d 69 6c 65 73 20  70 65 72 20 67 61 6c 6c  |n miles per gall|
00000110  6f 6e 20 67 69 76 65 6e  20 74 68 65 20 6e 75 6d  |on given the num|
00000120  62 65 72 20 6f 66 20 6d  69 6c 65 73 20 74 72 61  |ber of miles tra|
00000130  76 65 6c 6c 65 64 20 61  6e 64 20 74 68 65 20 66  |velled and the f|
00000140  75 65 6c 20 75 73 65 64  20 69 6e 20 6c 69 74 72  |uel used in litr|
00000150  65 73 2e 20 54 68 65 20  70 72 6f 67 72 61 6d 20  |es. The program |
00000160  63 61 6e 20 62 65 20 72  75 6e 20 66 72 6f 6d 20  |can be run from |
00000170  74 68 65 20 64 65 73 6b  74 6f 70 20 62 79 20 74  |the desktop by t|
00000180  68 65 20 75 73 75 61 6c  20 64 6f 75 62 6c 65 20  |he usual double |
00000190  63 6c 69 63 6b 20 6f 6e  20 74 68 65 20 66 69 6c  |click on the fil|
000001a0  65 20 49 63 6f 6e 2e 20  54 68 65 20 69 63 6f 6e  |e Icon. The icon|
000001b0  20 69 73 20 64 69 73 70  6c 61 79 65 64 20 6f 6e  | is displayed on|
000001c0  20 74 68 65 20 49 63 6f  6e 20 62 61 72 2e 20 54  | the Icon bar. T|
000001d0  68 65 20 49 63 6f 6e 20  62 61 72 20 6d 65 6e 75  |he Icon bar menu|
000001e0  20 6f 66 66 65 72 73 20  74 68 65 20 75 73 75 61  | offers the usua|
000001f0  6c 20 69 6e 66 6f 20 77  69 6e 64 6f 77 20 0a 61  |l info window .a|
00000200  6e 64 20 71 75 69 74 2e  20 54 68 65 20 6d 61 69  |nd quit. The mai|
00000210  6e 20 77 69 6e 64 6f 77  20 69 73 20 61 75 74 6f  |n window is auto|
00000220  6d 61 74 69 63 61 6c 6c  79 20 6c 6f 61 64 65 64  |matically loaded|
00000230  2e 20 54 68 65 20 6d 69  6c 65 73 20 6f 72 20 66  |. The miles or f|
00000240  75 65 6c 20 69 6e 20 6c  69 74 72 65 73 20 69 73  |uel in litres is|
00000250  20 65 6e 74 65 72 65 64  20 62 79 20 61 20 73 69  | entered by a si|
00000260  6e 67 6c 65 20 63 6c 69  63 6b 20 69 6e 20 74 68  |ngle click in th|
00000270  65 20 72 65 6c 65 76 65  6e 74 20 77 72 69 74 61  |e relevent writa|
00000280  62 6c 65 20 49 63 6f 6e  2e 20 54 68 69 73 20 64  |ble Icon. This d|
00000290  69 73 70 6c 61 79 73 20  61 0a 20 63 61 72 65 74  |isplays a. caret|
000002a0  20 61 6e 64 20 74 68 65  20 76 61 6c 75 65 20 63  | and the value c|
000002b0  61 6e 20 62 65 20 65 6e  74 65 72 65 64 20 66 72  |an be entered fr|
000002c0  6f 6d 20 74 68 65 20 6b  65 79 62 6f 61 72 64 2e  |om the keyboard.|
000002d0  20 54 6f 20 63 61 6c 63  75 6c 61 74 65 20 6d 70  | To calculate mp|
000002e0  67 20 63 6c 69 63 6b 20  6f 6e 20 74 68 65 20 4f  |g click on the O|
000002f0  4b 20 62 75 74 74 6f 6e  2e 20 54 68 65 20 69 6e  |K button. The in|
00000300  70 75 74 20 63 61 6e 20  62 65 20 61 6d 65 6e 64  |put can be amend|
00000310  65 64 20 62 79 20 63 6c  69 63 6b 69 6e 67 20 6f  |ed by clicking o|
00000320  6e 20 74 68 65 20 49 63  6f 6e 20 61 67 61 69 6e  |n the Icon again|
00000330  20 61 6e 64 20 75 73 69  6e 67 20 43 74 72 6c 20  | and using Ctrl |
00000340  55 20 74 6f 20 63 6c 65  61 72 20 74 68 65 20 49  |U to clear the I|
00000350  63 6f 6e 3b 20 74 68 65  20 6e 65 77 20 76 61 6c  |con; the new val|
00000360  75 65 20 69 73 20 74 68  65 6e 20 65 6e 74 65 72  |ue is then enter|
00000370  65 64 2e 0a 20 0a 4e 2e  42 2e 20 54 6f 20 72 75  |ed.. .N.B. To ru|
00000380  6e 20 74 68 69 73 20 70  72 6f 67 72 61 6d 6d 65  |n this programme|
00000390  20 79 6f 75 20 77 69 6c  6c 20 6e 65 65 64 20 74  | you will need t|
000003a0  68 65 20 6d 6f 64 75 6c  65 20 49 6e 74 65 72 66  |he module Interf|
000003b0  61 63 65 20 6c 6f 61 64  65 64 2e 20 54 68 69 73  |ace loaded. This|
000003c0  20 0a 6d 6f 64 75 6c 65  20 63 61 6e 20 62 65 20  | .module can be |
000003d0  66 6f 75 6e 64 20 62 79  20 6f 70 65 6e 69 6e 67  |found by opening|
000003e0  20 21 49 6e 74 65 72 66  61 63 65 20 6f 6e 20 74  | !Interface on t|
000003f0  68 65 20 53 65 70 74 65  6d 62 65 72 20 41 72 63  |he September Arc|
00000400  68 69 6d 65 64 65 73 20  57 6f 72 6c 64 0a 44 69  |himedes World.Di|
00000410  73 6b 2e 20 54 68 65 20  6d 6f 64 75 6c 65 20 73  |sk. The module s|
00000420  68 6f 75 6c 64 20 62 65  20 63 6f 70 69 65 64 20  |hould be copied |
00000430  74 6f 20 79 6f 75 72 20  21 53 79 73 74 65 6d 20  |to your !System |
00000440  6d 6f 64 75 6c 65 20 64  69 72 65 63 74 6f 72 79  |module directory|
00000450  2e 20 21 6d 70 67 20 77  69 6c 6c 20 61 75 74 6f  |. !mpg will auto|
00000460  6d 61 74 69 63 61 6c 6c  79 20 6c 6f 61 64 20 74  |matically load t|
00000470  68 69 73 20 6d 6f 64 75  6c 65 2e 20 20 0a 0a 32  |his module.  ..2|
00000480  2e 20 54 68 69 73 20 70  72 6f 67 72 61 6d 6d 65  |. This programme|
00000490  20 77 61 73 20 64 65 76  65 6c 6f 70 65 64 20 75  | was developed u|
000004a0  73 69 6e 67 20 74 68 65  20 73 6f 66 74 77 61 72  |sing the softwar|
000004b0  65 20 61 6e 64 20 61 72  74 69 63 6c 65 73 20 70  |e and articles p|
000004c0  75 62 6c 69 73 68 65 64  20 62 79 0a 20 41 72 63  |ublished by. Arc|
000004d0  68 69 6d 65 64 65 73 20  57 6f 72 6c 64 20 28 41  |himedes World (A|
000004e0  75 67 75 73 74 20 31 39  39 32 20 61 6e 64 20 53  |ugust 1992 and S|
000004f0  65 70 74 65 6d 62 65 72  20 31 39 39 32 20 49 73  |eptember 1992 Is|
00000500  73 75 65 73 29 2e 20 54  68 65 20 73 6f 66 74 77  |sues). The softw|
00000510  61 72 65 20 75 73 65 64  20 0a 77 61 73 3a 2d 0a  |are used .was:-.|
00000520  0a 21 46 6f 72 6d 45 64  20 2d 20 28 41 63 6f 72  |.!FormEd - (Acor|
00000530  6e 29 20 66 6f 72 20 70  72 6f 64 75 63 69 6e 67  |n) for producing|
00000540  20 74 68 65 20 54 65 6d  70 6c 61 74 65 73 2e 0a  | the Templates..|
00000550  21 49 6e 74 65 72 66 61  63 65 20 2d 20 28 53 69  |!Interface - (Si|
00000560  6d 6f 6e 20 48 75 6e 74  69 6e 67 64 6f 6e 29 20  |mon Huntingdon) |
00000570  66 6f 72 20 74 68 65 20  22 49 6d 70 72 65 73 73  |for the "Impress|
00000580  69 6f 6e 20 73 74 79 6c  65 20 62 6f 78 65 73 22  |ion style boxes"|
00000590  2e 0a 21 43 6f 6e 76 65  72 74 20 2d 20 28 4a 6f  |..!Convert - (Jo|
000005a0  65 20 54 61 79 6c 6f 72  29 20 66 6f 72 20 74 6f  |e Taylor) for to|
000005b0  6b 65 6e 69 73 69 6e 67  20 42 61 73 69 63 20 74  |kenising Basic t|
000005c0  65 78 74 20 66 69 6c 65  73 2e 0a 21 57 69 6d 70  |ext files..!Wimp|
000005d0  45 64 20 2d 20 28 4a 6f  65 20 54 61 79 6c 6f 72  |Ed - (Joe Taylor|
000005e0  29 20 66 6f 72 20 63 6f  6e 73 74 72 75 63 74 69  |) for constructi|
000005f0  6e 67 20 74 68 65 20 62  61 73 69 63 20 57 69 6d  |ng the basic Wim|
00000600  70 20 73 68 65 6c 6c 20  66 6f 72 20 74 68 65 20  |p shell for the |
00000610  70 72 6f 67 72 61 6d 2e  0a 21 57 69 6d 70 47 6c  |program..!WimpGl|
00000620  6f 73 73 20 20 2d 20 28  4a 6f 65 20 54 61 79 6c  |oss  - (Joe Tayl|
00000630  6f 72 29 20 61 20 67 6c  6f 73 73 61 72 79 20 70  |or) a glossary p|
00000640  72 6f 76 69 64 69 6e 67  20 69 6e 66 6f 20 6f 6e  |roviding info on|
00000650  20 66 75 6e 63 74 69 6f  6e 73 20 65 74 63 2e 0a  | functions etc..|
00000660  0a 4a 6f 65 20 54 61 79  6c 6f 72 27 73 20 73 6f  |.Joe Taylor's so|
00000670  66 74 77 61 72 65 20 61  6e 64 20 61 72 74 69 63  |ftware and artic|
00000680  6c 65 73 20 73 61 76 65  64 20 6d 6f 6e 74 68 73  |les saved months|
00000690  20 6f 66 20 73 74 72 75  67 67 6c 69 6e 67 20 77  | of struggling w|
000006a0  69 74 68 20 74 68 65 0a  20 50 72 6f 67 72 61 6d  |ith the. Program|
000006b0  6d 65 72 27 73 20 52 65  66 65 72 65 6e 63 65 20  |mer's Reference |
000006c0  6d 61 6e 75 61 6c 2e 20  54 68 69 73 20 77 61 73  |manual. This was|
000006d0  20 6d 79 20 66 69 72 73  74 20 57 49 4d 50 20 70  | my first WIMP p|
000006e0  72 6f 67 72 61 6d 6d 65  20 61 6e 64 20 77 61 73  |rogramme and was|
000006f0  0a 20 70 72 6f 64 75 63  65 64 20 73 6f 6c 65 79  |. produced soley|
00000700  20 77 69 74 68 20 74 68  65 20 61 62 6f 76 65 20  | with the above |
00000710  69 6e 66 6f 3b 20 49 20  64 6f 20 6e 6f 74 20 68  |info; I do not h|
00000720  61 76 65 20 61 20 63 6f  70 79 20 6f 66 20 74 68  |ave a copy of th|
00000730  65 20 50 72 6f 67 72 61  6d 6d 65 72 27 73 20 52  |e Programmer's R|
00000740  65 66 65 72 65 6e 63 65  20 6d 61 6e 75 61 6c 2e  |eference manual.|
00000750  20 49 6e 20 61 6c 6c 20  49 20 73 70 65 6e 74 20  | In all I spent |
00000760  61 62 6f 75 74 20 38 68  72 73 20 6d 6f 73 74 20  |about 8hrs most |
00000770  6f 66 20 69 74 20 65 78  70 65 72 69 6d 65 6e 74  |of it experiment|
00000780  69 6e 67 20 77 69 74 68  0a 20 21 57 69 6d 70 45  |ing with. !WimpE|
00000790  64 20 61 6e 64 20 21 46  6f 72 6d 45 64 20 74 6f  |d and !FormEd to|
000007a0  20 70 72 6f 64 75 63 65  20 21 6d 70 67 2e 20 4a  | produce !mpg. J|
000007b0  6f 65 20 54 61 79 6c 6f  72 20 69 73 20 61 6e 20  |oe Taylor is an |
000007c0  65 78 63 65 6c 6c 65 6e  74 20 73 74 61 72 74 20  |excellent start |
000007d0  66 6f 72 0a 20 61 6e 79  6f 6e 65 20 61 73 20 49  |for. anyone as I|
000007e0  20 6e 6f 77 20 62 65 6c  69 65 76 65 20 49 20 63  | now believe I c|
000007f0  6f 75 6c 64 20 74 61 63  6b 6c 65 20 73 6f 6d 65  |ould tackle some|
00000800  74 68 69 6e 67 20 6d 6f  72 65 20 63 6f 6d 70 6c  |thing more compl|
00000810  65 78 2e 0a 0a 0a 20 20  20 20 54 68 61 6e 6b 79  |ex....    Thanky|
00000820  6f 75 20 41 72 63 68 69  6d 65 64 65 73 20 57 6f  |ou Archimedes Wo|
00000830  72 6c 64 20 66 6f 72 20  74 68 65 20 61 72 74 69  |rld for the arti|
00000840  63 6c 65 73 20 76 65 72  79 20 68 65 6c 70 66 75  |cles very helpfu|
00000850  6c 20 69 6e 64 65 65 64  2e 0a 0a 0a 44 61 76 65  |l indeed....Dave|
00000860  20 48 79 65 74 74 0a 36  74 68 20 53 65 70 74 65  | Hyett.6th Septe|
00000870  6d 62 65 72 20 31 39 39  32 2e 0a 20 20 0a 20 20  |mber 1992..  .  |
00000880  20 0a 20 20 20 0a 20 20  20 20 20 20 20 20 20 20  | .   .          |
00000890  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
000008a0  20 20 0a 20 20 20 0a                              |  .   .|
000008a7