home *** CD-ROM | disk | FTP | other *** search
- 10 rem *** heat stress
- 15 rem *** copyright 1983
- 20 rem *** by john beltrami
- 25 rem *** translated for the
- 30 rem *** commodore 64 by
- 35 rem *** donna k. woody
- 40 printchr$(147):gosub1000
- 42 gosub500
- 43 poke781,15:poke782,12:syss:print"[149][204][207][193][196][201][206][199][160][196][193][212][193][146][144]"
- 44 dime(11,11)
- 45 gosub800:rem *** load table
- 50 gosub300:rem *** intro
- 54 :
- 55 rem *** main loop
- 56 :
- 60 gosub500:rem *** heading
- 70 poke781,8:poke782,5:syss:print"[193]ir temperature ([198]ahrenheit)"
- 80 v=9
- 85 t=65
- 90 fori=1to11
- 95 v=v+1
- 100 t=t+5
- 105 i$=str$(i)
- 106 l=len(i$):ifl<3theni$=" "+i$
- 107 t$=str$(t)
- 108 l=len(t$):ifl<4thent$=" "+t$
- 110 poke781,v:poke782,9:syss:printi$" ---- ";t$;" degrees"
- 115 nexti
- 120 poke781,22:poke782,5:syss:input"[208]ick the closest (1 to 11) [157][157][157][157]";y$
- 125 y=val(y$):ify<1ory>11thenprint:goto120
- 127 c=y
- 130 gosub500
- 140 poke781,8:poke782,5:syss:print"[210]elative himidity (percent)"
- 145 v=9:t=-10
- 150 fori=1to11
- 155 v=v+1:t=t+10
- 160 i$=str$(i)
- 162 l=len(i$):ifl<3theni$=" "+i$
- 165 t$=str$(t)
- 166 l=len(t$)
- 170 ifl<4thent$=" "+t$:goto166
- 175 poke781,v:poke782,12:syss:printi$;" ---- ";t$;" %"
- 180 nexti
- 185 poke781,22:poke782,5:syss:input"[208]ick the closest (1 to 11) [157][157][157][157]";y$
- 190 y=val(y$):ify<1ory>11thenprint:goto185
- 195 r=y
- 196 t1=c*5+65
- 197 t2=e(r,c)
- 198 h1=r*10-10
- 200 gosub500
- 210 poke781,10:poke782,2:syss:print"[193]t an air temperature of "t1" degrees"
- 220 poke781,12:poke782,2:syss:print"and a relative humidity of "h1" %"
- 230 poke781,14:poke782,2:syss:print"you will feel as if it is"
- 240 poke781,16:poke782,2:syss:print"at least "t2" degrees!"
- 250 poke781,22:poke782,5:syss:print"[212]ry another (y/n)?[160]";
- 252 poke198,0:wait198,1:gety$
- 260 ify$="y"thengoto55
- 262 ify$="n"thengosub500:goto266
- 265 goto250
- 266 poke781,10:poke782,5:syss:print"[212]hat's all, folks!"
- 270 rem ********** end *************
- 271 rem ********** end *************
- 272 goto63000
- 299 :
- 300 rem introduction
- 301 :
- 310 gosub500
- 315 gosub600
- 320 poke781,8:poke782,1:syss
- 330 print"[215]ind and other factors affect"
- 335 poke781,10:poke782,1:syss
- 340 print"the impact of the actual temperature."
- 345 poke781,12:poke782,1:syss
- 350 print"[212]he 'wind-chill' factor is well known."
- 355 poke781,14:poke782,1:syss
- 360 print"[200]umidity has a similiar effect, adding"
- 365 poke781,16:poke782,1:syss
- 370 print"a source of stress at higher"
- 375 poke781,18:poke782,1:syss
- 376 print"air temperatures."
- 380 poke781,22:poke782,5:syss
- 385 print"[210]eady to find the current"
- 390 poke781,23:poke782,5:syss:print"heat stress factor?[160]";
- 395 poke198,0:wait198,1:gety$
- 396 ify$<>"y"thenprint:goto390
- 450 return
- 499 :
- 500 rem *** heading
- 501 :
- 510 printchr$(147)
- 520 poke781,2:poke782,10:syss:print"***************"
- 525 poke781,3:poke782,10:syss:print"* *"
- 530 poke781,4:poke782,10:syss:print"* [200][197][193][212] [211][212][210][197][211][211] *"
- 540 poke781,5:poke782,10:syss:print"* *"
- 545 poke781,6:poke782,10:syss:print"***************"
- 570 return
- 599 :
- 600 rem *** copyright
- 601 :
- 610 poke781,3:poke782,27:syss:print"[195]opyright"
- 615 poke781,4:poke782,27:syss:print" 1984 "
- 620 poke781,5:poke782,27:syss:print"[202]ohn [194]eltrami"
- 650 return
- 799 :
- 800 rem *** load table
- 801 :
- 810 fori=1to11
- 815 forj=1to11
- 820 reade(i,j)
- 825 nextj
- 830 nexti
- 840 return
- 900 data64,69,73,78,83,87,91,95,99,103,107
- 901 data65,70,75,80,85,90,95,100,105,111,116
- 902 data66,72,77,82,87,93,99,105,112,120,130
- 903 data67,73,78,84,90,96,104,113,123,135,148
- 904 data68,74,79,86,93,101,110,123,137,151,151
- 905 data69,75,81,88,96,107,120,135,150,151,151
- 906 data70,76,82,90,100,115,132,149,151,151,151
- 907 data70,77,85,93,106,124,144,149,151,151,151
- 908 data71,78,86,97,113,136,144,149,151,15,151
- 909 data71,79,88,102,122,136,144,149,151,151,151
- 910 data72,80,91,108,122,136,144,149,151,151,151
- 997 :
- 998 rem *** initialize colors & variables
- 999 :
- 1000 s=65520:poke783,peek(783)and254
- 1010 poke53280,9:poke53281,7:printchr$(144):poke53272,23:printchr$(8)
- 1050 return
- 63000 rem link back
- 63010 print"[147]load"chr$(34)"payload"chr$(34)",8":print"run"
- 63020 poke198,0:poke631,13:poke632,13:poke198,2:end
-