3 100 print "this program simulates the results "
4 110 print "of firing a field artillery weapon"
6 130 print "you are the officer-in-charge, giving orders to the gun"
7 140 print "crew, telling them the degrees of elevation you estimate"
8 150 print "will place the projectile on target. A hit within 100 yards"
9 160 print "of the target will destroy it. Take more than 5 shots,"
10 170 print "end the enemy will destroy you!":print
11 180 print "maximum range of your gun is 46500 yards."
15 200 t= 43000-30000*rnd(x)
18 230 print"minimum elevation of the gun is one degree."
20 250 print "maximum elevation of gun is 89 degrees."
22 270 print "over target by";abs(e);"yards"
24 290 print "short of target by";abs(e);"yards"
27 320 print "*****target destroyed ****";s;"rounds of ammunition expended"
33 350 print "the forward observer has sighted more enemy activity."
35 370 print " distance to the target is";int(t);"yards...."
38 400 print "elevation";
44 444 print:print "BOOM !!! You have been destroyed";
46 446 print "by the enemy":print:print:goto 495
47 450 b2=2*b/57.3:let i=46500*sin(b2):x=t-i:e=int(x)
48 460 if abs(e)<100 then 310
50 480 if e<-100 then 270
51 490 print:print:print "total rounds expended were";s1
52 491 if s1>15 then 495:print "nice shooting!!":gosub 600:goto 500
53 495 print "better go back to fort silly for refresher training!"
54 500 print:print "thank you for playing!"
55 505 print:print "try again....":print:goto 180
56 600 rem for n=1 to 10 print chr$(7): rem next n