Professional Documents
Culture Documents
Modify the example program to compute the position of an object after falling for 10 seconds, outputting the position in
meters. The formula in Math notation is:
x(t) = 0.5 at2 + vit + xi
Variable
a
t
vi
xi
Meaning
Value
2
Note: The correct value is -490.5 m. Java will output more digits after the decimal place, but that is unimportant.
MIT OpenCourseWare
http://ocw.mit.edu
For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.