Search for question
Question

For this assignment you will write a program that simulates firing a ballista. The weap-

on's spear-like projectile is called a bolt. The distance that the bolt travels can be con-

trolled by adjusting the angle of elevation of the ballista and the number of turns of the

crank that pulls back the bowstring. More turns of the crank means a greater velocity of

the bolt. The flight distance of the bolt is given by this formula:

Fig: 1