5 poke59467,16:poke59466,152:poke59464,250 10 print"{clr} gunner" 15 print" {CBM-U}{CBM-U}{CBM-U}{CBM-U}{CBM-U}{CBM-U}" 20 print"{down}{down}{rght}{rght}you are in charge of a field gun." 30 print"the computer will give you the range of" 40 print"the target." 50 print" {down}you must supply the gun elevation" 60 print"(between 0 and 90 degrees)" 65 print" the muzzle velocity is 250 metres per second" 66 print"{down}the maximum range(at 45{CBM-V}) is 5000 metres" 70 print"{down}{down}{down}{down}{down}{rght}{rght}{rght}{rght}{rght}press a key to begin" 80 fora=1to20:poke59464,a*12.5:geta$:next 90 geta$:ifa$=""then90 100 x=int(rnd(ti)*4000)+500 105 x=int(x/10)*10 110 print"{clr} the range is:- "x" metres" 120 poke(33729+(x/125)),224 130 poke33728,124:poke33729,126:poke33689,78:poke33688,108 140 print"{home}{down}{down}{down}type the elevation {$e0} {left}{left}{left}{left}{left}{left}{left}{left}{left}{left}{left}{left}{left}{left}{left}{left}{left}{left}{left}{left}{left}"; 145 poke59464,5 150 open1,0:input#1,a$:close1 155 poke59464,100 160 a=val(a$) 170 ifa<0ora>90then140 180 ifa=90ora=0then1000 190 z=a*~/180 195 poke59464,a*2.8 200 q=5000*sin(2*z) 205 q=int(q/10)*10 210 ifint(q/100)*100=int(x/100)*100then2000 215 print"{home}{down}{down} " 216 ifq=0then1000 220 ifq>xthenprint"{home}{down}{down} too far-you went "q" metres " 230 ifq