Home » Archimedes archive » Acorn User » AU 1993-09.adf » !BasicProg/!Help
!BasicProg/!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 » Acorn User » AU 1993-09.adf |
Filename: | !BasicProg/!Help |
Read OK: | ✔ |
File size: | 0253 bytes |
Load address: | FFFFFF44 |
Exec address: | B93BE7CB |
File contents
Back to Basics: Learning to Program in Basic By Mark Moxon Run this application to open a directory containing four example Basic programs from the second part of the series on learning to program in Basic. Listing1 prints out the value of the variable number_of_eggs at two different parts of the program. Listing2 prints out the values of the variables number_of_eggs% and more_eggs%. Listing3 demonstrates the use of string variables. Listing4 shows various functions on numerical and string variables. For more information, see the article on page 79. � Copyright BBC Acorn User 1993
00000000 42 61 63 6b 20 74 6f 20 42 61 73 69 63 73 3a 20 |Back to Basics: | 00000010 4c 65 61 72 6e 69 6e 67 20 74 6f 20 50 72 6f 67 |Learning to Prog| 00000020 72 61 6d 20 69 6e 20 42 61 73 69 63 0a 42 79 20 |ram in Basic.By | 00000030 4d 61 72 6b 20 4d 6f 78 6f 6e 0a 0a 52 75 6e 20 |Mark Moxon..Run | 00000040 74 68 69 73 20 61 70 70 6c 69 63 61 74 69 6f 6e |this application| 00000050 20 74 6f 20 6f 70 65 6e 20 61 20 64 69 72 65 63 | to open a direc| 00000060 74 6f 72 79 20 63 6f 6e 74 61 69 6e 69 6e 67 20 |tory containing | 00000070 66 6f 75 72 20 65 78 61 6d 70 6c 65 20 42 61 73 |four example Bas| 00000080 69 63 20 70 72 6f 67 72 61 6d 73 20 66 72 6f 6d |ic programs from| 00000090 20 74 68 65 20 73 65 63 6f 6e 64 20 70 61 72 74 | the second part| 000000a0 20 6f 66 20 74 68 65 20 73 65 72 69 65 73 20 6f | of the series o| 000000b0 6e 20 6c 65 61 72 6e 69 6e 67 20 74 6f 20 70 72 |n learning to pr| 000000c0 6f 67 72 61 6d 20 69 6e 20 42 61 73 69 63 2e 0a |ogram in Basic..| 000000d0 0a 4c 69 73 74 69 6e 67 31 20 70 72 69 6e 74 73 |.Listing1 prints| 000000e0 20 6f 75 74 20 74 68 65 20 76 61 6c 75 65 20 6f | out the value o| 000000f0 66 20 74 68 65 20 76 61 72 69 61 62 6c 65 20 6e |f the variable n| 00000100 75 6d 62 65 72 5f 6f 66 5f 65 67 67 73 20 61 74 |umber_of_eggs at| 00000110 20 74 77 6f 20 64 69 66 66 65 72 65 6e 74 20 70 | two different p| 00000120 61 72 74 73 20 6f 66 20 74 68 65 20 70 72 6f 67 |arts of the prog| 00000130 72 61 6d 2e 0a 0a 4c 69 73 74 69 6e 67 32 20 70 |ram...Listing2 p| 00000140 72 69 6e 74 73 20 6f 75 74 20 74 68 65 20 76 61 |rints out the va| 00000150 6c 75 65 73 20 6f 66 20 74 68 65 20 76 61 72 69 |lues of the vari| 00000160 61 62 6c 65 73 20 6e 75 6d 62 65 72 5f 6f 66 5f |ables number_of_| 00000170 65 67 67 73 25 20 61 6e 64 20 6d 6f 72 65 5f 65 |eggs% and more_e| 00000180 67 67 73 25 2e 0a 0a 4c 69 73 74 69 6e 67 33 20 |ggs%...Listing3 | 00000190 64 65 6d 6f 6e 73 74 72 61 74 65 73 20 74 68 65 |demonstrates the| 000001a0 20 75 73 65 20 6f 66 20 73 74 72 69 6e 67 20 76 | use of string v| 000001b0 61 72 69 61 62 6c 65 73 2e 0a 0a 4c 69 73 74 69 |ariables...Listi| 000001c0 6e 67 34 20 73 68 6f 77 73 20 76 61 72 69 6f 75 |ng4 shows variou| 000001d0 73 20 66 75 6e 63 74 69 6f 6e 73 20 6f 6e 20 6e |s functions on n| 000001e0 75 6d 65 72 69 63 61 6c 20 61 6e 64 20 73 74 72 |umerical and str| 000001f0 69 6e 67 20 76 61 72 69 61 62 6c 65 73 2e 0a 0a |ing variables...| 00000200 46 6f 72 20 6d 6f 72 65 20 69 6e 66 6f 72 6d 61 |For more informa| 00000210 74 69 6f 6e 2c 20 73 65 65 20 74 68 65 20 61 72 |tion, see the ar| 00000220 74 69 63 6c 65 20 6f 6e 20 70 61 67 65 20 37 39 |ticle on page 79| 00000230 2e 0a 0a a9 20 43 6f 70 79 72 69 67 68 74 20 42 |.... Copyright B| 00000240 42 43 20 41 63 6f 72 6e 20 55 73 65 72 20 31 39 |BC Acorn User 19| 00000250 39 33 0a |93.| 00000253