This is a Visual Basic program that can plot the path of a projectile, a basic concept missile launching. This path is determined by the launching angle and speed. The formula is y=(Vsin a) t 1/2(gt^{2}) and x=(Vcosa)t, where V=launching speed and a is the launching angle, g is acceleration due to gravity(9.8n ms^{2}) while t is time.
In this program, we used a picture box for drawing the curve . The command Pset is used to plot the curve. Pset is a method that draw a point on the screen. Using looping such as the do loop will connect all the points into a line.
The Code
Private Sub cmd_Draw_Click()


The Interface
Copyright ® 2008 Dr.Liew Voon Kiong . All rights reserved Contact: admin@vbtutor.net