home *** CD-ROM | disk | FTP | other *** search
- 20 print"[147]":poke53280,1:poke53281,1:poke198,0
- 30 rem if computer is +4, delete "rem" in line 40
- 40 rem color 0,2:poke65305,249
- 50 dimin$(720),ho%(720),mh(12),ml(12),ar(12),as(12),no%(720),d%(50)
- 60 bl$=" "
- 70 fort=1to12:readmh(t):next:fort=1to12:readml(t):next
- 80 fort=1to12:readar(t):next:fort=1to12:readas(t):next
- 90 fort=1to8:readdi$(t):next
- 100 open15,8,15:open1,8,2,"rc.index,s,r"
- 110 input#15,a:ifa=62thengosub240:goto1110
- 120 input#1,rc%,tr%,hd$,cd$,mp$,ap$,ms$,as$:gosub240:ifrc%=720thenrc%=0
- 130 goto1110
- 140 open4,4,7:cmd4:return
- 150 print#4:close4:return
- 160 print#15,"p"+chr$(2)+chr$(lb)+chr$(hb)+chr$(1):return
- 170 hb=int(x1/256):lb=x1-hb*256:return
- 180 rc$="":fora=1to100:get#1,a$:rc$=rc$+a$:next:return
- 190 print#15,"i0":return
- 200 close1:open1,8,2,"wx.data,l,"+chr$(100):return
- 210 open15,8,15:gosub190:return
- 220 getg$:ifg$=""then220
- 230 return
- 240 close1:close15:return
- 250 mo=0:print"[147][197]nter number of month for report:";:inputmo
- 260 yr=0:print"[147][197]nter year for report";:inputyr
- 270 ifmo<1ormo>12then250
- 280 print"[147] [215]ait!!"
- 290 hi=0:lo=200:ba=0:ra=0:sn=0:ws=0:de=0:ed=0:rh=0:bl=33:pc=0
- 300 print" [208]reparing [210]eport":gosub210:gosub200
- 310 forx1=1totr%:gosub170:g$="":gosub160
- 320 fora=1to6:get#1,a$:g$=g$+a$:next
- 330 ifyr<>val(mid$(g$,5,2))then360
- 340 ifmo=val(mid$(g$,3,2))thengosub630
- 350 ifmo<val(mid$(g$,3,2))thenx1=tr%
- 360 next:close1:gosub190:close15
- 370 iflo=200thenprint"[147][206]o data for this month exists.":goto620
- 380 ifpr=1thengosub140
- 390 print"[147] [205]onthly [210]eport for :[146]";mo;"/"yr
- 400 print"[206]ormal [200]igh:";mh(mo);:print" [206]ormal [204]ow:"ml(mo)
- 410 print"[206]ormal [210]ain: "ar(mo);:print" [206]ormal [211]now: "as(mo)
- 420 print"[200]ighest [194]arometer reading..."ba:
- 430 print"on "mid$(da$(1),3,2)"/"mid$(da$(1),1,2)"/"mid$(da$(1),5,2)
- 440 print"[204]owest [194]arometer reading...."bl
- 450 print"on "mid$(da$(2),3,2)"/"mid$(da$(2),1,2)"/"mid$(da$(2),5,2)
- 460 print"[200]ighest [212]emperature........."hi
- 470 print"on "mid$(da$(3),3,2)"/"mid$(da$(3),1,2)"/"mid$(da$(3),5,2)
- 480 print"[204]owest [212]emperature.........."lo
- 490 print"on "mid$(da$(4),3,2)"/"mid$(da$(4),1,2)"/"mid$(da$(4),5,2)
- 500 print"[200]ighest [215]ind "ws" from ";di$(wd)
- 510 print"on "mid$(da$(5),3,2)"/"mid$(da$(5),1,2)"/"mid$(da$(5),5,2)
- 520 printpc;"[196]ays with precipitation."
- 530 print"[205]ost rainfall..............."ra
- 540 print"on "mid$(da$(6),3,2)"/"mid$(da$(6),1,2)"/"mid$(da$(6),5,2)
- 550 print"[200]eaviest [211]nowfall..........."sn
- 560 print"on "mid$(da$(7),3,2)"/"mid$(da$(7),1,2)"/"mid$(da$(7),5,2)
- 570 print"[200]ighest [200]umidity............"rh
- 580 print"on "mid$(da$(9),3,2)"/"mid$(da$(9),1,2)"/"mid$(da$(9),5,2)
- 590 print"[212]otal [200]eating [196]egree [196]ays..."de
- 600 print"[212]otal [195]ooling [196]egree [196]ays..."ed
- 610 ifpr=1thengosub150
- 620 gosub2350:return
- 630 gosub160:gosub180
- 640 ifba<val(mid$(rc$,7,5))thenba=val(mid$(rc$,7,5)):da$(1)=mid$(rc$,1,6)
- 650 ifbl>val(mid$(rc$,7,5))thenbl=val(mid$(rc$,7,5)):da$(2)=mid$(rc$,1,6)
- 660 ifhi<val(mid$(rc$,13,3))thenhi=val(mid$(rc$,13,3)):da$(3)=mid$(rc$,1,6)
- 670 iflo>val(mid$(rc$,16,3))thenlo=val(mid$(rc$,16,3)):da$(4)=mid$(rc$,1,6)
- 680 ifws<val(mid$(rc$,20,3))thenws=val(mid$(rc$,20,3)):wd=val(mid$(rc$,19,1))
- 690 ifws=val(mid$(rc$,20,3))thenda$(5)=mid$(rc$,1,6)
- 700 ifra<val(mid$(rc$,23,5))thenra=val(mid$(rc$,23,5)):da$(6)=mid$(rc$,1,6)
- 710 ifval(mid$(rc$,23,5))<>0thenpc=pc+1
- 720 ifsn<val(mid$(rc$,28,4))thensn=val(mid$(rc$,28,4)):da$(7)=mid$(rc$,1,6)
- 730 ifrh<val(mid$(rc$,32,3))thenrh=val(mid$(rc$,32,3)):da$(9)=mid$(rc$,1,6)
- 740 h=val(mid$(rc$,13,3)):l=val(mid$(rc$,16,3))
- 750 tp=65-int((h+l)/2):ifsgn(tp)=-1thentp=int((h+l)/2)-65:goto770
- 760 de=de+tp:goto780
- 770 ed=ed+tp
- 780 return
- 790 print"[147] [211]earching for "mo$"/"da$"/"yr$
- 800 gosub210:gosub200:r=0:forpt=1totr%:x1=pt:gosub170:rc$=""
- 810 gosub160:rc$="":fora=1to6:get#1,a$:rc$=rc$+a$:next
- 820 ifse$=rc$thenr=pt:pt=tr%:rc$=""
- 830 next
- 840 ifr=0then870
- 850 a$="":gosub160:gosub180
- 860 gosub240:return
- 870 gosub240:print" [210]ecord not found.":return
- 880 f=1:print"[147][211]earch by [198][146]ield or [210][146]ecord number?"
- 890 gosub220:ifg$="r"then1060
- 900 ifg$<>"f"then890
- 910 print"[147][197]nter number of field for search:"
- 920 printtab(7)" 1. [146] [211]pecific [196]ate
- 930 [153][163]7)" 2. wait chr$enerate (NULL)onthly (NULL)eport
- 940 printtab(7)" 3. [146] [210]eturn to [205]ain [205]enu
- 950 [141]220:g[178][198](g$)[171]48:[145]g[137]980,250,970
- 960 [137]950
- 970 [142]
- 980 [153]"load (NULL)earch for str$ate
- 990 print"[197]nter date (month, day, year)"
- 1000 print"[211]eparate each entry with a comma.":inputmo$,da$,yr$
- 1010 ifval(da$)<=9thenda$="0"+da$
- 1020 ifval(mo$)<=9thenmo$="0"+mo$
- 1030 ifval(yr$)<=9thenyr$="0"+yr$
- 1040 se$=da$+mo$+yr$:gosub790:ifr=0thengosub2350:return
- 1050 gosub2640:gosub2350:return
- 1060 print"[147]":gosub210:gosub200:rc$=""
- 1070 print"[210]ecord number for [211]earch?":inputr:ifr>tr%then720
- 1080 x1=r:gosub170:gosub160:gosub180:gosub190:gosub240:gosub2640:gosub2350
- 1090 return
- 1100 gosub240:print"[147][201]nvalid [210]ecord [206]umber":gosub2350:return
- 1110 print"":printchr$(14):fl=0:f=0:q=fre(o)
- 1120 print"[147] [215][197][193][212][200][197][210] [208][210][207][208][200][197][212]
- 1130 [153]" 1 wait valnter (NULL)ew str$ata
- 1140 print" 2 [146] [198]orecast
- 1150 [153]" 3 wait (NULL)earch str$ata
- 1160 print" 4 [146] [196]egree [196]ay [210]egister
- 1170 [153]" 5 wait valxit (NULL)rogram
- 1180 print" 0 [146] [212]oggle [208]rinter [207]ption
- 1190 [153]"":[153]" ";tr%;" (NULL)ecords in str$ata peekase.":[153]""
- 1200 [139]pr[178]1[167][153]" (NULL)rinter (NULL)(NULL) "
- 1210 [139]pr[178]0[167][153]" (NULL)rinter (NULL)ascasc "
- 1220 [141]220:g[178][197](g$):[145]g[141]1270,3000,880,3150,3280
- 1230 [139]g$[178]"0"[167][141]1250
- 1240 [137]1110
- 1250 [139]pr[178]0[167]pr[178]1:[142]
- 1260 [139]pr[178]1[167]pr[178]0:[142]
- 1270 [153]"loadvalnter str$ate: (NULL)onth, str$ay, (NULL)ear as 12,31,84"
- 1280 [153]"(NULL)eparate each entry with a comma.":[133]mo$,da$,yr$
- 1290 [139][197](da$)[179][178]9[167]da$[178]"0"[170]da$
- 1300 [139][197](mo$)[179][178]9[167]mo$[178]"0"[170]mo$
- 1310 [139][197](yr$)[179][178]9[167]yr$[178]"0"[170]yr$
- 1320 [139]rc%[178]0[167]1370
- 1330 [141]210:[141]200:x1[178]rc%:[141]170:[141]160
- 1340 g$[178]"":[129]a[178]1[164]6:[161]#1,a$:g$[178]g$[170]a$:[130]:[141]240
- 1350 [139][202](g$,3,2)[179]mo$[167]mp$[178]"00":ms$[178]"00"
- 1360 [139][202](g$,5,2)[179]yr$[167]ap$[178]"00":mp$[178]"00":ms$[178]"00":as$[178]"00"
- 1370 ba$[178]"":[141]3020:[141]3030
- 1380 hi$[178]"":[153]"loadvalnter left$igh (NULL)emperature:";:[133]hi$
- 1390 lo$[178]"":[153]"loadvalnter (NULL)ow (NULL)emperature:";:[133]lo$
- 1400 [141]3090:ws$[178]"":[153]"loadvalnter atnverage (NULL)ind (NULL)peed":[133]ws$:ws[178][197](ws$)
- 1410 ra$[178]"":[153]"loadvalnter (NULL)recipitation [0.00] inches.":[133]ra$
- 1420 mp$[178][196]([197](mp$)[170][197](ra$)):ap$[178][196]([197](ap$)[170][197](ra$))
- 1430 sn$[178]"":[153]"loadvalnter (NULL)nowfall to nearest tenth inch.":[133]sn$
- 1440 ms$[178][196]([197](ms$)[170][197](sn$)):as$[178][196]([197](as$)[170][197](sn$))
- 1450 rh$[178]"":[153]"loadvalnter (NULL)elative left$umidity";:[133]rh$
- 1460 cc$[178]"":[153]"loadvalnter lenloud lenover (NULL)ercentage";:[133]cc$
- 1470 wc$[178]"":[153]"loadvalnter comment on current (NULL)x lenonditions:"
- 1480 [153]"(NULL)imit comments to 40 lenharacters. ((NULL)ne full screen line.)
- 1490 print" [196]o not use a [195]omma or [195]olon. ":print:inputwc$:print"[147]"
- 1500 rc$=da$+mo$+yr$+ba$
- 1510 rc$=rc$+cr$+left$(bl$,1-len(cr$))
- 1520 rc$=rc$+left$(bl$,3-len(hi$))+hi$
- 1530 rc$=rc$+left$(bl$,3-len(lo$))+lo$
- 1540 rc$=rc$+di$+left$(bl$,1-len(di$))
- 1550 rc$=rc$+left$(bl$,3-len(ws$))+ws$
- 1560 rc$=rc$+left$(bl$,5-len(ra$))+ra$
- 1570 rc$=rc$+left$(bl$,4-len(sn$))+sn$
- 1580 rc$=rc$+left$(bl$,3-len(rh$))+rh$
- 1590 rc$=rc$+left$(bl$,3-len(cc$))+cc$
- 1600 rc$=rc$+wc$+left$(bl$,40-len(wc$))
- 1610 rc$=rc$+left$(bl$,5-len(mp$))+mp$
- 1620 rc$=rc$+left$(bl$,6-len(ap$))+ap$
- 1630 rc$=rc$+left$(bl$,5-len(as$))+as$
- 1640 rc$=rc$+left$(bl$,5-len(ms$))+ms$
- 1650 rc%=rc%+1:tr%=tr%+1:r=rc%:iftr%=721thentr%=720
- 1660 gosub2640:print" [201]s [196]ata [195]orrect? ([217]es or [206]o) "
- 1670 gosub220:ifg$="n"thenrc%=rc%-1:tr%=tr%-1
- 1680 ifg$="n"thenprint"[210]e-enter from start":fort=1to5000:next:goto1270
- 1690 ifg$<>"y"then1670
- 1700 gosub210:x1=rc%:gosub170:gosub190:gosub200:gosub160
- 1710 print#1,rc$:close1:gosub190:print#15,"s0:rc.index":close15
- 1720 open1,8,2,"rc.index,s,w"
- 1730 print#1,rc%","tr%","hd$","cd$","mp$","ap$","ms$","as$:close1
- 1740 ifrc%=1andtr%=1then1770
- 1750 no%(rc%)=rc%:in$(rc%)=mid$(rc$,7,5):ifrc%=1andtr%=1then1770
- 1760 gosub2520
- 1770 ba=val(mid$(rc$,7,5)):cr%=val(mid$(rc$,12,1)):di=val(mid$(rc$,19,1))
- 1780 ifpr=1thengosub140
- 1790 print"[147]":print" [199]eneral [211]hort [212]erm [198]orecast "
- 1800 ifba>=30.2andcr%=1anddi>=6anddi<=8then2040
- 1810 ifba>=30.2andcr%=2anddi>=6anddi<=8then2050
- 1820 ifba>=30.1andba<=30.2andcr%=1anddi>=6anddi<=8then1990
- 1830 ifba>=30.1andba<=30.2andcr%=5anddi>=6anddi<=8then2000
- 1840 ifba>=30.1andba<=30.2andcr%=2anddi>=6anddi<=8then2020
- 1850 ifba>=30.1andba<=30.2andcr%=3anddi>=6anddi<=8then2030
- 1860 ifba>=30.1andba<=30.2andcr%=2anddi<=5anddi>=4then2060
- 1870 ifba>=30.1andba<=30.2andcr%=3anddi=5ordi=4then2070
- 1880 ifba>=30.1andba<=30.2andcr%=2anddi<=4anddi>=2then2090
- 1890 ifba>=30.1andba<=30.2andcr%=3anddi<=4anddi>=2then2100
- 1900 ifba<=29.8andcr%=2anddi>=2anddi<=3then2140
- 1910 ifba<=29.8andcr%=3anddi<=5anddi>=3then2230
- 1920 ifba<=29.8andcr%=3anddi<=3anddi>=1then2260
- 1930 ifba<=29.8andcr%=5then2290
- 1940 ifba<=30.1andcr%=3anddi>=4anddi<=8then2180
- 1950 ifba<=30.1andcr%=4anddi<=6anddi>=5then2200
- 1960 ifba<=30.1andcr%=2anddi>=2anddi<=3then2110
- 1970 ifba<=30.1andcr%=2anddi=4then2170
- 1980 print"[204]ittle change during next 24 hours.":goto2300
- 1990 print"[198]air, with little temperature change fornext day or two.":goto2300
- 2000 print"[198]air today, warmer with a chance of some";
- 2010 print"rain within 2 days.":goto2300
- 2020 print"[212]urning warmer, with rain likely in 24 to 36 hours.":goto2300
- 2030 print"[215]armer, with rain in 18-36 hours.":goto2300
- 2040 print"[195]ontinued fair with little change in temperature.":goto2300
- 2050 print"[198]air, with slowly rising temperatures for next 2 days.":goto2300
- 2060 print"[208]recipitation likely within 24 [200]ours.":goto2300
- 2070 print"[201]ncreasing winds, [208]recipitation likely
- 2080 [153]"within 12-24 hours.":[137]2300
- 2090 [153]"(NULL)ain within 12-18 hours.":[137]2300
- 2100 [153]"peekecoming windy with rain likely within 12-24 hours.":[137]2300
- 2110 [153]"right$n (NULL)inter, (NULL)recipitation likely within 24 hours.
- 2120 print"[201]n [211]ummer, [195]loudy with light breezes. [210]ain likely in a day or two.
- 2130 [137]2300
- 2140 [153]"right$n (NULL)ummer, (NULL)ain likely within 24 hours.
- 2150 print"[201]n [215]inter, [210]ain or [211]now likely, winds increasing.
- 2160 [137]2300
- 2170 [153]"(NULL)ore (NULL)ain for next day or two.":[137]2300
- 2180 [153]"left$igh winds and possible heavy rain today";
- 2190 [153]"lenlearing and cooler tomorrow.":[137]2300
- 2200 [153]"lenlearing within a few hours. ascair
- 2210 print"weather for next several days.
- 2220 [137]2300
- 2230 [153]" (NULL)evere (NULL)torm (NULL)arning!
- 2240 print"[215]indy with heavy precipitation today.
- 2250 [153]"lenlearing and turning cooler tomorrow.":[153]"":[137]2300
- 2260 [153]"(NULL)evere northeast gales, with heavy rain or snow.
- 2270 print"[212]urning cooler in [215]inter.
- 2280 [137]2300
- 2290 [153]"lenlearing and cooler.
- 2300 ifpr=1thengosub150
- 2310 gosub2350:iftr%=1thencl=0:gosub2580:goto2330
- 2320 gosub2380
- 2330 ifcl=0thenprint" [206]o [193]dditional [196]ata [193]vailable":goto2350
- 2340 print" [211]imiliar [196]ata found in [198]ile":gosub2350:gosub3290:print"[145][145]"
- 2350 close15:gosub210:close15
- 2360 print" [208]ress any key to continue ";
- 2370 gosub220:print"[147]":return
- 2380 cl=0:a=0:u=1:ifrc%=1andtr%=1then2520
- 2390 u=0:fort=1totr%:ift=rc%then2410
- 2400 ifba$=in$(t)andno%(t)<>rc%thenu=u+1:ho%(u)=no%(t)
- 2410 next:ifu=0then2510
- 2420 t=0:c=0:gosub210:gosub200
- 2430 t=t+1:rc$="":ift>uthen2510
- 2440 x1=ho%(t):gosub170
- 2450 gosub160:fora=1to19:get#1,a$
- 2460 rc$=rc$+a$:next
- 2470 ifcr$<>mid$(rc$,12,1)then2430
- 2480 ifdi$<>mid$(rc$,19,1)then2430
- 2490 c=c+1:d%(c)=ho%(c)
- 2500 cl=1:gosub240:return
- 2510 cl=0:gosub240:return
- 2520 gosub210:open1,8,2,"ba.index,s,r"
- 2530 forp=1totr%:input#1,no%(p),in$(p):next:gosub240
- 2540 fori=1totr%:ifi=rc%theni=i+1
- 2550 forj=itotr%:ifin$(i)<in$(j)then2570
- 2560 hi$=in$(i):in$(i)=in$(j):in$(j)=hi$:ni=no%(i):no%(i)=no%(j):no%(j)=ni
- 2570 next:next
- 2580 gosub210:print#15,"s0:ba.index"
- 2590 iftr%=1thenno%(1)=rc%:in$(1)=str$(ba)
- 2600 open1,8,2,"ba.index,s,w":i=0
- 2610 i=i+1:ifi>tr%then2630
- 2620 print#1,no%(i):print#1,in$(i):goto2610
- 2630 gosub240:print"[147]":return
- 2640 ifpr=1thengosub140
- 2650 print"[147][210]ecord#[146]"r;"[196]ata [197]ntry for:[146]";
- 2660 printmid$(rc$,3,2);"/";mid$(rc$,1,2);"/";mid$(rc$,5,2)
- 2670 print"[194]arometric [208]ressure........ ";mid$(rc$,7,5)"inches"
- 2680 print"[200]igh [212]emperature...........";:hi$=mid$(rc$,13,3)
- 2690 printval(hi$)"[196]eg. [198]"
- 2700 print" [206]ormal [200]igh..........";mh(val(mid$(rc$,3,2)))"[196]eg. [198]"
- 2710 print"[204]ow [212]emperature............";:lo$=mid$(rc$,16,3)
- 2720 printval(lo$)"[196]eg. [198]"
- 2730 print" [206]ormal [204]ow...........";ml(val(mid$(rc$,3,2)))"[196]eg. [198]"
- 2740 print"[215]ind [196]irection............. ";
- 2750 wd=val(mid$(rc$,19,1)):printdi$(wd)
- 2760 print"[215]ind [211]peed.................";val(mid$(rc$,20,3));"[205][208][200]"
- 2770 print"[210]ainfall (past 24 [200]rs).....";val(mid$(rc$,23,5))"inches"
- 2780 print" [206]ormal [205]onthly [210]ain..";ar(val(mid$(rc$,3,2)));"inches"
- 2790 print" [205]onthly [210]ain to date.";val(mid$(rc$,79,5))"inches"
- 2800 print" [217]early [210]ain to date..";val(mid$(rc$,83,6))"inches"
- 2810 print"[211]nowfall (past 24 [200]rs).....";val(mid$(rc$,28,4))"inches"
- 2820 print" [206]ormal [205]onthly [211]now..";as(val(mid$(rc$,3,2)))"inches"
- 2830 print" [205]onthly [211]now to date.";val(mid$(rc$,89,5))"inches"
- 2840 print" [217]early [211]now to date..";val(mid$(rc$,94,6))"inches"
- 2850 print"[210]elative [200]umidity..........";val(mid$(rc$,32,3));"%"
- 2860 print"[208]ercent [195]loud [195]over........";val(mid$(rc$,35,3));"%"
- 2870 hi=val(hi$):lo=val(lo$):hd=65-int((hi+lo)/2)
- 2880 td=(hi+lo)/2:rh=val(mid$(rc$,32,3)):rh=rh/100
- 2890 ifsgn(hd)=-1then2930
- 2900 z=val(hd$)+hd:hd$=str$(z):print"[200]eating [196]egree [196]ays........";hd
- 2910 iff=1then2970
- 2920 print" [212]otal for [211]eason.....";hd$:goto2970
- 2930 cd=(int(hi+lo)/2)-65:ifsgn(cd)=-1then2970
- 2940 z=val(cd$)+cd:cd$=str$(z):print"[195]ooling [196]egree [196]ays........";cd
- 2950 iff=1then2970
- 2960 print" [212]otal for [211]eason.....";cd$
- 2970 printmid$(rc$,38,40);
- 2980 ifpr=1thengosub150
- 2990 return
- 3000 print"[147] [198]orecast [215]eather
- 3010 [141]3020:[141]3030:[141]3090:[153]"load":[141]1780:[142]
- 3020 [153]"loadvalnter:":[153]"peekarometric (NULL)ressure":[133]ba$:ba[178][197](ba$):[142]
- 3030 [153]"load(NULL)ate of lenhange: "
- 3040 [153]"(NULL)apid lenhange is any change greater than 0.06 inches per hour.
- 3050 print"[197]nter:":print" 1.[146] [211]teady"tab(20)" 4.[146] [211]lowly [210]ising"
- 3060 print" 2.[146] [198]alling [211]lowly"tab(20)" 5.[146] [210]ising [210]apidly"
- 3070 print" 3.[146] [198]alling [210]apidly":print
- 3080 cr$="":inputcr$:cr%=val(cr$):return
- 3090 print"[147][197]nter [206]umber for [215]ind [196]irection:
- 3100 [153]" 1.wait (NULL)orth"[163]20)" 5.wait (NULL)outh
- 3110 print" 2.[146] [206]ortheast"tab(20)" 6.[146] [211]outhwest
- 3120 [153]" 3.wait valast"[163]20)" 7.wait (NULL)est
- 3130 print" 4.[146] [211]outheast"tab(20)" 8.[146] [206]orthwest
- 3140 di$[178]"":[153]:[133]di$:di[178][197](di$):[142]
- 3150 [153]"load str$egree str$ay (NULL)egisters
- 3160 print"[200]eating [196]egree [196]ays: ";hd$
- 3170 print"[195]ooling [196]egree [196]ays: ";cd$
- 3180 printtab(5)"[212]otals as of last entry.
- 3190 [153]" 1.wait lenlear left$eating str$egree str$ays
- 3200 print" 2.[146] [195]lear [195]ooling [196]egree [196]ays
- 3210 [153]" 3.wait (NULL)eturn to (NULL)ain (NULL)enu
- 3220 gosub220:ifg$="3"thenreturn
- 3230 ifg$="1"thenhd$="00":goto3260
- 3240 ifg$="2"thencd$="00":goto3260
- 3250 goto3220
- 3260 gosub210:print#15,"s0:rc*":close15:open1,8,2,"rc.index,s,w"
- 3270 print#1,rc%","tr%","hd$","cd$","mp$","ap$","ms$","as$:close1:return
- 3280 end
- 3290 f=1:forx=1toc
- 3300 ifd%(x)=tr%+1andtr%<720thenreturn
- 3310 x1=d%(x):gosub170:gosub210:gosub200
- 3320 gosub160:gosub180
- 3330 r=d%(x):ifr=rc%then3370
- 3340 ifr=0then3370
- 3350 gosub2640:gosub2350:gosub240:y=y+1:ify<4thend%(x)=d%(x)+1:goto3300
- 3360 ifd%(x)+3<d%(x+3)thenx=x+4
- 3370 next
- 3380 print" [197]nd of [198]ile":gosub240:f=0:return
- 3390 rem high temperature data
- 3400 data47.6,50.8,59.3,70.7,77.9,84.2
- 3410 data87.4,86.2,80.4,70.1,59.9,50.4
- 3420 rem low temperature data
- 3430 data27.3,29.0,36.5,45.9,55.0,62.6
- 3440 data66.9,66.3,59.3,46.7,37.1,29.9
- 3450 rem monthly precipitation data
- 3460 data3.32,3.30,3.77,3.17,3.61,3.81
- 3470 data4.57,4.21,3.65,3.00,2.74,3.31
- 3480 rem monthly snowfall data
- 3490 data3.2,2.4,1.9,.1,0,0,0,0,0,0,.2,1.4
- 3500 data"[206]orth","[206]ortheast","[197]ast","[211]outheast","[211]outh","[211]outhwest"
- 3510 data"[215]est","[206]orthwest"
-