{"id":128,"date":"2014-05-27T21:41:47","date_gmt":"2014-05-27T21:41:47","guid":{"rendered":"http:\/\/goldtek.ca\/?p=128"},"modified":"2024-12-01T19:06:27","modified_gmt":"2024-12-01T19:06:27","slug":"mileage-converter","status":"publish","type":"post","link":"https:\/\/goldtek.ca\/?p=128","title":{"rendered":"Mileage Converter"},"content":{"rendered":"<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<\/p>\n<p>UPDATE: December 01, 2024<\/p>\n<p>I have posted here the AppleSoft code listing for Mileage Converter, removing the old listing from the basic app I had on my iPad, as that app doesn&#8217;t seem to work any longer, so I converted that code AppleSoft, and it appears to run properly.<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<\/p>\n<p>Howdy folks! Recently I started to re-dable (now that&#8217;s a funny word, if in fact it is a real word) with BASIC programming. Programming in BASIC, for me, goes all the way back to being twelve to fourteen years old, somewhere in the early 80&#8217;s. That&#8217;s when the Apple ][+ ruled the personal computer world!<\/p>\n<p>I am including the code to what I&#8217;ve written so far if you&#8217;d like to try it out. Be aware that not all versions of BASIC use exactly the same syntax or commands but if your willing to give this a go, you probably already know that.<\/p>\n<p>10 REM Convert l\/100 to us &amp; i<br \/>\nmp and back<br \/>\n12 REM by Wayne Goldsmith<br \/>\n13 HOME<br \/>\n15 GOSUB 500<br \/>\n35 PRINT<br \/>\n40 PRINT &#8220;1) L\/100 TO IMPERIAL<br \/>\nMPG&#8221;<br \/>\n45 PRINT &#8220;2) IMPERIAL MPG TO L\/<br \/>\n100&#8221;<br \/>\n50 PRINT &#8220;3) L\/100 TO US MPG&#8221;<br \/>\n55 PRINT &#8220;4) US MPG TO L\/100&#8221;<br \/>\n57 PRINT &#8220;5) QUIT&#8221;<br \/>\n60 PRINT<br \/>\n65 INPUT &#8220;PLEASE ENTER YOUR CHO<br \/>\nICE &#8220;;C<br \/>\n70 IF C = 1 THEN GOSUB 135<br \/>\n80 IF C = 2 THEN GOSUB 180<br \/>\n90 IF C = 3 THEN GOSUB 250<br \/>\n100 IF C = 4 THEN GOSUB 320<br \/>\n110 IF C = 5 THEN HOME : GOSUB<br \/>\n400<br \/>\n120 GOTO 13<br \/>\n135 REM l\/100 to imp mpg<br \/>\n136 PRINT<br \/>\n140 INPUT &#8220;PLEASE ENTER YOUR L\/<br \/>\n100 TO CONVERT &#8220;;L<br \/>\n150 MPG = 282.48 \/ L<br \/>\n155 PRINT<br \/>\n157 PRINT<br \/>\n160 PRINT &#8220;YOUR L\/100 EQUALS &#8220;M<br \/>\nPG&#8221; IMPERIAL MPG&#8221;<br \/>\n165 PRINT<br \/>\n166 PRINT<br \/>\n168 GOSUB 450<br \/>\n170 RETURN<br \/>\n180 REM imp mpg to l\/100<br \/>\n181 PRINT<br \/>\n190 INPUT &#8220;PLEASE ENTER YOUR IM<br \/>\nPERIAL MPG. &#8220;;MPG<br \/>\n200 L = 282.48 \/ MPG<br \/>\n210 PRINT<br \/>\n220 PRINT<br \/>\n230 PRINT &#8220;YOUR IMPERIAL MPG EQ<br \/>\nUALS &#8220;L&#8221; L\/100&#8243;<br \/>\n235 PRINT<br \/>\n236 PRINT<br \/>\n238 GOSUB 450<br \/>\n240 RETURN<br \/>\n250 REM l\/100 to us mpg<br \/>\n251 PRINT<br \/>\n260 INPUT &#8220;PLEASE ENTER YOUR L\/<br \/>\n100 &#8220;;L<br \/>\n270 MPG = 235.2 \/ L<br \/>\n280 PRINT<br \/>\n290 PRINT<br \/>\n300 PRINT &#8220;YOUR &#8220;L&#8221; L\/100 EQUAL<br \/>\nS &#8220;MPG&#8221; US MPG&#8221;<br \/>\n305 PRINT<br \/>\n306 PRINT<br \/>\n308 GOSUB 450<br \/>\n310 RETURN<br \/>\n320 REM US MPG to L\/100<br \/>\n321 PRINT<br \/>\n330 INPUT &#8220;PLEASE ENTER YOUR US<br \/>\nMPG &#8220;;MPG<br \/>\n340 L = 235.2 \/ MPG<br \/>\n350 PRINT<br \/>\n360 PRINT<br \/>\n370 PRINT &#8220;YOUR &#8220;MPG&#8221; US MPG EQ<br \/>\nUALS &#8220;L&#8221; L\/100&#8243;<br \/>\n375 PRINT<br \/>\n376 PRINT<br \/>\n378 GOSUB 450<br \/>\n380 RETURN<br \/>\n390 GOTO 20<br \/>\n400 PRINT<br \/>\n415 GOSUB 500<br \/>\n420 HTAB 15: PRINT &#8220;THANK YOU&#8221;<br \/>\n423 HTAB 13: PRINT &#8220;FOR USING T<br \/>\nHE&#8221;<br \/>\n425 HTAB 8: PRINT &#8220;MULTI-MILEAG<br \/>\nE CONVERTER&#8221;<br \/>\n430 END<br \/>\n450 INPUT &#8220;PRESS C TO CONTINUE,<br \/>\nOR Q TO QUIT. &#8220;;D$<br \/>\n460 IF D$ = &#8220;C&#8221; THEN RETURN<br \/>\n470 IF D$ = &#8220;Q&#8221; THEN HOME : GOTO<br \/>\n400<br \/>\n480 GOTO 450<br \/>\n500 PRINT &#8220;********************<br \/>\n********************&#8221;<br \/>\n510 PRINT : HTAB 6: PRINT &#8220;THE<br \/>\nMULTI-MILEAGE CONVERTER&#8221;<br \/>\n515 PRINT : PRINT : HTAB 10: PRINT<br \/>\n&#8220;WAYNE GOLDSMITH 2023&#8221;<br \/>\n520 PRINT : PRINT &#8220;************<br \/>\n****************************<br \/>\n&#8221;<br \/>\n530 RETURN<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- UPDATE: December 01, 2024 I have posted here the AppleSoft code listing for Mileage Converter, removing the old listing from the basic app I had on my iPad, as [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[37,2],"tags":[49,48,50],"class_list":["post-128","post","type-post","status-publish","format-standard","hentry","category-applesoft","category-online-with-the-techie-guy","tag-apple","tag-applesoft","tag-basic"],"_links":{"self":[{"href":"https:\/\/goldtek.ca\/index.php?rest_route=\/wp\/v2\/posts\/128","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/goldtek.ca\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/goldtek.ca\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/goldtek.ca\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/goldtek.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=128"}],"version-history":[{"count":4,"href":"https:\/\/goldtek.ca\/index.php?rest_route=\/wp\/v2\/posts\/128\/revisions"}],"predecessor-version":[{"id":185,"href":"https:\/\/goldtek.ca\/index.php?rest_route=\/wp\/v2\/posts\/128\/revisions\/185"}],"wp:attachment":[{"href":"https:\/\/goldtek.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=128"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/goldtek.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=128"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/goldtek.ca\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=128"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}