- Home
·
- Math/Dates
·
- This program will compute the force of gravity on two objects by using their mass and the distance
This program will compute the force of gravity on two objects by using their mass and the distance
This program will compute the force of gravity on two objects by using their mass and the distance between the masses to find the result.
Rate This program will compute the force of gravity on two objects by using their mass and the distance
(1(1 Vote))
Dim m1 As Single, m2 As Single, d As Single, g As Single, f As Single
m1 = Val(txtm1)
m2 = Val(txtm2)
d = Val(txtd)
g = 6.672 * 10 ^ (-11)
f = g * ((m1 * m2) / d ^ 2)
lblg = f
Printer.Print "Name, force of gravity on two masses prob."
Printer.Print "The weight of the first mass was/is "; txtm1
Printer.Print "The weight of the second mass was/is "; txtm2
Printer.Print "the distance between the two masses was/is "; txtd
Printer.Print "The Force of gravity on the masses was/is "; lblg
Printer.Print ""
End Sub
Private Sub cmdEnd_Click()
End
End Sub
This program will compute the force of gravity on two objects by using their mass and the distance Comments
No comments yet — be the first to post one!
Post a Comment