Home » Personal collection » Commodore disks » disk50a2_progs1.d64 » perimeter
perimeter
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 » Commodore disks » disk50a2_progs1.d64 |
Filename: | perimeter |
Read OK: | ✔ |
File size: | 01D6 bytes |
Load address: | 0801 |
Exec address: | 0000 |
File contents
10 REM WETTED PERIMETER CALCULATION 20 : 30 D=0:P=0:A=0:CA=0:TD=0 40 INPUT"MEASUREMENT INTERVALS";MI 50 A=A+MI:PRINT:PRINT"PERIMETER=";P:PRINT"AREA=";CA 60 PRINT"HYDRAULIC RADIUS=";HR:PRINT"DEPTH AT";A;:READ DR:PRINT"=";DR 70 CA=2*(TD/((A+MI)/MI))+A:P=P+SQR(MI^2+(DR-D)^2):D=DR:TD=TD+DR:HR=CA/P:GOTO50 80 : 100 DATA100,107,110,120,126,136,144,150,157,170,170,194,187,197,210,220,215,216 110 DATA223,249,255,263,254,253,264,255,228,250,229,221,199,210,200,192,181,184 120 DATA179,148,174,131,142,121,84,72,0
$ � WETTED PERIMETER CALCULATION * : D D�0:P�0:A�0:CA�0:TD�0 d( �"MEASUREMENT INTERVALS";MI �2 A�A�MI:�:�"PERIMETER=";P:�"AREA=";CA �<